Index: src/gpu/gl/GrGLTextureRenderTarget.h |
diff --git a/src/gpu/gl/GrGLTextureRenderTarget.h b/src/gpu/gl/GrGLTextureRenderTarget.h |
index 55da28f6b8240868b7092eb61218a50538814739..06080a8a36b39973a42cf8783f443bea3f82a7d9 100644 |
--- a/src/gpu/gl/GrGLTextureRenderTarget.h |
+++ b/src/gpu/gl/GrGLTextureRenderTarget.h |
@@ -31,14 +31,11 @@ public: |
: GrSurface(gpu, texIDDesc.fIsWrapped, desc) |
, GrGLTexture(gpu, desc, texIDDesc, GrGLTexture::kDerived) |
, GrGLRenderTarget(gpu, desc, rtIDDesc, GrGLRenderTarget::kDerived) { |
- this->registerWithCache(); |
+ this->registerWithCache(); |
} |
virtual ~GrGLTextureRenderTarget() { this->release(); } |
- // GrGLRenderTarget accounts for the texture's memory and any MSAA renderbuffer's memory. |
- virtual size_t gpuMemorySize() const SK_OVERRIDE { return GrGLRenderTarget::gpuMemorySize(); } |
- |
protected: |
virtual void onAbandon() SK_OVERRIDE { |
GrGLRenderTarget::onAbandon(); |
@@ -49,6 +46,13 @@ protected: |
GrGLRenderTarget::onRelease(); |
GrGLTexture::onRelease(); |
} |
+ |
+private: |
+ // GrGLRenderTarget accounts for the texture's memory and any MSAA renderbuffer's memory. |
+ virtual size_t onGpuMemorySize() const SK_OVERRIDE { |
+ return GrGLRenderTarget::onGpuMemorySize(); |
+ } |
+ |
}; |
#ifdef SK_BUILD_FOR_WIN |