diff options
author | Chris Craik <ccraik@google.com> | 2015-07-16 13:07:45 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-07-16 13:31:41 -0700 |
commit | 8ce8f3f4d68a7750bc02b5254ebbd8658281e675 (patch) | |
tree | d3a5bcc9fa72f5ccd59a52e3b032c604f4ba1c96 /libs/hwui/ClipArea.h | |
parent | db8fa48ed0864125a07f2bbe078fd60abd875ac7 (diff) | |
download | frameworks_base-8ce8f3f4d68a7750bc02b5254ebbd8658281e675.zip frameworks_base-8ce8f3f4d68a7750bc02b5254ebbd8658281e675.tar.gz frameworks_base-8ce8f3f4d68a7750bc02b5254ebbd8658281e675.tar.bz2 |
Fix clip area behavior for REPLACE op
bug:22291400
Work around clippath-clipped-to-view-bounds behavior by
implementing REPLACE op fast path, avoiding the transition to
SkRegion/SkPath.
Change-Id: I63c1cf961db2d6e3759d83914de1036c9ac7497a
Diffstat (limited to 'libs/hwui/ClipArea.h')
-rw-r--r-- | libs/hwui/ClipArea.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/ClipArea.h b/libs/hwui/ClipArea.h index e284af0..51ef27b 100644 --- a/libs/hwui/ClipArea.h +++ b/libs/hwui/ClipArea.h @@ -153,6 +153,8 @@ private: } void regionFromPath(const SkPath& path, SkRegion& pathAsRegion) { + // TODO: this should not mask every path to the viewport - this makes it impossible to use + // paths to clip to larger areas (which is valid e.g. with SkRegion::kReplace_Op) pathAsRegion.setPath(path, createViewportRegion()); } |