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

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

Issue 267683008: ChromeOS only version of r261563 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 years, 7 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
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 <sstream> 8 #include <sstream>
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 case GL_VERTEX_ATTRIB_ARRAY_TYPE: 318 case GL_VERTEX_ATTRIB_ARRAY_TYPE:
319 return 1; 319 return 1;
320 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED: 320 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED:
321 return 1; 321 return 1;
322 case GL_CURRENT_VERTEX_ATTRIB: 322 case GL_CURRENT_VERTEX_ATTRIB:
323 return 4; 323 return 4;
324 324
325 // -- glHint with GL_OES_standard_derivatives 325 // -- glHint with GL_OES_standard_derivatives
326 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 326 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES:
327 return 1; 327 return 1;
328 328 #if defined(OS_CHROMEOS)
329 // Chromium internal bind_generates_resource query
330 case GL_BIND_GENERATES_RESOURCE_CHROMIUM:
331 return 1;
332 #endif
329 // bad enum 333 // bad enum
330 default: 334 default:
331 return 0; 335 return 0;
332 } 336 }
333 } 337 }
334 338
335 namespace { 339 namespace {
336 340
337 // Return the number of elements per group of a specified format. 341 // Return the number of elements per group of a specified format.
338 int ElementsPerGroup(int format, int type) { 342 int ElementsPerGroup(int format, int type) {
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 } 907 }
904 908
905 return true; 909 return true;
906 } 910 }
907 911
908 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 912 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
909 913
910 } // namespace gles2 914 } // namespace gles2
911 } // namespace gpu 915 } // namespace gpu
912 916
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698