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

Unified Diff: ui/gfx/mac/io_surface.cc

Issue 1870483003: Add command buffer support for GL_RGB CHROMIUM image emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing braces. Created 4 years, 8 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/WebKit/public/platform/WebGraphicsContext3DProvider.h ('k') | ui/gl/BUILD.gn » ('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..52fe6014ea15d0a605e2cc7ddacfbdd2e135fd95 100644
--- a/ui/gfx/mac/io_surface.cc
+++ b/ui/gfx/mac/io_surface.cc
@@ -31,6 +31,7 @@ int32_t BytesPerElement(gfx::BufferFormat format, int plane) {
DCHECK_EQ(plane, 0);
return 1;
case gfx::BufferFormat::BGRA_8888:
+ case gfx::BufferFormat::BGRX_8888:
case gfx::BufferFormat::RGBA_8888:
DCHECK_EQ(plane, 0);
return 4;
@@ -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;
@@ -63,6 +63,7 @@ int32_t PixelFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::R_8:
return 'L008';
case gfx::BufferFormat::BGRA_8888:
+ case gfx::BufferFormat::BGRX_8888:
case gfx::BufferFormat::RGBA_8888:
return 'BGRA';
case gfx::BufferFormat::YUV_420_BIPLANAR:
@@ -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/WebKit/public/platform/WebGraphicsContext3DProvider.h ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698