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>
This commit is contained in:
parent
bb91bd3a12
commit
1683f786ca
@ -376,15 +376,19 @@ public:
|
|||||||
void didSetMatrix(const SkMatrix& m) override { fTarget->setMatrix(m); }
|
void didSetMatrix(const SkMatrix& m) override { fTarget->setMatrix(m); }
|
||||||
|
|
||||||
void onClipRect(const SkRect& clip, SkClipOp op, ClipEdgeStyle style) override {
|
void onClipRect(const SkRect& clip, SkClipOp op, ClipEdgeStyle style) override {
|
||||||
|
SkCanvas::onClipRect(clip, op, style);
|
||||||
fTarget->clipRect(clip, op, style);
|
fTarget->clipRect(clip, op, style);
|
||||||
}
|
}
|
||||||
void onClipRRect(const SkRRect& clip, SkClipOp op, ClipEdgeStyle style) override {
|
void onClipRRect(const SkRRect& clip, SkClipOp op, ClipEdgeStyle style) override {
|
||||||
|
SkCanvas::onClipRRect(clip, op, style);
|
||||||
fTarget->clipRRect(clip, op, style);
|
fTarget->clipRRect(clip, op, style);
|
||||||
}
|
}
|
||||||
void onClipPath(const SkPath& clip, SkClipOp op, ClipEdgeStyle style) override {
|
void onClipPath(const SkPath& clip, SkClipOp op, ClipEdgeStyle style) override {
|
||||||
|
SkCanvas::onClipPath(clip, op, style);
|
||||||
fTarget->clipPath(clip, op, style);
|
fTarget->clipPath(clip, op, style);
|
||||||
}
|
}
|
||||||
void onClipRegion(const SkRegion& clip, SkClipOp op) override {
|
void onClipRegion(const SkRegion& clip, SkClipOp op) override {
|
||||||
|
SkCanvas::onClipRegion(clip, op);
|
||||||
fTarget->clipRegion(clip, op);
|
fTarget->clipRegion(clip, op);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user