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

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

Issue 6995114: Resubmit http://codereview.chromium.org/7046057 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/common/gles2_cmd_utils_unittest.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) 2011 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>
11 11
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 case GL_UNSIGNED_INT_24_8_OES: 316 case GL_UNSIGNED_INT_24_8_OES:
317 return 1; 317 return 1;
318 default: 318 default:
319 break; 319 break;
320 } 320 }
321 321
322 switch (format) { 322 switch (format) {
323 case GL_RGB: 323 case GL_RGB:
324 return 3; 324 return 3;
325 case GL_LUMINANCE_ALPHA: 325 case GL_LUMINANCE_ALPHA:
326 return 2;
326 case GL_RGBA: 327 case GL_RGBA:
327 case GL_BGRA_EXT: 328 case GL_BGRA_EXT:
328 return 4; 329 return 4;
329 case GL_ALPHA: 330 case GL_ALPHA:
330 case GL_LUMINANCE: 331 case GL_LUMINANCE:
331 case GL_DEPTH_COMPONENT: 332 case GL_DEPTH_COMPONENT:
332 case GL_DEPTH_STENCIL_OES: 333 case GL_DEPTH_STENCIL_OES:
333 return 1; 334 return 1;
334 default: 335 default:
335 return 0; 336 return 0;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 case GL_RGB5_A1: 522 case GL_RGB5_A1:
522 return 0x000F; 523 return 0x000F;
523 default: 524 default:
524 return 0x0000; 525 return 0x0000;
525 } 526 }
526 } 527 }
527 528
528 } // namespace gles2 529 } // namespace gles2
529 } // namespace gpu 530 } // namespace gpu
530 531
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698