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
This commit is contained in:
parent
186e0b9f59
commit
891ad66d14
@ -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)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user