| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |