| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
| 6 #include <GLES2/gl2chromium.h> | 6 #include <GLES2/gl2chromium.h> |
| 7 #include <GLES2/gl2ext.h> | 7 #include <GLES2/gl2ext.h> |
| 8 #include <GLES2/gl2extchromium.h> | 8 #include <GLES2/gl2extchromium.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 return; | 118 return; |
| 119 case gfx::BufferFormat::ATC: | 119 case gfx::BufferFormat::ATC: |
| 120 case gfx::BufferFormat::ATCIA: | 120 case gfx::BufferFormat::ATCIA: |
| 121 case gfx::BufferFormat::BGRX_8888: | 121 case gfx::BufferFormat::BGRX_8888: |
| 122 case gfx::BufferFormat::DXT1: | 122 case gfx::BufferFormat::DXT1: |
| 123 case gfx::BufferFormat::DXT5: | 123 case gfx::BufferFormat::DXT5: |
| 124 case gfx::BufferFormat::ETC1: | 124 case gfx::BufferFormat::ETC1: |
| 125 case gfx::BufferFormat::RG_88: | 125 case gfx::BufferFormat::RG_88: |
| 126 case gfx::BufferFormat::RGBX_8888: | 126 case gfx::BufferFormat::RGBX_8888: |
| 127 case gfx::BufferFormat::UYVY_422: | 127 case gfx::BufferFormat::UYVY_422: |
| 128 case gfx::BufferFormat::YUYV_422: |
| 128 case gfx::BufferFormat::YVU_420: | 129 case gfx::BufferFormat::YVU_420: |
| 129 case gfx::BufferFormat::YUV_420_BIPLANAR: | 130 case gfx::BufferFormat::YUV_420_BIPLANAR: |
| 130 NOTREACHED(); | 131 NOTREACHED(); |
| 131 return; | 132 return; |
| 132 } | 133 } |
| 133 | 134 |
| 134 NOTREACHED(); | 135 NOTREACHED(); |
| 135 } | 136 } |
| 136 | 137 |
| 137 GLenum InternalFormat(gfx::BufferFormat format) { | 138 GLenum InternalFormat(gfx::BufferFormat format) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 148 case gfx::BufferFormat::BGRA_8888: | 149 case gfx::BufferFormat::BGRA_8888: |
| 149 return GL_BGRA_EXT; | 150 return GL_BGRA_EXT; |
| 150 case gfx::BufferFormat::ATC: | 151 case gfx::BufferFormat::ATC: |
| 151 case gfx::BufferFormat::ATCIA: | 152 case gfx::BufferFormat::ATCIA: |
| 152 case gfx::BufferFormat::BGRX_8888: | 153 case gfx::BufferFormat::BGRX_8888: |
| 153 case gfx::BufferFormat::DXT1: | 154 case gfx::BufferFormat::DXT1: |
| 154 case gfx::BufferFormat::DXT5: | 155 case gfx::BufferFormat::DXT5: |
| 155 case gfx::BufferFormat::ETC1: | 156 case gfx::BufferFormat::ETC1: |
| 156 case gfx::BufferFormat::RGBX_8888: | 157 case gfx::BufferFormat::RGBX_8888: |
| 157 case gfx::BufferFormat::UYVY_422: | 158 case gfx::BufferFormat::UYVY_422: |
| 159 case gfx::BufferFormat::YUYV_422: |
| 158 case gfx::BufferFormat::YVU_420: | 160 case gfx::BufferFormat::YVU_420: |
| 159 case gfx::BufferFormat::YUV_420_BIPLANAR: | 161 case gfx::BufferFormat::YUV_420_BIPLANAR: |
| 160 NOTREACHED(); | 162 NOTREACHED(); |
| 161 return 0; | 163 return 0; |
| 162 } | 164 } |
| 163 | 165 |
| 164 NOTREACHED(); | 166 NOTREACHED(); |
| 165 return 0; | 167 return 0; |
| 166 } | 168 } |
| 167 | 169 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 INSTANTIATE_TEST_CASE_P(GpuMemoryBufferTests, | 254 INSTANTIATE_TEST_CASE_P(GpuMemoryBufferTests, |
| 253 GpuMemoryBufferTest, | 255 GpuMemoryBufferTest, |
| 254 ::testing::Values(gfx::BufferFormat::R_8, | 256 ::testing::Values(gfx::BufferFormat::R_8, |
| 255 gfx::BufferFormat::BGR_565, | 257 gfx::BufferFormat::BGR_565, |
| 256 gfx::BufferFormat::RGBA_4444, | 258 gfx::BufferFormat::RGBA_4444, |
| 257 gfx::BufferFormat::RGBA_8888, | 259 gfx::BufferFormat::RGBA_8888, |
| 258 gfx::BufferFormat::BGRA_8888)); | 260 gfx::BufferFormat::BGRA_8888)); |
| 259 | 261 |
| 260 } // namespace gles2 | 262 } // namespace gles2 |
| 261 } // namespace gpu | 263 } // namespace gpu |
| OLD | NEW |