| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/texture_manager.h" | 5 #include "gpu/command_buffer/service/texture_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 3158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3169 case GL_RG8I: | 3169 case GL_RG8I: |
| 3170 case GL_RG16UI: | 3170 case GL_RG16UI: |
| 3171 case GL_RG16I: | 3171 case GL_RG16I: |
| 3172 case GL_RG32UI: | 3172 case GL_RG32UI: |
| 3173 case GL_RG32I: | 3173 case GL_RG32I: |
| 3174 return GL_RG_INTEGER; | 3174 return GL_RG_INTEGER; |
| 3175 case GL_ATC_RGB_AMD: | 3175 case GL_ATC_RGB_AMD: |
| 3176 case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG: | 3176 case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG: |
| 3177 case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG: | 3177 case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG: |
| 3178 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 3178 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
| 3179 case GL_COMPRESSED_SRGB_S3TC_DXT1_EXT: |
| 3179 case GL_ETC1_RGB8_OES: | 3180 case GL_ETC1_RGB8_OES: |
| 3180 case GL_RGB: | 3181 case GL_RGB: |
| 3181 case GL_RGB8: | 3182 case GL_RGB8: |
| 3182 case GL_SRGB8: | 3183 case GL_SRGB8: |
| 3183 case GL_R11F_G11F_B10F: | 3184 case GL_R11F_G11F_B10F: |
| 3184 case GL_RGB565: | 3185 case GL_RGB565: |
| 3185 case GL_RGB8_SNORM: | 3186 case GL_RGB8_SNORM: |
| 3186 case GL_RGB9_E5: | 3187 case GL_RGB9_E5: |
| 3187 case GL_RGB16F: | 3188 case GL_RGB16F: |
| 3188 case GL_RGB32F: | 3189 case GL_RGB32F: |
| 3189 return GL_RGB; | 3190 return GL_RGB; |
| 3190 case GL_RGB8UI: | 3191 case GL_RGB8UI: |
| 3191 case GL_RGB8I: | 3192 case GL_RGB8I: |
| 3192 case GL_RGB16UI: | 3193 case GL_RGB16UI: |
| 3193 case GL_RGB16I: | 3194 case GL_RGB16I: |
| 3194 case GL_RGB32UI: | 3195 case GL_RGB32UI: |
| 3195 case GL_RGB32I: | 3196 case GL_RGB32I: |
| 3196 return GL_RGB_INTEGER; | 3197 return GL_RGB_INTEGER; |
| 3197 case GL_SRGB: | 3198 case GL_SRGB: |
| 3198 return GL_SRGB; | 3199 return GL_SRGB; |
| 3199 case GL_ATC_RGBA_EXPLICIT_ALPHA_AMD: | 3200 case GL_ATC_RGBA_EXPLICIT_ALPHA_AMD: |
| 3200 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 3201 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
| 3201 case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: | 3202 case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: |
| 3202 case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: | 3203 case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: |
| 3203 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: | 3204 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: |
| 3204 case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: | 3205 case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: |
| 3205 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 3206 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 3207 case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: |
| 3208 case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: |
| 3209 case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: |
| 3206 case GL_RGBA: | 3210 case GL_RGBA: |
| 3207 case GL_RGBA8: | 3211 case GL_RGBA8: |
| 3208 case GL_SRGB8_ALPHA8: | 3212 case GL_SRGB8_ALPHA8: |
| 3209 case GL_RGBA8_SNORM: | 3213 case GL_RGBA8_SNORM: |
| 3210 case GL_RGBA4: | 3214 case GL_RGBA4: |
| 3211 case GL_RGB5_A1: | 3215 case GL_RGB5_A1: |
| 3212 case GL_RGB10_A2: | 3216 case GL_RGB10_A2: |
| 3213 case GL_RGBA16F: | 3217 case GL_RGBA16F: |
| 3214 case GL_RGBA32F: | 3218 case GL_RGBA32F: |
| 3215 return GL_RGBA; | 3219 return GL_RGBA; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3414 uint32_t TextureManager::GetServiceIdGeneration() const { | 3418 uint32_t TextureManager::GetServiceIdGeneration() const { |
| 3415 return current_service_id_generation_; | 3419 return current_service_id_generation_; |
| 3416 } | 3420 } |
| 3417 | 3421 |
| 3418 void TextureManager::IncrementServiceIdGeneration() { | 3422 void TextureManager::IncrementServiceIdGeneration() { |
| 3419 current_service_id_generation_++; | 3423 current_service_id_generation_++; |
| 3420 } | 3424 } |
| 3421 | 3425 |
| 3422 } // namespace gles2 | 3426 } // namespace gles2 |
| 3423 } // namespace gpu | 3427 } // namespace gpu |
| OLD | NEW |