Bug 1604730 [wpt PR 20829] - XPath: Fix context node after evaluating an expression...
[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