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

Unified Diff: android_webview/browser/aw_render_thread_context_provider.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/aw_render_thread_context_provider.cc
diff --git a/android_webview/browser/aw_render_thread_context_provider.cc b/android_webview/browser/aw_render_thread_context_provider.cc
index 7385f73bd1ece7a54454ecf3e0f24e8b75808d1f..c5a585aee0f0c30213711b680bb6eddf4341f9e6 100644
--- a/android_webview/browser/aw_render_thread_context_provider.cc
+++ b/android_webview/browser/aw_render_thread_context_provider.cc
@@ -75,6 +75,11 @@ AwRenderThreadContextProvider::~AwRenderThreadContextProvider() {
gr_context_->releaseResourcesAndAbandonContext();
}
+uint32_t AwRenderThreadContextProvider::GetCopyTextureInternalFormat() {
+ // The attributes used in the constructor included an alpha channel.
+ return GL_RGBA;
+}
+
bool AwRenderThreadContextProvider::BindToCurrentThread() {
// This is called on the thread the context will be used.
DCHECK(main_thread_checker_.CalledOnValidThread());
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.h ('k') | android_webview/browser/parent_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698