summaryrefslogtreecommitdiff
path: root/libs/hwui/StatefulBaseRenderer.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2014-07-29 10:35:13 -0700
committer Chris Craik <ccraik@google.com> 2014-07-29 17:42:22 +0000
commit62d307c2402777d5e53b4590af5f32f8c55afd81 (patch)
treefbf89a15003e9e4e3b665bd271c41693dc992dbe /libs/hwui/StatefulBaseRenderer.cpp
parentf4bf67012b2109ead9a4cb9c4407563fc3671255 (diff)
Fix behavior of stencil clipping within clearLayerRegions
bug:16376960 The draw within clearLayerRegions should never be affected by the current stencil clip, since it's just ensuring that the content of the layer is cleared, and not doing real content drawing. Also, add optional verbose GL event logging Change-Id: I538b1bc631fc091340b76e12db6af0c219851b57
Diffstat (limited to 'libs/hwui/StatefulBaseRenderer.cpp')
-rw-r--r--libs/hwui/StatefulBaseRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/StatefulBaseRenderer.cpp b/libs/hwui/StatefulBaseRenderer.cpp
index 140c6e82f538..473005cf2c93 100644
--- a/libs/hwui/StatefulBaseRenderer.cpp
+++ b/libs/hwui/StatefulBaseRenderer.cpp
@@ -178,6 +178,7 @@ bool StatefulBaseRenderer::clipPath(const SkPath* path, SkRegion::Op op) {
SkRegion region;
region.setPath(transformed, clip);
+ // region is the transformed input path, masked by the previous clip
mDirtyClip |= mSnapshot->clipRegionTransformed(region, op);
return !mSnapshot->clipRect->isEmpty();
}