Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: gpu/command_buffer/service/texture_manager.cc

Issue 2539163003: Add command buffer support for GL_EXT_texture_sRGB_decode (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 return GL_INVALID_ENUM; 1346 return GL_INVALID_ENUM;
1347 } 1347 }
1348 swizzle_b_ = param; 1348 swizzle_b_ = param;
1349 break; 1349 break;
1350 case GL_TEXTURE_SWIZZLE_A: 1350 case GL_TEXTURE_SWIZZLE_A:
1351 if (!feature_info->validators()->texture_swizzle.IsValid(param)) { 1351 if (!feature_info->validators()->texture_swizzle.IsValid(param)) {
1352 return GL_INVALID_ENUM; 1352 return GL_INVALID_ENUM;
1353 } 1353 }
1354 swizzle_a_ = param; 1354 swizzle_a_ = param;
1355 break; 1355 break;
1356 case GL_TEXTURE_SRGB_DECODE_EXT:
1357 if (!feature_info->validators()->texture_srgb_decode_ext.IsValid(param)) {
1358 return GL_INVALID_ENUM;
1359 }
1360 break;
1356 case GL_TEXTURE_IMMUTABLE_FORMAT: 1361 case GL_TEXTURE_IMMUTABLE_FORMAT:
1357 case GL_TEXTURE_IMMUTABLE_LEVELS: 1362 case GL_TEXTURE_IMMUTABLE_LEVELS:
1358 return GL_INVALID_ENUM; 1363 return GL_INVALID_ENUM;
1359 default: 1364 default:
1360 NOTREACHED(); 1365 NOTREACHED();
1361 return GL_INVALID_ENUM; 1366 return GL_INVALID_ENUM;
1362 } 1367 }
1363 Update(); 1368 Update();
1364 UpdateCleared(); 1369 UpdateCleared();
1365 UpdateCanRenderCondition(); 1370 UpdateCanRenderCondition();
(...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after
3651 uint32_t TextureManager::GetServiceIdGeneration() const { 3656 uint32_t TextureManager::GetServiceIdGeneration() const {
3652 return current_service_id_generation_; 3657 return current_service_id_generation_;
3653 } 3658 }
3654 3659
3655 void TextureManager::IncrementServiceIdGeneration() { 3660 void TextureManager::IncrementServiceIdGeneration() {
3656 current_service_id_generation_++; 3661 current_service_id_generation_++;
3657 } 3662 }
3658 3663
3659 } // namespace gles2 3664 } // namespace gles2
3660 } // namespace gpu 3665 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698