| 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;
|
|
|