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

Unified Diff: blimp/client/feature/compositor/blimp_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: blimp/client/feature/compositor/blimp_context_provider.cc
diff --git a/blimp/client/feature/compositor/blimp_context_provider.cc b/blimp/client/feature/compositor/blimp_context_provider.cc
index 07e94e8e437bca8ccaa4ca1ae9a95f26b3a47bb7..a4699fee8df78e35740827ae02aaf4fde7c0878f 100644
--- a/blimp/client/feature/compositor/blimp_context_provider.cc
+++ b/blimp/client/feature/compositor/blimp_context_provider.cc
@@ -124,5 +124,11 @@ void BlimpContextProvider::OnLostContext() {
gr_context_->OnLostContext();
}
+uint32_t BlimpContextProvider::GetCopyTextureInternalFormat() {
+ // The attributes used to create the context in the constructor specify
+ // an alpha channel.
+ return GL_RGBA;
+}
+
} // namespace client
} // namespace blimp
« no previous file with comments | « blimp/client/feature/compositor/blimp_context_provider.h ('k') | blimp/client/feature/compositor/blimp_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698