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

Side by Side Diff: ui/ozone/gl/gl_image_ozone_native_pixmap.cc

Issue 2262353002: gl: Add YV12 to bind image unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yuv-test-image
Patch Set: Rebase on Master. Use a different color for YVU tests. Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/gl/gl_image_ozone_native_pixmap.h" 5 #include "ui/ozone/gl/gl_image_ozone_native_pixmap.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ui/gfx/buffer_format_util.h" 9 #include "ui/gfx/buffer_format_util.h"
10 #include "ui/gl/gl_surface_egl.h" 10 #include "ui/gl/gl_surface_egl.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 case gfx::BufferFormat::R_8: 288 case gfx::BufferFormat::R_8:
289 return GL_RED_EXT; 289 return GL_RED_EXT;
290 case gfx::BufferFormat::BGR_565: 290 case gfx::BufferFormat::BGR_565:
291 case gfx::BufferFormat::RGBX_8888: 291 case gfx::BufferFormat::RGBX_8888:
292 case gfx::BufferFormat::BGRX_8888: 292 case gfx::BufferFormat::BGRX_8888:
293 return GL_RGB; 293 return GL_RGB;
294 case gfx::BufferFormat::RGBA_8888: 294 case gfx::BufferFormat::RGBA_8888:
295 return GL_RGBA; 295 return GL_RGBA;
296 case gfx::BufferFormat::BGRA_8888: 296 case gfx::BufferFormat::BGRA_8888:
297 return GL_BGRA_EXT; 297 return GL_BGRA_EXT;
298 case gfx::BufferFormat::YVU_420:
299 return GL_RGB_YCRCB_420_CHROMIUM;
298 case gfx::BufferFormat::ATC: 300 case gfx::BufferFormat::ATC:
299 case gfx::BufferFormat::ATCIA: 301 case gfx::BufferFormat::ATCIA:
300 case gfx::BufferFormat::DXT1: 302 case gfx::BufferFormat::DXT1:
301 case gfx::BufferFormat::DXT5: 303 case gfx::BufferFormat::DXT5:
302 case gfx::BufferFormat::ETC1: 304 case gfx::BufferFormat::ETC1:
303 case gfx::BufferFormat::RGBA_4444: 305 case gfx::BufferFormat::RGBA_4444:
304 case gfx::BufferFormat::YVU_420:
305 case gfx::BufferFormat::YUV_420_BIPLANAR: 306 case gfx::BufferFormat::YUV_420_BIPLANAR:
306 case gfx::BufferFormat::UYVY_422: 307 case gfx::BufferFormat::UYVY_422:
307 NOTREACHED(); 308 NOTREACHED();
308 return GL_NONE; 309 return GL_NONE;
309 } 310 }
310 311
311 NOTREACHED(); 312 NOTREACHED();
312 return GL_NONE; 313 return GL_NONE;
313 } 314 }
314 315
315 } // namespace ui 316 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/gl/gl_image_ozone_native_pixmap_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698