diff options
author | 2014-08-09 11:08:05 -0700 | |
---|---|---|
committer | 2014-08-09 11:08:05 -0700 | |
commit | d5fa1a455aad61f3e99081fe7a9b065cb3b115c6 (patch) | |
tree | 95a968d12fce2d8265c2562d22870253bfd3db37 /src/gpu/GrPictureUtils.cpp | |
parent | a3efd90546e0de620a8b17e7bf9bd4ea53764529 (diff) |
add drawPicture variant that takes a matrix and paint
will need some staging strategy, since chrome and blink have overrides of onDrawPicture
R=robertphillips@google.com, fmalita@google.com, bsalomon@google.com, mtklein@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/448793004
Diffstat (limited to 'src/gpu/GrPictureUtils.cpp')
-rw-r--r-- | src/gpu/GrPictureUtils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrPictureUtils.cpp b/src/gpu/GrPictureUtils.cpp index 0bcd927e57..6e3c6b7ef6 100644 --- a/src/gpu/GrPictureUtils.cpp +++ b/src/gpu/GrPictureUtils.cpp @@ -6,6 +6,7 @@ */ #include "GrPictureUtils.h" +#include "SkCanvasPriv.h" #include "SkDevice.h" #include "SkDraw.h" #include "SkPaintPriv.h" @@ -234,7 +235,10 @@ protected: this->updateClipConservativelyUsingBounds(rrect.getBounds(), op, false); } - virtual void onDrawPicture(const SkPicture* picture) SK_OVERRIDE { + virtual void onDrawPicture(const SkPicture* picture, const SkMatrix* matrix, + const SkPaint* paint) SK_OVERRIDE { + SkAutoCanvasMatrixPaint acmp(this, matrix, paint, picture->width(), picture->height()); + if (NULL != picture->fData.get()) { // Disable the BBH for the old path so all the draw calls // will be seen. The stock SkPicture::draw method can't be |