| Index: android_webview/browser/parent_output_surface.cc
|
| diff --git a/android_webview/browser/parent_output_surface.cc b/android_webview/browser/parent_output_surface.cc
|
| index 79b855d7045e50cd6773734bc634ee00983d6454..293683cd3f5045881b549a98dab0f7a078ec6371 100644
|
| --- a/android_webview/browser/parent_output_surface.cc
|
| +++ b/android_webview/browser/parent_output_surface.cc
|
| @@ -37,6 +37,10 @@ void ParentOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
|
| context_provider_->ContextGL()->ShallowFlushCHROMIUM();
|
| }
|
|
|
| +bool ParentOutputSurface::HasExternalStencilTest() const {
|
| + return stencil_state_.stencil_test_enabled;
|
| +}
|
| +
|
| void ParentOutputSurface::ApplyExternalStencil() {
|
| DCHECK(stencil_state_.stencil_test_enabled);
|
| gpu::gles2::GLES2Interface* gl = context_provider()->ContextGL();
|
| @@ -63,7 +67,6 @@ uint32_t ParentOutputSurface::GetFramebufferCopyTextureFormat() {
|
|
|
| void ParentOutputSurface::SetGLState(const ScopedAppGLStateRestore& gl_state) {
|
| stencil_state_ = gl_state.stencil_state();
|
| - SetExternalStencilTest(stencil_state_.stencil_test_enabled);
|
| }
|
|
|
| } // namespace android_webview
|
|
|