aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/debugger
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-10-21 10:31:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-21 10:31:38 -0700
commitb9750892ddfc84c3976fc5d4c9297c6940889767 (patch)
tree70a2c80735954210a8e7f4a20ec44bf5742aa001 /src/utils/debugger
parentdd5a1e094c19fa10202c37c50a1f799e5af5dac0 (diff)
Fix debugger's SaveAs functionality
Without this patch the SaveAs functionality only copies the portion of the picture from the current command in the GUI. Review URL: https://codereview.chromium.org/672453002
Diffstat (limited to 'src/utils/debugger')
-rw-r--r--src/utils/debugger/SkDebugCanvas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp
index 684c5cd17b..3b68365fc1 100644
--- a/src/utils/debugger/SkDebugCanvas.cpp
+++ b/src/utils/debugger/SkDebugCanvas.cpp
@@ -61,6 +61,8 @@ void SkDebugCanvas::addDrawCommand(SkDrawCommand* command) {
}
void SkDebugCanvas::draw(SkCanvas* canvas) {
+ fDrawNeedsReset = true;
+
if (!fCommandVector.isEmpty()) {
this->drawTo(canvas, fCommandVector.count() - 1);
}