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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 2543033002: Add texture swizzle back to command buffer. (Closed)
Patch Set: add swizzle value negative test 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 | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | 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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 case GL_TEXTURE_BASE_LEVEL: 421 case GL_TEXTURE_BASE_LEVEL:
422 return 1; 422 return 1;
423 case GL_TEXTURE_MAX_LEVEL: 423 case GL_TEXTURE_MAX_LEVEL:
424 return 1; 424 return 1;
425 case GL_TEXTURE_IMMUTABLE_FORMAT: 425 case GL_TEXTURE_IMMUTABLE_FORMAT:
426 return 1; 426 return 1;
427 case GL_TEXTURE_IMMUTABLE_LEVELS: 427 case GL_TEXTURE_IMMUTABLE_LEVELS:
428 return 1; 428 return 1;
429 case GL_TEXTURE_MAX_ANISOTROPY_EXT: 429 case GL_TEXTURE_MAX_ANISOTROPY_EXT:
430 return 1; 430 return 1;
431 case GL_TEXTURE_SWIZZLE_R:
432 return 1;
433 case GL_TEXTURE_SWIZZLE_G:
434 return 1;
435 case GL_TEXTURE_SWIZZLE_B:
436 return 1;
437 case GL_TEXTURE_SWIZZLE_A:
438 return 1;
431 439
432 // -- glGetVertexAttrib 440 // -- glGetVertexAttrib
433 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 441 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:
434 return 1; 442 return 1;
435 case GL_VERTEX_ATTRIB_ARRAY_ENABLED: 443 case GL_VERTEX_ATTRIB_ARRAY_ENABLED:
436 return 1; 444 return 1;
437 case GL_VERTEX_ATTRIB_ARRAY_SIZE: 445 case GL_VERTEX_ATTRIB_ARRAY_SIZE:
438 return 1; 446 return 1;
439 case GL_VERTEX_ATTRIB_ARRAY_STRIDE: 447 case GL_VERTEX_ATTRIB_ARRAY_STRIDE:
440 return 1; 448 return 1;
(...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 } 1952 }
1945 } 1953 }
1946 1954
1947 return true; 1955 return true;
1948 } 1956 }
1949 1957
1950 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1958 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1951 1959
1952 } // namespace gles2 1960 } // namespace gles2
1953 } // namespace gpu 1961 } // namespace gpu
1954
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698