| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |