Index: src/gpu/gl/GrGLStencilAttachment.cpp |
diff --git a/src/gpu/gl/GrGLStencilAttachment.cpp b/src/gpu/gl/GrGLStencilAttachment.cpp |
index d72729dc10993240ef2ce2a04f844dc24bdc6e22..ffb1b00b7e5b6488f0d4c2f89f8803e155918b18 100644 |
--- a/src/gpu/gl/GrGLStencilAttachment.cpp |
+++ b/src/gpu/gl/GrGLStencilAttachment.cpp |
@@ -8,6 +8,7 @@ |
#include "GrGLStencilAttachment.h" |
#include "GrGLGpu.h" |
+#include "SkTraceMemoryDump.h" |
size_t GrGLStencilAttachment::onGpuMemorySize() const { |
uint64_t size = this->width(); |
@@ -33,3 +34,9 @@ void GrGLStencilAttachment::onAbandon() { |
INHERITED::onAbandon(); |
} |
+ |
+void GrGLStencilAttachment::setMemoryBacking(SkTraceMemoryDump* traceMemoryDump, |
+ const SkString& dumpName) const { |
+ traceMemoryDump->setMemoryBacking(dumpName.c_str(), "gl_renderbuffer", |
+ SkString(this->renderbufferID()).c_str()); |
+} |