Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: src/gpu/GrContext.cpp

Issue 1313743002: Add onMemoryDump to GrContext (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Review feedback Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 2f334c6ba097d5a44ffeaddb93801643c195ac96..701c65befa0f28334f3a0529da70a409052bacec 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -67,7 +67,7 @@ void GrContext::DrawingMgr::init(GrContext* context) {
fDrawTarget = SkNEW_ARGS(GrImmediateDrawTarget, (context));
#else
fDrawTarget = SkNEW_ARGS(GrBufferedDrawTarget, (context));
-#endif
+#endif
}
void GrContext::DrawingMgr::cleanup() {
@@ -112,7 +112,7 @@ void GrContext::DrawingMgr::flush() {
}
}
-GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceProps) {
+GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceProps) {
if (this->abandoned()) {
return NULL;
}
@@ -125,7 +125,7 @@ GrDrawContext* GrContext::DrawingMgr::drawContext(const SkSurfaceProps* surfaceP
SkNEW_ARGS(GrDrawContext, (fContext, fDrawTarget, props));
}
- return fDrawContext[props.pixelGeometry()][props.isUseDistanceFieldFonts()];
+ return fDrawContext[props.pixelGeometry()][props.isUseDistanceFieldFonts()];
}
////////////////////////////////////////////////////////////////////////////////
@@ -761,3 +761,7 @@ void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
fGpu->removeGpuTraceMarker(marker);
}
+//////////////////////////////////////////////////////////////////////////////
ssid 2015/08/26 17:10:03 New line after this?
ericrk 2015/08/26 19:40:21 done.
+void GrContext::dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const {
+ fResourceCache->dumpMemoryStatistics(traceMemoryDump);
+}

Powered by Google App Engine
This is Rietveld 408576698