8 #ifndef GrContextThreadSafeProxy_DEFINED
9 #define GrContextThreadSafeProxy_DEFINED
13 #if defined(SK_GANESH)
24 class GrContextThreadSafeProxyPriv;
25 class GrSurfaceCharacterization;
26 class GrThreadSafeCache;
27 class GrThreadSafePipelineBuilder;
31 namespace sktext::gpu {
class TextBlobRedrawCoordinator; }
88 GrSurfaceCharacterization createCharacterization(
89 size_t cacheMaxResourceBytes,
96 bool willUseGLFBO0 =
false,
97 bool isTextureable =
true,
99 bool vkRTSupportsInputAttachment =
false,
100 bool forVulkanSecondaryCommandBuffer =
false);
125 int maxSurfaceSampleCountForColorType(
SkColorType colorType)
const;
127 bool isValid()
const {
return nullptr != fCaps; }
131 SkASSERT((
this == &that) == (this->fContextID == that.fContextID));
132 return this == &that;
138 GrContextThreadSafeProxyPriv priv();
139 const GrContextThreadSafeProxyPriv priv()
const;
142 friend class GrContextThreadSafeProxyPriv;
147 void abandonContext();
148 bool abandoned()
const;
157 const uint32_t fContextID;
159 std::unique_ptr<sktext::gpu::TextBlobRedrawCoordinator> fTextBlobRedrawCoordinator;
160 std::unique_ptr<GrThreadSafeCache> fThreadSafeCache;
162 std::atomic<bool> fAbandoned{
false};
GrSurfaceOrigin
GPU SkImage and SkSurfaces can be stored such that (0, 0) in texture space may correspond to either t...
Definition: GrTypes.h:156
GrBackendApi
Possible 3D APIs that may be used by Ganesh.
Definition: GrTypes.h:96
SkColorType
Describes how pixel bits encode color.
Definition: SkColorType.h:19
bool operator!=(const sk_sp< T > &a, const sk_sp< U > &b)
Definition: SkRefCnt.h:355
bool operator==(const sk_sp< T > &a, const sk_sp< U > &b)
Definition: SkRefCnt.h:345
SkTextureCompressionType
Definition: SkTextureCompressionType.h:20
Definition: GrContextThreadSafeProxy.h:166
Definition: SkRefCnt.h:160
Describes properties and constraints of a given SkSurface.
Definition: SkSurfaceProps.h:52
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Renderable
Is a texture renderable or not.
Definition: GpuTypes.h:69
Protected
Is the data protected on the GPU or not.
Definition: GpuTypes.h:61
Definition: SkCanvas.h:74
Definition: GrContextOptions.h:375
Describes pixel dimensions and encoding.
Definition: SkImageInfo.h:194