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

Unified Diff: ui/compositor/test/in_process_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
« no previous file with comments | « ui/compositor/test/in_process_context_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_provider.cc
diff --git a/ui/compositor/test/in_process_context_provider.cc b/ui/compositor/test/in_process_context_provider.cc
index 570044e58a550f37d79b441f497bb9855d583885..d2ccd5882ceb749c78bf851b0c8d4ad2ebf876c2 100644
--- a/ui/compositor/test/in_process_context_provider.cc
+++ b/ui/compositor/test/in_process_context_provider.cc
@@ -160,4 +160,13 @@ void InProcessContextProvider::SetLostContextCallback(
// Pixel tests do not test lost context.
}
+uint32_t InProcessContextProvider::GetCopyTextureInternalFormat() {
+ if (attribs_.alpha_size > 0)
+ return GL_RGBA;
+ DCHECK_NE(attribs_.red_size, 0);
+ DCHECK_NE(attribs_.green_size, 0);
+ DCHECK_NE(attribs_.blue_size, 0);
+ return GL_RGB;
+}
+
} // namespace ui
« no previous file with comments | « ui/compositor/test/in_process_context_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698