9 #ifndef GrTexture_DEFINED
10 #define GrTexture_DEFINED
12 #include "GrSurface.h"
13 #include "GrSamplerParams.h"
37 void validate()
const {
38 this->INHERITED::validate();
43 typedef void* ReleaseCtx;
44 typedef void (*ReleaseProc)(ReleaseCtx);
46 virtual void setRelease(ReleaseProc proc, ReleaseCtx ctx) = 0;
54 GrSamplerParams::FilterMode highestFilterMode,
bool wasMipMapDataProvided);
58 size_t onGpuMemorySize()
const override;
59 void dirtyMipMaps(
bool mipMapsDirty);
62 kNotAllocated_MipMapsStatus,
63 kAllocated_MipMapsStatus,
67 GrSLType fSamplerType;
68 GrSamplerParams::FilterMode fHighestFilterMode;
69 MipMapsStatus fMipMapsStatus;
71 SkDestinationSurfaceColorMode fMipColorMode;
72 friend class GrTexturePriv;
Describes a surface to be created.
Definition: GrTypes.h:589
void computeScratchKey(GrScratchKey *) const override
Called by the registerWithCache if the resource is available to be used as scratch.
GrTexture * asTexture() override
Definition: GrTexture.h:21
Definition: GrSurface.h:21
virtual void textureParamsModified()=0
This function indicates that the texture parameters (wrap mode, filtering, ...) have been changed ext...
A key used for scratch resources.
Definition: GrResourceKey.h:168
GrTexturePriv texturePriv()
Access methods that are only to be used within Skia code.
virtual GrBackendObject getTextureHandle() const =0
Return the native ID or handle to the texture, depending on the platform.
Definition: GrTexture.h:19