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

Unified Diff: ui/gl/gl_image_glx.cc

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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/gl/gl_bindings.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_glx.cc
diff --git a/ui/gl/gl_image_glx.cc b/ui/gl/gl_image_glx.cc
index 2152cfea3f65dfec682424e16423942313155008..395636bcfee06a1a8a58657753505cb2e812a53a 100644
--- a/ui/gl/gl_image_glx.cc
+++ b/ui/gl/gl_image_glx.cc
@@ -26,7 +26,7 @@ struct ScopedPtrXFree {
bool ValidFormat(unsigned internalformat) {
switch (internalformat) {
- case GL_BGRA8_EXT:
+ case GL_RGBA:
return true;
default:
return false;
@@ -35,7 +35,7 @@ bool ValidFormat(unsigned internalformat) {
int TextureFormat(unsigned internalformat) {
switch (internalformat) {
- case GL_BGRA8_EXT:
+ case GL_RGBA:
return GLX_TEXTURE_FORMAT_RGBA_EXT;
default:
NOTREACHED();
@@ -45,7 +45,7 @@ int TextureFormat(unsigned internalformat) {
int BindToTextureFormat(unsigned internalformat) {
switch (internalformat) {
- case GL_BGRA8_EXT:
+ case GL_RGBA:
return GLX_BIND_TO_TEXTURE_RGBA_EXT;
default:
NOTREACHED();
@@ -55,7 +55,7 @@ int BindToTextureFormat(unsigned internalformat) {
unsigned PixmapDepth(unsigned internalformat) {
switch (internalformat) {
- case GL_BGRA8_EXT:
+ case GL_RGBA:
return 32u;
default:
NOTREACHED();
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | ui/gl/gl_image_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698