diff options
author | ethannicholas <ethannicholas@google.com> | 2016-02-12 07:15:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-12 07:15:45 -0800 |
commit | 891ad66d148873c0a816192791ad7258eda71a28 (patch) | |
tree | 08841477dc954fb829aaf0942b8ef4fcf91d31ae /tools | |
parent | 186e0b9f59d74de5248e8c7ec6a1c7d7b71704ad (diff) |
fixed SkDebugCanvas' handling of drawPicture
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1685133008
Review URL: https://codereview.chromium.org/1685133008
Diffstat (limited to 'tools')
-rw-r--r-- | tools/debugger/SkDebugCanvas.cpp | 4 |
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))); } |