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

Unified Diff: ui/gfx/mac/io_surface.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
« no previous file with comments | « third_party/khronos/README.chromium ('k') | ui/gl/gl_image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mac/io_surface.cc
diff --git a/ui/gfx/mac/io_surface.cc b/ui/gfx/mac/io_surface.cc
index e48a813ad42e020beb03a6da3f3e6b6c48f77445..f9093a61fac7b43572a727a981ddf46e7e50036f 100644
--- a/ui/gfx/mac/io_surface.cc
+++ b/ui/gfx/mac/io_surface.cc
@@ -32,6 +32,7 @@ int32_t BytesPerElement(gfx::BufferFormat format, int plane) {
return 1;
case gfx::BufferFormat::BGRA_8888:
case gfx::BufferFormat::RGBA_8888:
+ case gfx::BufferFormat::BGRX_8888:
DCHECK_EQ(plane, 0);
return 4;
case gfx::BufferFormat::YUV_420_BIPLANAR:
@@ -48,7 +49,6 @@ int32_t BytesPerElement(gfx::BufferFormat format, int plane) {
case gfx::BufferFormat::ETC1:
case gfx::BufferFormat::RGBA_4444:
case gfx::BufferFormat::RGBX_8888:
- case gfx::BufferFormat::BGRX_8888:
case gfx::BufferFormat::YUV_420:
NOTREACHED();
return 0;
@@ -64,6 +64,7 @@ int32_t PixelFormat(gfx::BufferFormat format) {
return 'L008';
case gfx::BufferFormat::BGRA_8888:
case gfx::BufferFormat::RGBA_8888:
+ case gfx::BufferFormat::BGRX_8888:
return 'BGRA';
case gfx::BufferFormat::YUV_420_BIPLANAR:
return '420v';
@@ -76,7 +77,6 @@ int32_t PixelFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::ETC1:
case gfx::BufferFormat::RGBA_4444:
case gfx::BufferFormat::RGBX_8888:
- case gfx::BufferFormat::BGRX_8888:
case gfx::BufferFormat::YUV_420:
NOTREACHED();
return 0;
« no previous file with comments | « third_party/khronos/README.chromium ('k') | ui/gl/gl_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698