Index: src/gpu/gl/GrGLTexture.cpp |
diff --git a/src/gpu/gl/GrGLTexture.cpp b/src/gpu/gl/GrGLTexture.cpp |
index f855e5458bedfc84d8a5ea0cdffd17b55d3f3eda..6f70d51a341279cfa62d618f341433bff015d42a 100644 |
--- a/src/gpu/gl/GrGLTexture.cpp |
+++ b/src/gpu/gl/GrGLTexture.cpp |
@@ -7,6 +7,7 @@ |
#include "GrGLTexture.h" |
#include "GrGLGpu.h" |
+#include "SkTraceMemoryDump.h" |
#define GPUGL static_cast<GrGLGpu*>(this->getGpu()) |
#define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X) |
@@ -51,3 +52,11 @@ void GrGLTexture::onAbandon() { |
GrBackendObject GrGLTexture::getTextureHandle() const { |
return static_cast<GrBackendObject>(this->textureID()); |
} |
+ |
+void GrGLTexture::setMemoryBacking(SkTraceMemoryDump* traceMemoryDump, |
+ const SkString& dumpName) const { |
+ SkString texture_id; |
+ texture_id.appendU32(this->textureID()); |
+ traceMemoryDump->setMemoryBacking(dumpName.c_str(), "gl_texture", |
+ texture_id.c_str()); |
+} |