aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-02-12 07:15:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-12 07:15:45 -0800
commit891ad66d148873c0a816192791ad7258eda71a28 (patch)
tree08841477dc954fb829aaf0942b8ef4fcf91d31ae /tools
parent186e0b9f59d74de5248e8c7ec6a1c7d7b71704ad (diff)
fixed SkDebugCanvas' handling of drawPicture
Diffstat (limited to 'tools')
-rw-r--r--tools/debugger/SkDebugCanvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp
index 0c79b755f3..11b10c04ee 100644
--- a/tools/debugger/SkDebugCanvas.cpp
+++ b/tools/debugger/SkDebugCanvas.cpp
@@ -5,6 +5,7 @@
* found in the LICENSE file.
*/
+#include "SkCanvasPriv.h"
#include "SkClipStack.h"
#include "SkDebugCanvas.h"
#include "SkDrawCommand.h"
@@ -422,7 +423,8 @@ void SkDebugCanvas::onDrawPicture(const SkPicture* picture,
const SkMatrix* matrix,
const SkPaint* paint) {
this->addDrawCommand(new SkBeginDrawPictureCommand(picture, matrix, paint));
- this->INHERITED::onDrawPicture(picture, matrix, paint);
+ SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->cullRect());
+ picture->playback(this);
this->addDrawCommand(new SkEndDrawPictureCommand(SkToBool(matrix) || SkToBool(paint)));
}