/* * Copyright 2023 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_graphite_ProxyCache_DEFINED #define skgpu_graphite_ProxyCache_DEFINED #include "include/core/SkRefCnt.h" #include "src/core/SkMessageBus.h" #include "src/core/SkTHash.h" #include "src/gpu/GpuTypesPriv.h" #include "src/gpu/ResourceKey.h" class SkBitmap; namespace skgpu { enum class Mipmapped : bool; class UniqueKey; } namespace skgpu::graphite { class Recorder; class TextureProxy; // This class encapsulates the _internal_ Recorder-local caching of utility proxies. // For simplicity it does not support generating mipmapped cached proxies. Internal utility data // does not typically require mipmapping, and unlike Ganesh, the internal proxy cache is not used // for uploaded client-provided bitmaps (which may require generating mipmaps). class ProxyCache { … }; } // namespace skgpu::graphite #endif // skgpu_graphite_ProxyCache_DEFINED