| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 135 } |
| 136 case gfx::BufferFormat::ATC: | 136 case gfx::BufferFormat::ATC: |
| 137 case gfx::BufferFormat::ATCIA: | 137 case gfx::BufferFormat::ATCIA: |
| 138 case gfx::BufferFormat::BGRX_8888: | 138 case gfx::BufferFormat::BGRX_8888: |
| 139 case gfx::BufferFormat::DXT1: | 139 case gfx::BufferFormat::DXT1: |
| 140 case gfx::BufferFormat::DXT5: | 140 case gfx::BufferFormat::DXT5: |
| 141 case gfx::BufferFormat::ETC1: | 141 case gfx::BufferFormat::ETC1: |
| 142 case gfx::BufferFormat::RG_88: | 142 case gfx::BufferFormat::RG_88: |
| 143 case gfx::BufferFormat::RGBX_8888: | 143 case gfx::BufferFormat::RGBX_8888: |
| 144 case gfx::BufferFormat::UYVY_422: | 144 case gfx::BufferFormat::UYVY_422: |
| 145 case gfx::BufferFormat::YUYV_422: |
| 145 case gfx::BufferFormat::YVU_420: | 146 case gfx::BufferFormat::YVU_420: |
| 146 case gfx::BufferFormat::YUV_420_BIPLANAR: | 147 case gfx::BufferFormat::YUV_420_BIPLANAR: |
| 147 NOTREACHED(); | 148 NOTREACHED(); |
| 148 return; | 149 return; |
| 149 } | 150 } |
| 150 | 151 |
| 151 NOTREACHED(); | 152 NOTREACHED(); |
| 152 } | 153 } |
| 153 | 154 |
| 154 GLenum InternalFormat(gfx::BufferFormat format) { | 155 GLenum InternalFormat(gfx::BufferFormat format) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 167 case gfx::BufferFormat::RGBA_F16: | 168 case gfx::BufferFormat::RGBA_F16: |
| 168 return GL_RGBA; | 169 return GL_RGBA; |
| 169 case gfx::BufferFormat::ATC: | 170 case gfx::BufferFormat::ATC: |
| 170 case gfx::BufferFormat::ATCIA: | 171 case gfx::BufferFormat::ATCIA: |
| 171 case gfx::BufferFormat::BGRX_8888: | 172 case gfx::BufferFormat::BGRX_8888: |
| 172 case gfx::BufferFormat::DXT1: | 173 case gfx::BufferFormat::DXT1: |
| 173 case gfx::BufferFormat::DXT5: | 174 case gfx::BufferFormat::DXT5: |
| 174 case gfx::BufferFormat::ETC1: | 175 case gfx::BufferFormat::ETC1: |
| 175 case gfx::BufferFormat::RGBX_8888: | 176 case gfx::BufferFormat::RGBX_8888: |
| 176 case gfx::BufferFormat::UYVY_422: | 177 case gfx::BufferFormat::UYVY_422: |
| 178 case gfx::BufferFormat::YUYV_422: |
| 177 case gfx::BufferFormat::YVU_420: | 179 case gfx::BufferFormat::YVU_420: |
| 178 case gfx::BufferFormat::YUV_420_BIPLANAR: | 180 case gfx::BufferFormat::YUV_420_BIPLANAR: |
| 179 NOTREACHED(); | 181 NOTREACHED(); |
| 180 return 0; | 182 return 0; |
| 181 } | 183 } |
| 182 | 184 |
| 183 NOTREACHED(); | 185 NOTREACHED(); |
| 184 return 0; | 186 return 0; |
| 185 } | 187 } |
| 186 | 188 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 GpuMemoryBufferTest, | 274 GpuMemoryBufferTest, |
| 273 ::testing::Values(gfx::BufferFormat::R_8, | 275 ::testing::Values(gfx::BufferFormat::R_8, |
| 274 gfx::BufferFormat::BGR_565, | 276 gfx::BufferFormat::BGR_565, |
| 275 gfx::BufferFormat::RGBA_4444, | 277 gfx::BufferFormat::RGBA_4444, |
| 276 gfx::BufferFormat::RGBA_8888, | 278 gfx::BufferFormat::RGBA_8888, |
| 277 gfx::BufferFormat::BGRA_8888, | 279 gfx::BufferFormat::BGRA_8888, |
| 278 gfx::BufferFormat::RGBA_F16)); | 280 gfx::BufferFormat::RGBA_F16)); |
| 279 | 281 |
| 280 } // namespace gles2 | 282 } // namespace gles2 |
| 281 } // namespace gpu | 283 } // namespace gpu |
| OLD | NEW |