aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/debugger/SkDrawCommand.cpp
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-02-18 13:45:39 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-18 13:45:40 -0800
commitc85d9fbc0adacc9acb9faa3fe107652f0d76760a (patch)
tree027ad09898934c697b643351105f867574395e4f /tools/debugger/SkDrawCommand.cpp
parentdd9ffea9ce051a49dbc6544e6aa3cb68fe987f47 (diff)
GrAuditTrail can now be enabled/disabled at runtime
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1712753002 TBR=bsalomon@google.com Doesn't actually change the public API Review URL: https://codereview.chromium.org/1712753002
Diffstat (limited to 'tools/debugger/SkDrawCommand.cpp')
-rw-r--r--tools/debugger/SkDrawCommand.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp
index b46e4925a3..5ca725088a 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