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

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

Issue 1950763002: Remove abstractions around GLuint and GL constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 case GL_RGBA16F: 1366 case GL_RGBA16F:
1367 case GL_RGBA32F: 1367 case GL_RGBA32F:
1368 return true; 1368 return true;
1369 default: 1369 default:
1370 return false; 1370 return false;
1371 } 1371 }
1372 } 1372 }
1373 1373
1374 namespace { 1374 namespace {
1375 1375
1376 // WebGraphicsContext3DCommandBufferImpl configuration attributes. Those in 1376 // GL context configuration attributes. Those in the 16-bit range are the same
1377 // the 16-bit range are the same as used by EGL. Those outside the 16-bit range 1377 // as used by EGL. Those outside the 16-bit range are unique to Chromium.
1378 // are unique to Chromium. Attributes are matched using a closest fit algorithm. 1378 // Attributes are matched using a closest fit algorithm.
1379 1379
1380 // From <EGL/egl.h>. 1380 // From <EGL/egl.h>.
1381 #include <stddef.h> 1381 #include <stddef.h>
1382 #include <stdint.h> 1382 #include <stdint.h>
1383 const int32_t kAlphaSize = 0x3021; // EGL_ALPHA_SIZE 1383 const int32_t kAlphaSize = 0x3021; // EGL_ALPHA_SIZE
1384 const int32_t kBlueSize = 0x3022; // EGL_BLUE_SIZE 1384 const int32_t kBlueSize = 0x3022; // EGL_BLUE_SIZE
1385 const int32_t kGreenSize = 0x3023; // EGL_GREEN_SIZE 1385 const int32_t kGreenSize = 0x3023; // EGL_GREEN_SIZE
1386 const int32_t kRedSize = 0x3024; // EGL_RED_SIZE 1386 const int32_t kRedSize = 0x3024; // EGL_RED_SIZE
1387 const int32_t kDepthSize = 0x3025; // EGL_DEPTH_SIZE 1387 const int32_t kDepthSize = 0x3025; // EGL_DEPTH_SIZE
1388 const int32_t kStencilSize = 0x3026; // EGL_STENCIL_SIZE 1388 const int32_t kStencilSize = 0x3026; // EGL_STENCIL_SIZE
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 } 1530 }
1531 1531
1532 return true; 1532 return true;
1533 } 1533 }
1534 1534
1535 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1535 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1536 1536
1537 } // namespace gles2 1537 } // namespace gles2
1538 } // namespace gpu 1538 } // namespace gpu
1539 1539
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698