Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: android_webview/browser/parent_output_surface.cc

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copytextureformat: comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « android_webview/browser/parent_output_surface.h ('k') | blimp/client/feature/compositor/blimp_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698