Home | History | Annotate | Download | only in hwui

Lines Matching refs:stencil

84     if (mRenderTarget.stencil) {
85 // if stencil was used for clipping, detach it and return it to pool
88 mCaches.renderBufferCache.put(mRenderTarget.stencil);
89 mRenderTarget.stencil = nullptr;
137 mRenderState.stencil().enableDebugTest(i + 1, false);
140 mRenderState.stencil().enableDebugTest(4, true);
155 mRenderState.stencil().disable();
225 // clears and re-fills stencil with provided rendertarget space quads,
226 // and then put stencil into test mode
229 mRenderState.stencil().enableWrite(incrementThreshold);
230 mRenderState.stencil().clear();
240 mRenderState.stencil().enableTest(incrementThreshold);
295 // Prepare scissor (done before stencil, to simplify filling stencil)
301 // If stencil may be used for clipping, enable it, fill it, or disable it as appropriate
303 // only modify stencil mode and content when it's not used for overdraw visualization
308 // Stencil needed, but current stencil isn't up to date
311 if (mRenderTarget.frameBufferId != 0 && !mRenderTarget.stencil) {
313 mRenderTarget.stencil = mCaches.renderBufferCache.get(
314 Stencil::getLayerStencilFormat(),
316 // stencil is bound + allocated - associate it with current FBO
318 GL_RENDERBUFFER, mRenderTarget.stencil->getName());
327 // stencil is up to date - just need to ensure it's enabled (since an unclipped
328 // or scissor-only clipped op may have been drawn, disabling the stencil)
334 mRenderState.stencil().enableTest(incrementThreshold);
337 // either scissor or no clip, so disable stencil test
338 mRenderState.stencil().disable();