diff options
author | 2014-05-14 18:11:23 -0700 | |
---|---|---|
committer | 2014-05-14 18:11:23 -0700 | |
commit | 2bcad176757386d906157bb898167fbcebe9f55e (patch) | |
tree | a0327df35ecd89f09e53491c21463087f98a2ac0 /libs/hwui/RenderNode.cpp | |
parent | a7e089f28c494f3c34e77f924b273acdbcf3ddd2 (diff) |
Remove Path based outline clipping
Change-Id: Ic5ccd98a7517b46e768e53d6b0c8fdcda305fb2c
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
-rw-r--r-- | libs/hwui/RenderNode.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index 9902ff14d173..fba482d0f483 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -238,9 +238,8 @@ void RenderNode::setViewProperties(OpenGLRenderer& renderer, T& handler) { } if (CC_UNLIKELY(properties().hasClippingPath())) { - // TODO: optimize for round rect/circle clipping - const SkPath* path = properties().getClippingPath(); - ClipPathOp* op = new (handler.allocator()) ClipPathOp(path, SkRegion::kIntersect_Op); + ClipPathOp* op = new (handler.allocator()) ClipPathOp( + properties().getClippingPath(), properties().getClippingPathOp()); handler(op, PROPERTY_SAVECOUNT, properties().getClipToBounds()); } } |