diff options
author | 2015-12-17 12:58:24 -0800 | |
---|---|---|
committer | 2015-12-17 23:31:44 +0000 | |
commit | a2a70723b8cbda4354d23f901f995623e819012c (patch) | |
tree | 4c58b998473a64955a5177109b55ddda21d24ef8 /libs/hwui/CanvasState.cpp | |
parent | 2b17db773e12deffecbc26e9aa591fb4d2e9f917 (diff) |
Simplify ClipArea to prefer Rect args
Change-Id: I8af83d01dc5dd8009a0cd235dd8b59dab61d8560
Diffstat (limited to 'libs/hwui/CanvasState.cpp')
-rw-r--r-- | libs/hwui/CanvasState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/CanvasState.cpp b/libs/hwui/CanvasState.cpp index 6a6cc42043df..cf76e6be46c4 100644 --- a/libs/hwui/CanvasState.cpp +++ b/libs/hwui/CanvasState.cpp @@ -192,7 +192,7 @@ void CanvasState::concatMatrix(const Matrix4& matrix) { /////////////////////////////////////////////////////////////////////////////// bool CanvasState::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { - mSnapshot->clip(left, top, right, bottom, op); + mSnapshot->clip(Rect(left, top, right, bottom), op); mDirtyClip = true; return !mSnapshot->clipIsEmpty(); } |