| 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 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3155 case GL_RG8I: | 3155 case GL_RG8I: |
| 3156 case GL_RG16UI: | 3156 case GL_RG16UI: |
| 3157 case GL_RG16I: | 3157 case GL_RG16I: |
| 3158 case GL_RG32UI: | 3158 case GL_RG32UI: |
| 3159 case GL_RG32I: | 3159 case GL_RG32I: |
| 3160 return GL_RG_INTEGER; | 3160 return GL_RG_INTEGER; |
| 3161 case GL_ATC_RGB_AMD: | 3161 case GL_ATC_RGB_AMD: |
| 3162 case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG: | 3162 case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG: |
| 3163 case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG: | 3163 case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG: |
| 3164 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: | 3164 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: |
| 3165 case GL_COMPRESSED_SRGB_S3TC_DXT1_EXT: |
| 3165 case GL_ETC1_RGB8_OES: | 3166 case GL_ETC1_RGB8_OES: |
| 3166 case GL_RGB: | 3167 case GL_RGB: |
| 3167 case GL_RGB8: | 3168 case GL_RGB8: |
| 3168 case GL_SRGB8: | 3169 case GL_SRGB8: |
| 3169 case GL_R11F_G11F_B10F: | 3170 case GL_R11F_G11F_B10F: |
| 3170 case GL_RGB565: | 3171 case GL_RGB565: |
| 3171 case GL_RGB8_SNORM: | 3172 case GL_RGB8_SNORM: |
| 3172 case GL_RGB9_E5: | 3173 case GL_RGB9_E5: |
| 3173 case GL_RGB16F: | 3174 case GL_RGB16F: |
| 3174 case GL_RGB32F: | 3175 case GL_RGB32F: |
| 3175 return GL_RGB; | 3176 return GL_RGB; |
| 3176 case GL_RGB8UI: | 3177 case GL_RGB8UI: |
| 3177 case GL_RGB8I: | 3178 case GL_RGB8I: |
| 3178 case GL_RGB16UI: | 3179 case GL_RGB16UI: |
| 3179 case GL_RGB16I: | 3180 case GL_RGB16I: |
| 3180 case GL_RGB32UI: | 3181 case GL_RGB32UI: |
| 3181 case GL_RGB32I: | 3182 case GL_RGB32I: |
| 3182 return GL_RGB_INTEGER; | 3183 return GL_RGB_INTEGER; |
| 3183 case GL_SRGB: | 3184 case GL_SRGB: |
| 3184 return GL_SRGB; | 3185 return GL_SRGB; |
| 3185 case GL_ATC_RGBA_EXPLICIT_ALPHA_AMD: | 3186 case GL_ATC_RGBA_EXPLICIT_ALPHA_AMD: |
| 3186 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: | 3187 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: |
| 3187 case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: | 3188 case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: |
| 3188 case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: | 3189 case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: |
| 3189 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: | 3190 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: |
| 3190 case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: | 3191 case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: |
| 3191 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: | 3192 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: |
| 3193 case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: |
| 3194 case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: |
| 3195 case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: |
| 3192 case GL_RGBA: | 3196 case GL_RGBA: |
| 3193 case GL_RGBA8: | 3197 case GL_RGBA8: |
| 3194 case GL_SRGB8_ALPHA8: | 3198 case GL_SRGB8_ALPHA8: |
| 3195 case GL_RGBA8_SNORM: | 3199 case GL_RGBA8_SNORM: |
| 3196 case GL_RGBA4: | 3200 case GL_RGBA4: |
| 3197 case GL_RGB5_A1: | 3201 case GL_RGB5_A1: |
| 3198 case GL_RGB10_A2: | 3202 case GL_RGB10_A2: |
| 3199 case GL_RGBA16F: | 3203 case GL_RGBA16F: |
| 3200 case GL_RGBA32F: | 3204 case GL_RGBA32F: |
| 3201 return GL_RGBA; | 3205 return GL_RGBA; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3400 uint32_t TextureManager::GetServiceIdGeneration() const { | 3404 uint32_t TextureManager::GetServiceIdGeneration() const { |
| 3401 return current_service_id_generation_; | 3405 return current_service_id_generation_; |
| 3402 } | 3406 } |
| 3403 | 3407 |
| 3404 void TextureManager::IncrementServiceIdGeneration() { | 3408 void TextureManager::IncrementServiceIdGeneration() { |
| 3405 current_service_id_generation_++; | 3409 current_service_id_generation_++; |
| 3406 } | 3410 } |
| 3407 | 3411 |
| 3408 } // namespace gles2 | 3412 } // namespace gles2 |
| 3409 } // namespace gpu | 3413 } // namespace gpu |
| OLD | NEW |