From 1683f786cadf57a56fb1983ab8bb6df91c50d0ef Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 20 Mar 2017 22:47:33 -0400 Subject: [PATCH] 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 Reviewed-by: Matt Sarett Commit-Queue: Mike Klein --- src/core/SkColorSpaceXformCanvas.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }