From 62d307c2402777d5e53b4590af5f32f8c55afd81 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 29 Jul 2014 10:35:13 -0700 Subject: 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 --- libs/hwui/StatefulBaseRenderer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/hwui/StatefulBaseRenderer.cpp') 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(); } -- cgit v1.2.3-59-g8ed1b