/* * Copyright 2021 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_Recording_DEFINED #define skgpu_graphite_Recording_DEFINED #include "include/core/SkRefCnt.h" class SkTextureDataBlock; namespace skgpu::graphite { class CommandBuffer; template class PipelineDataCache; using TextureDataCache = PipelineDataCache, SkTextureDataBlock>; class Recording final { public: ~Recording(); protected: private: friend class Context; // for access fCommandBuffer friend class Recorder; // for ctor Recording(sk_sp, std::unique_ptr); sk_sp fCommandBuffer; // The TextureDataCache holds all the Textures and Samplers used in this Recording. std::unique_ptr fTextureDataCache; }; } // namespace skgpu::graphite #endif // skgpu_graphite_Recording_DEFINED