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

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

Issue 6268016: Fix GL_CHROMIUM_framebuffer_multisample to accept the correct enums.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months 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 | Annotate | Revision Log
« 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 #include <GLES2/gl2ext.h> 9 #include <GLES2/gl2ext.h>
10 #include <GLES2/gles2_command_buffer.h> 10 #include <GLES2/gles2_command_buffer.h>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 case GL_SUBPIXEL_BITS: 186 case GL_SUBPIXEL_BITS:
187 return 1; 187 return 1;
188 case GL_TEXTURE_BINDING_2D: 188 case GL_TEXTURE_BINDING_2D:
189 return 1; 189 return 1;
190 case GL_TEXTURE_BINDING_CUBE_MAP: 190 case GL_TEXTURE_BINDING_CUBE_MAP:
191 return 1; 191 return 1;
192 case GL_UNPACK_ALIGNMENT: 192 case GL_UNPACK_ALIGNMENT:
193 return 1; 193 return 1;
194 case GL_VIEWPORT: 194 case GL_VIEWPORT:
195 return 4; 195 return 4;
196 // -- glGetBooleanv, glGetFloatv, glGetIntergerv with
197 // GL_CHROMIUM_framebuffer_multisample
198 case GL_MAX_SAMPLES_EXT:
199 return 1;
196 200
197 // -- glGetBufferParameteriv 201 // -- glGetBufferParameteriv
198 case GL_BUFFER_SIZE: 202 case GL_BUFFER_SIZE:
199 return 1; 203 return 1;
200 case GL_BUFFER_USAGE: 204 case GL_BUFFER_USAGE:
201 return 1; 205 return 1;
202 206
203 // -- glGetFramebufferAttachmentParameteriv 207 // -- glGetFramebufferAttachmentParameteriv
204 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 208 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:
205 return 1; 209 return 1;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 case GL_RGB5_A1: 519 case GL_RGB5_A1:
516 return 0x000F; 520 return 0x000F;
517 default: 521 default:
518 return 0x0000; 522 return 0x0000;
519 } 523 }
520 } 524 }
521 525
522 } // namespace gles2 526 } // namespace gles2
523 } // namespace gpu 527 } // namespace gpu
524 528
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