author Axel Hecht <>
Mon, 05 Jun 2017 10:28:33 +0200
changeset 411345 91ddd067412484aec8d482eabe27eb048bea7ef8
parent 350873 94d3d18441af5d64987755ad130a1b084ed53bee
child 505383 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
bug 1370176, generic configuration for l10n, r=flod,gps The current way to configure compare-locales has a lot of assumptions that make our l10n system really stubborn. The generic configuration is independent of python, and uses toml files for configuration. They're still modular, but there's only one file format. See for the specification. Also fixes a few nits in, where we compared the entity key as bool, which is false if we pass in ''. Explicitly compare as "entity is None" to be precise about when we're checking files. MozReview-Commit-ID: 5TmfobaImF4

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef mozilla_image_SurfaceCacheUtils_h
#define mozilla_image_SurfaceCacheUtils_h

 * SurfaceCacheUtils provides an ImageLib-external API to interact with
 * ImageLib's SurfaceCache.

namespace mozilla {
namespace image {

class SurfaceCacheUtils
   * Evicts all evictable entries from the surface cache.
   * See the documentation for SurfaceCache::DiscardAll() for the details.
  static void DiscardAll();

  virtual ~SurfaceCacheUtils() = 0;  // Forbid instantiation.

} // namespace image
} // namespace mozilla

#endif // mozilla_image_SurfaceCacheUtils_h