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

Unified Diff: ui/gl/gl_image_memory.cc

Issue 2689453002: Introduce gfx::BufferFormat::YUYV_422
Patch Set: rebase to ToT Created 3 years, 7 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_image_io_surface.mm ('k') | ui/gl/gl_image_native_pixmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_memory.cc
diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
index 20e694ff2fc322d622370749b3d97c5345492f67..14f58fa791c70aae25003eb367757dfb77bd9c49 100644
--- a/ui/gl/gl_image_memory.cc
+++ b/ui/gl/gl_image_memory.cc
@@ -57,6 +57,7 @@ bool ValidFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
return false;
}
@@ -85,6 +86,7 @@ bool IsCompressedFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return false;
}
@@ -122,6 +124,7 @@ GLenum TextureFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -152,6 +155,7 @@ GLenum DataFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -183,6 +187,7 @@ GLenum DataType(gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -214,6 +219,7 @@ GLint DataRowLength(size_t stride, gfx::BufferFormat format) {
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return 0;
}
@@ -344,6 +350,7 @@ std::unique_ptr<uint8_t[]> GLES2Data(const gfx::Size& size,
case gfx::BufferFormat::YVU_420:
case gfx::BufferFormat::YUV_420_BIPLANAR:
case gfx::BufferFormat::UYVY_422:
+ case gfx::BufferFormat::YUYV_422:
NOTREACHED();
return nullptr;
}
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698