8#ifndef skgpu_graphite_RecorderPriv_DEFINED
9#define skgpu_graphite_RecorderPriv_DEFINED
23class ShaderCodeDictionary;
31 const Caps*
caps()
const {
return fRecorder->fSharedContext->caps(); }
36 return fRecorder->fRuntimeEffectDict.get();
39 return fRecorder->fRuntimeEffectDict.get();
42 return fRecorder->fSharedContext->shaderCodeDictionary();
45 return fRecorder->fSharedContext->shaderCodeDictionary();
49 return fRecorder->fSharedContext->rendererProvider();
53 return fRecorder->fSharedContext->isProtected();
65 return fRecorder->fTextBlobCache.get();
74 std::string_view label);
76 uint32_t
uniqueID()
const {
return fRecorder->fUniqueID; }
79 uint32_t nextRecordingID()
const {
return fRecorder->fNextRecordingID; }
84#if defined(GRAPHITE_TEST_UTILS)
85 bool deviceIsRegistered(Device*)
const;
86 ResourceCache* resourceCache() {
return fRecorder->fResourceProvider->resourceCache(); }
87 SharedContext* sharedContext() {
return fRecorder->fSharedContext.get(); }
90 Context* context() {
return fRecorder->fContext; }
94 explicit RecorderPriv(
Recorder* recorder) : fRecorder(recorder) {}
95 RecorderPriv& operator=(
const RecorderPriv&) =
delete;
98 const RecorderPriv* operator&()
const =
delete;
99 RecorderPriv* operator&() =
delete;
ShaderCodeDictionary * shaderCodeDictionary()
void addPendingRead(const TextureProxy *)
TokenTracker * tokenTracker()
const RuntimeEffectDictionary * runtimeEffectDictionary() const
RuntimeEffectDictionary * runtimeEffectDictionary()
const ShaderCodeDictionary * shaderCodeDictionary() const
TextureDataCache * textureDataCache()
size_t getResourceCacheLimit() const
sktext::gpu::TextBlobRedrawCoordinator * textBlobCache()
sktext::gpu::StrikeCache * strikeCache()
Protected isProtected() const
AtlasProvider * atlasProvider()
UniformDataCache * uniformDataCache()
const Caps * caps() const
ProxyCache * proxyCache()
ResourceProvider * resourceProvider()
static sk_sp< TextureProxy > CreateCachedProxy(Recorder *, const SkBitmap &, std::string_view label)
UploadBufferManager * uploadBufferManager()
const RendererProvider * rendererProvider() const
DrawBufferManager * drawBufferManager()
void flushTrackedDevices()
uint32_t uniqueID() const
friend class RecorderPriv
ProxyCache * proxyCache()