diff options
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGLIndexBuffer.cpp | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGLPath.cpp | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGLRenderTarget.cpp | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGLStencilBuffer.h | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGLTexture.cpp | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGLVertexArray.cpp | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGLVertexBuffer.cpp | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLIndexBuffer.cpp b/src/gpu/gl/GrGLIndexBuffer.cpp index a137348ef7..5991c09613 100644 --- a/src/gpu/gl/GrGLIndexBuffer.cpp +++ b/src/gpu/gl/GrGLIndexBuffer.cpp @@ -11,6 +11,7 @@ GrGLIndexBuffer::GrGLIndexBuffer(GrGpuGL* gpu, const Desc& desc) : INHERITED(gpu, desc.fIsWrapped, desc.fSizeInBytes, desc.fDynamic, 0 == desc.fID) , fImpl(gpu, desc, GR_GL_ELEMENT_ARRAY_BUFFER) { + this->registerWithCache(); } void GrGLIndexBuffer::onRelease() { diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp index 8c76b5922a..972a7af39b 100644 --- a/src/gpu/gl/GrGLPath.cpp +++ b/src/gpu/gl/GrGLPath.cpp @@ -136,6 +136,7 @@ GrGLPath::GrGLPath(GrGpuGL* gpu, const SkPath& path, const SkStrokeRec& stroke) // FIXME: try to account for stroking, without rasterizing the stroke. fBounds.outset(stroke.getWidth(), stroke.getWidth()); } + this->registerWithCache(); } GrGLPath::~GrGLPath() { diff --git a/src/gpu/gl/GrGLRenderTarget.cpp b/src/gpu/gl/GrGLRenderTarget.cpp index 2486396186..6143f34b95 100644 --- a/src/gpu/gl/GrGLRenderTarget.cpp +++ b/src/gpu/gl/GrGLRenderTarget.cpp @@ -21,6 +21,7 @@ void GrGLRenderTarget::init(const Desc& desc, fMSColorRenderbufferID = desc.fMSColorRenderbufferID; fViewport = viewport; fTexIDObj.reset(SkSafeRef(texID)); + this->registerWithCache(); } namespace { diff --git a/src/gpu/gl/GrGLStencilBuffer.h b/src/gpu/gl/GrGLStencilBuffer.h index 1cb0a3301a..024890ddd7 100644 --- a/src/gpu/gl/GrGLStencilBuffer.h +++ b/src/gpu/gl/GrGLStencilBuffer.h @@ -32,6 +32,7 @@ public: : GrStencilBuffer(gpu, isWrapped, width, height, format.fStencilBits, sampleCnt) , fFormat(format) , fRenderbufferID(rbid) { + this->registerWithCache(); } virtual ~GrGLStencilBuffer(); diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp index 255cdd9631..bc013bc0ec 100644 --- a/src/gpu/gl/GrGLTexture.cpp +++ b/src/gpu/gl/GrGLTexture.cpp @@ -33,6 +33,7 @@ void GrGLTexture::init(GrGpuGL* gpu, fRenderTarget.reset(SkNEW_ARGS(GrGLRenderTarget, (gpu, *rtDesc, vp, fTexIDObj, this))); } + this->registerWithCache(); } GrGLTexture::GrGLTexture(GrGpuGL* gpu, diff --git a/src/gpu/gl/GrGLVertexArray.cpp b/src/gpu/gl/GrGLVertexArray.cpp index 66feb82053..39fd48cb89 100644 --- a/src/gpu/gl/GrGLVertexArray.cpp +++ b/src/gpu/gl/GrGLVertexArray.cpp @@ -73,6 +73,7 @@ GrGLVertexArray::GrGLVertexArray(GrGpuGL* gpu, GrGLint id, int attribCount) , fID(id) , fAttribArrays(attribCount) , fIndexBufferIDIsValid(false) { + this->registerWithCache(); } void GrGLVertexArray::onAbandon() { diff --git a/src/gpu/gl/GrGLVertexBuffer.cpp b/src/gpu/gl/GrGLVertexBuffer.cpp index a13ad126ec..d6b630191c 100644 --- a/src/gpu/gl/GrGLVertexBuffer.cpp +++ b/src/gpu/gl/GrGLVertexBuffer.cpp @@ -11,6 +11,7 @@ GrGLVertexBuffer::GrGLVertexBuffer(GrGpuGL* gpu, const Desc& desc) : INHERITED(gpu, desc.fIsWrapped, desc.fSizeInBytes, desc.fDynamic, 0 == desc.fID) , fImpl(gpu, desc, GR_GL_ARRAY_BUFFER) { + this->registerWithCache(); } void GrGLVertexBuffer::onRelease() { |