diff options
author | reed <reed@google.com> | 2016-04-25 09:25:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-25 09:25:15 -0700 |
commit | 96a04f329926099f0002f97883242793ff04f61c (patch) | |
tree | 9dbddfd003bf30f1197fa5a9b39a1e23aa1e5397 /src/core/SkCanvas.cpp | |
parent | 9f666a14a9112c3cdec4d2a3332390cae20197df (diff) |
simplify handle-affine: subclass overrides just describe their leaf behavior
added new test case (that would have failed before) of blur with a colorfilter input
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1915943002
Review URL: https://codereview.chromium.org/1915943002
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index f8731e9ad2..7552626057 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1217,7 +1217,7 @@ void SkCanvas::internalSaveLayer(const SaveLayerRec& rec, SaveLayerStrategy stra * Perhaps in the future we could augment #5 to apply REMAINDER as part of the draw (no longer * a sprite operation) to avoid the extra buffer/overhead of MatrixImageFilter. */ - if (imageFilter && !stashedMatrix.isScaleTranslate() && !imageFilter->canHandleAffine() && + if (imageFilter && !stashedMatrix.isScaleTranslate() && !imageFilter->canHandleComplexCTM() && stashedMatrix.decomposeScale(&scale, &remainder)) { // We will restore the matrix (which we are overwriting here) in restore via fStashedMatrix |