| 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 22bcaf0731361078f2077d152b9f356a03610f4f..601c487fa6b83fae0e7bf1d523375a2ce3bca28d 100644
|
| --- a/android_webview/browser/parent_output_surface.cc
|
| +++ b/android_webview/browser/parent_output_surface.cc
|
| @@ -4,13 +4,14 @@
|
|
|
| #include "android_webview/browser/parent_output_surface.h"
|
|
|
| +#include "android_webview/browser/aw_render_thread_context_provider.h"
|
| #include "cc/output/output_surface_client.h"
|
| #include "gpu/command_buffer/client/gles2_interface.h"
|
|
|
| namespace android_webview {
|
|
|
| ParentOutputSurface::ParentOutputSurface(
|
| - scoped_refptr<cc::ContextProvider> context_provider)
|
| + scoped_refptr<AwRenderThreadContextProvider> context_provider)
|
| : cc::OutputSurface(std::move(context_provider), nullptr, nullptr) {
|
| stencil_state_.stencil_test_enabled = false;
|
| }
|
| @@ -54,6 +55,11 @@ void ParentOutputSurface::ApplyExternalStencil() {
|
| stencil_state_.stencil_back_z_pass_op);
|
| }
|
|
|
| +uint32_t ParentOutputSurface::GetFramebufferCopyTextureFormat() {
|
| + auto* gl = static_cast<AwRenderThreadContextProvider*>(context_provider());
|
| + return gl->GetCopyTextureInternalFormat();
|
| +}
|
| +
|
| void ParentOutputSurface::SetGLState(const ScopedAppGLStateRestore& gl_state) {
|
| stencil_state_ = gl_state.stencil_state();
|
| SetExternalStencilTest(stencil_state_.stencil_test_enabled);
|
|
|