SurfaceCacheUtils.h (901B)
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/. */ 5 6 #ifndef mozilla_image_SurfaceCacheUtils_h 7 #define mozilla_image_SurfaceCacheUtils_h 8 9 /** 10 * SurfaceCacheUtils provides an ImageLib-external API to interact with 11 * ImageLib's SurfaceCache. 12 */ 13 14 namespace mozilla { 15 namespace image { 16 17 class SurfaceCacheUtils { 18 public: 19 /** 20 * Evicts all evictable entries from the surface cache. 21 * 22 * See the documentation for SurfaceCache::DiscardAll() for the details. 23 */ 24 static void DiscardAll(); 25 26 private: 27 virtual ~SurfaceCacheUtils() = 0; // Forbid instantiation. 28 }; 29 30 } // namespace image 31 } // namespace mozilla 32 33 #endif // mozilla_image_SurfaceCacheUtils_h