diff options
| author | 2017-01-04 14:57:43 -0500 | |
|---|---|---|
| committer | 2017-01-04 14:57:43 -0500 | |
| commit | b29b16e5423fe7deab8ebf3da512c6d2192f19b5 (patch) | |
| tree | 6e0c9b68f6cf30fddb28f358e373c2cefa3d37a8 /libs/hwui/CanvasState.cpp | |
| parent | e5fb79bb2def5a17d158193c2e668224dc5ad5c1 (diff) | |
Remove clipRegion from the public API.
This API is difficult to support for printing and has other negative
effects as it does not respect the current matrix/clip.
Test: compile
Bug: 14650725
Change-Id: I71f9bd687d446c7ce8910d755421aad8e09458db
Diffstat (limited to 'libs/hwui/CanvasState.cpp')
| -rw-r--r-- | libs/hwui/CanvasState.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/hwui/CanvasState.cpp b/libs/hwui/CanvasState.cpp index dbbf00d8bdec..9c068b080d45 100644 --- a/libs/hwui/CanvasState.cpp +++ b/libs/hwui/CanvasState.cpp @@ -212,11 +212,6 @@ bool CanvasState::clipPath(const SkPath* path, SkClipOp op) { return !mSnapshot->clipIsEmpty(); } -bool CanvasState::clipRegion(const SkRegion* region, SkClipOp op) { - mSnapshot->clipRegionTransformed(*region, op); - return !mSnapshot->clipIsEmpty(); -} - void CanvasState::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { Rect bounds; float radius; |