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
10 * SurfaceCacheUtils provides an ImageLib-external API to interact with
11 * ImageLib's SurfaceCache.
17 class SurfaceCacheUtils
{
20 * Evicts all evictable entries from the surface cache.
22 * See the documentation for SurfaceCache::DiscardAll() for the details.
24 static void DiscardAll();
27 virtual ~SurfaceCacheUtils() = 0; // Forbid instantiation.
31 } // namespace mozilla
33 #endif // mozilla_image_SurfaceCacheUtils_h