aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/debugger
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-02-29 12:46:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-29 12:46:05 -0800
commit5d5207a39e294e4e810685b2cff1d7c770e21b9c (patch)
treee14ebe0f4add5680385834159831e520686c39b8 /tools/debugger
parent84a4e5a8d683bf17d6c3058b977b9dfb000428af (diff)
fix minor bug drawing batch bounds by default
Diffstat (limited to 'tools/debugger')
-rw-r--r--tools/debugger/SkDebugCanvas.cpp2
-rw-r--r--tools/debugger/SkDebugCanvas.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp
index 4fc6d14625..91f88d2b66 100644
--- a/tools/debugger/SkDebugCanvas.cpp
+++ b/tools/debugger/SkDebugCanvas.cpp
@@ -75,7 +75,7 @@ SkDebugCanvas::SkDebugCanvas(int width, int height)
, fOverrideFilterQuality(false)
, fFilterQuality(kNone_SkFilterQuality)
, fClipVizColor(SK_ColorTRANSPARENT)
- , fDrawGpuBatchBounds(true) {
+ , fDrawGpuBatchBounds(false) {
fUserMatrix.reset();
// SkPicturePlayback uses the base-class' quickReject calls to cull clipped
diff --git a/tools/debugger/SkDebugCanvas.h b/tools/debugger/SkDebugCanvas.h
index 9549cb06ad..d81d471970 100644
--- a/tools/debugger/SkDebugCanvas.h
+++ b/tools/debugger/SkDebugCanvas.h
@@ -47,6 +47,8 @@ public:
fDrawGpuBatchBounds = drawGpuBatchBounds;
}
+ bool getDrawGpuBatchBounds() const { return fDrawGpuBatchBounds; }
+
bool getAllowSimplifyClip() const { return fAllowSimplifyClip; }
void setPicture(SkPicture* picture) { fPicture = picture; }