aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-03-20 22:47:33 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-21 13:55:20 +0000
commit1683f786cadf57a56fb1983ab8bb6df91c50d0ef (patch)
tree31645c9b0ef0cca4c8b42e7329b3b3f1baa753ac
parentbb91bd3a12afded7e8a5034b8b8f3a8fbaaac316 (diff)
Have SkColorSpaceXformCanas tell SkCanvas about clips.
This should make queries like SkCanvas::getLocalClipBounds() work. BUG=chromium:703363 Change-Id: I1d8a39880152ba1da99cc8b289072ef747271bc8 Reviewed-on: https://skia-review.googlesource.com/9915 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
-rw-r--r--src/core/SkColorSpaceXformCanvas.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkColorSpaceXformCanvas.cpp b/src/core/SkColorSpaceXformCanvas.cpp
index e8fc8e40db..4f50c4d09f 100644
--- a/src/core/SkColorSpaceXformCanvas.cpp
+++ b/src/core/SkColorSpaceXformCanvas.cpp
@@ -376,15 +376,19 @@ public:
void didSetMatrix(const SkMatrix& m) override { fTarget->setMatrix(m); }
void onClipRect(const SkRect& clip, SkClipOp op, ClipEdgeStyle style) override {
+ SkCanvas::onClipRect(clip, op, style);
fTarget->clipRect(clip, op, style);
}
void onClipRRect(const SkRRect& clip, SkClipOp op, ClipEdgeStyle style) override {
+ SkCanvas::onClipRRect(clip, op, style);
fTarget->clipRRect(clip, op, style);
}
void onClipPath(const SkPath& clip, SkClipOp op, ClipEdgeStyle style) override {
+ SkCanvas::onClipPath(clip, op, style);
fTarget->clipPath(clip, op, style);
}
void onClipRegion(const SkRegion& clip, SkClipOp op) override {
+ SkCanvas::onClipRegion(clip, op);
fTarget->clipRegion(clip, op);
}