Backed out changeset 4191b252db9b (bug 1886734) for causing build bustages @netwerk...
[gecko.git] / image / SurfaceCacheUtils.h
blob0e1e2431f95ee505830cb522eee27df28382fdc2
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_image_SurfaceCacheUtils_h
7 #define mozilla_image_SurfaceCacheUtils_h
9 /**
10 * SurfaceCacheUtils provides an ImageLib-external API to interact with
11 * ImageLib's SurfaceCache.
14 namespace mozilla {
15 namespace image {
17 class SurfaceCacheUtils {
18 public:
19 /**
20 * Evicts all evictable entries from the surface cache.
22 * See the documentation for SurfaceCache::DiscardAll() for the details.
24 static void DiscardAll();
26 private:
27 virtual ~SurfaceCacheUtils() = 0; // Forbid instantiation.
30 } // namespace image
31 } // namespace mozilla
33 #endif // mozilla_image_SurfaceCacheUtils_h