| 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> |
| 11 #include <GLES2/gl2extchromium.h> | 11 #include <GLES2/gl2extchromium.h> |
| 12 #include <GLES3/gl3.h> | 12 #include <GLES3/gl3.h> |
| 13 | 13 |
| 14 #include "base/numerics/safe_math.h" | 14 #include "base/numerics/safe_math.h" |
| 15 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 15 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 16 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 16 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 17 | 17 |
| 18 // TODO(zmo): missing enums from ES3 header file gl3.h. |
| 19 #if !defined(GL_PACK_SKIP_IMAGES) |
| 20 #define GL_PACK_SKIP_IMAGES 0x806B |
| 21 #endif |
| 22 #if !defined(GL_PACK_IMAGE_HEIGHT) |
| 23 #define GL_PACK_IMAGE_HEIGHT 0x806C |
| 24 #endif |
| 25 |
| 18 namespace gpu { | 26 namespace gpu { |
| 19 namespace gles2 { | 27 namespace gles2 { |
| 20 | 28 |
| 21 namespace gl_error_bit { | 29 namespace gl_error_bit { |
| 22 enum GLErrorBit { | 30 enum GLErrorBit { |
| 23 kNoError = 0, | 31 kNoError = 0, |
| 24 kInvalidEnum = (1 << 0), | 32 kInvalidEnum = (1 << 0), |
| 25 kInvalidValue = (1 << 1), | 33 kInvalidValue = (1 << 1), |
| 26 kInvalidOperation = (1 << 2), | 34 kInvalidOperation = (1 << 2), |
| 27 kOutOfMemory = (1 << 3), | 35 kOutOfMemory = (1 << 3), |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 } | 1201 } |
| 1194 | 1202 |
| 1195 return true; | 1203 return true; |
| 1196 } | 1204 } |
| 1197 | 1205 |
| 1198 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 1206 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
| 1199 | 1207 |
| 1200 } // namespace gles2 | 1208 } // namespace gles2 |
| 1201 } // namespace gpu | 1209 } // namespace gpu |
| 1202 | 1210 |
| OLD | NEW |