aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLTexture.h
diff options
context:
space:
mode:
authorGravatar ericrk <ericrk@chromium.org>2015-09-15 14:16:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-15 14:16:10 -0700
commit0a5fa484fd58d27088f8696bdc11c8cc8f2b4866 (patch)
tree3b4559d7da20b1de45b1a537378c8a36bca75511 /src/gpu/gl/GrGLTexture.h
parenteb00eaba0cb0be4ba39a7c00b6be8347136ce4ae (diff)
Add onMemoryDump to GrContext
Adds an entry point to GrContext to allow enumeration and tracing of GPU resources via the newly added SkTraceMemoryDump. Plan is for Chrome to call this on each of its GrContexts. Dumps both the total size of GPU resources, as well as the total purgeable size. BUG=526261 Review URL: https://codereview.chromium.org/1313743002
Diffstat (limited to 'src/gpu/gl/GrGLTexture.h')
-rw-r--r--src/gpu/gl/GrGLTexture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLTexture.h b/src/gpu/gl/GrGLTexture.h
index 06a229e5b9..cffc64adc1 100644
--- a/src/gpu/gl/GrGLTexture.h
+++ b/src/gpu/gl/GrGLTexture.h
@@ -63,6 +63,8 @@ protected:
void onAbandon() override;
void onRelease() override;
+ void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump,
+ const SkString& dumpName) const override;
private:
TexParams fTexParams;