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 <stdio.h> | 8 #include <stdio.h> |
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 | 12 |
13 #include "../common/gles2_cmd_utils.h" | 13 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
14 #include "../common/gles2_cmd_format.h" | 14 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
15 | 15 |
16 namespace gpu { | 16 namespace gpu { |
17 namespace gles2 { | 17 namespace gles2 { |
18 | 18 |
19 namespace gl_error_bit { | 19 namespace gl_error_bit { |
20 enum GLErrorBit { | 20 enum GLErrorBit { |
21 kNoError = 0, | 21 kNoError = 0, |
22 kInvalidEnum = (1 << 0), | 22 kInvalidEnum = (1 << 0), |
23 kInvalidValue = (1 << 1), | 23 kInvalidValue = (1 << 1), |
24 kInvalidOperation = (1 << 2), | 24 kInvalidOperation = (1 << 2), |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 return true; | 791 return true; |
792 default: | 792 default: |
793 GPU_DLOG(ERROR) << "Invalid context creation attribute: " << attrib; | 793 GPU_DLOG(ERROR) << "Invalid context creation attribute: " << attrib; |
794 return false; | 794 return false; |
795 } | 795 } |
796 } | 796 } |
797 | 797 |
798 return true; | 798 return true; |
799 } | 799 } |
800 | 800 |
801 #include "../common/gles2_cmd_utils_implementation_autogen.h" | 801 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
802 | 802 |
803 } // namespace gles2 | 803 } // namespace gles2 |
804 } // namespace gpu | 804 } // namespace gpu |
805 | 805 |
OLD | NEW |