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

Unified Diff: ui/gl/gl_image_native_pixmap.cc

Issue 2786103003: Add half-float IOSurface GpuMemoryBuffer support (Closed)
Patch Set: Review feedback Created 3 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 | « ui/gl/gl_image_memory.cc ('k') | ui/gl/test/gl_image_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_native_pixmap.cc
diff --git a/ui/gl/gl_image_native_pixmap.cc b/ui/gl/gl_image_native_pixmap.cc
index 1e74c2d6a2f29b73fd25652d18b82f8a2f516298..d29de1caacdfdcd470d9fc28df5cb083128d68dc 100644
--- a/ui/gl/gl_image_native_pixmap.cc
+++ b/ui/gl/gl_image_native_pixmap.cc
@@ -67,6 +67,7 @@ bool ValidFormat(gfx::BufferFormat format) {
case gfx::BufferFormat::DXT5:
case gfx::BufferFormat::ETC1:
case gfx::BufferFormat::RGBA_4444:
+ case gfx::BufferFormat::RGBA_F16:
case gfx::BufferFormat::UYVY_422:
return false;
}
@@ -101,6 +102,7 @@ EGLint FourCC(gfx::BufferFormat format) {
case gfx::BufferFormat::DXT5:
case gfx::BufferFormat::ETC1:
case gfx::BufferFormat::RGBA_4444:
+ case gfx::BufferFormat::RGBA_F16:
case gfx::BufferFormat::UYVY_422:
NOTREACHED();
return 0;
@@ -268,6 +270,7 @@ unsigned GLImageNativePixmap::GetInternalFormatForTesting(
case gfx::BufferFormat::DXT5:
case gfx::BufferFormat::ETC1:
case gfx::BufferFormat::RGBA_4444:
+ case gfx::BufferFormat::RGBA_F16:
case gfx::BufferFormat::UYVY_422:
NOTREACHED();
return GL_NONE;
« no previous file with comments | « ui/gl/gl_image_memory.cc ('k') | ui/gl/test/gl_image_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698