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

Unified Diff: tools/debugger/SkDrawCommand.cpp

Issue 1712753002: GrAuditTrail can now be enabled/disabled at runtime (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: removed one more reference to GR_BATCH_DEBUGGING_OUTPUT Created 4 years, 10 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
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/debugger/SkDrawCommand.cpp
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp
index b46e4925a3b25cf968485d460f493d7f368802f2..5ca725088ab9e6a2efb43fd47abac81cb9ce5954 100644
--- a/tools/debugger/SkDrawCommand.cpp
+++ b/tools/debugger/SkDrawCommand.cpp
@@ -236,8 +236,9 @@ Json::Value SkDrawCommand::drawToAndCollectJSON(SkCanvas* canvas,
if (rt) {
GrContext* ctx = rt->getContext();
if(ctx) {
- this->execute(canvas);
GrAuditTrail* at = ctx->getAuditTrail();
+ GrAuditTrail::AutoEnable enable(at);
+ this->execute(canvas);
// TODO if this is inefficient we could add a method to GrAuditTrail which takes
// a Json::Value and is only compiled in this file
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698