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

Unified Diff: gpu/command_buffer/service/image_factory.cc

Issue 1830453002: WebGL: GL_RGB emulation for IOSurface backed textures. [For reference only] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error. Created 4 years, 9 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: gpu/command_buffer/service/image_factory.cc
diff --git a/gpu/command_buffer/service/image_factory.cc b/gpu/command_buffer/service/image_factory.cc
index a96da9a46a6535746bd9d5fe4b3cf62734824e27..33ac705da27543777e001af39970202195baab95 100644
--- a/gpu/command_buffer/service/image_factory.cc
+++ b/gpu/command_buffer/service/image_factory.cc
@@ -22,6 +22,7 @@ gfx::BufferFormat ImageFactory::DefaultBufferFormatForImageFormat(
case GL_RED:
return gfx::BufferFormat::R_8;
case GL_RGB:
+ case GL_BGR_EXT:
return gfx::BufferFormat::BGRX_8888;
case GL_RGBA:
return gfx::BufferFormat::RGBA_8888;

Powered by Google App Engine
This is Rietveld 408576698