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 #ifndef CC_STUBS_EXTENSIONS3DCHROMIUM_H_ | 5 #ifndef CC_STUBS_EXTENSIONS3DCHROMIUM_H_ |
6 #define CC_STUBS_EXTENSIONS3DCHROMIUM_H_ | 6 #define CC_STUBS_EXTENSIONS3DCHROMIUM_H_ |
7 | 7 |
8 #include "Extensions3D.h" | 8 #include "Extensions3D.h" |
9 | 9 |
10 // These enum names collides with gl2ext.h, so we just redefine them. | 10 // These enum names collides with gl2ext.h, so we just redefine them. |
11 #ifdef GL_TEXTURE_EXTERNAL_OES | 11 #ifdef GL_TEXTURE_EXTERNAL_OES |
12 #undef GL_TEXTURE_EXTERNAL_OES | 12 #undef GL_TEXTURE_EXTERNAL_OES |
13 #endif | 13 #endif |
14 #ifdef GL_TEXTURE_USAGE_ANGLE | 14 #ifdef GL_TEXTURE_USAGE_ANGLE |
15 #undef GL_TEXTURE_USAGE_ANGLE | 15 #undef GL_TEXTURE_USAGE_ANGLE |
16 #endif | 16 #endif |
17 #ifdef GL_FRAMEBUFFER_ATTACHMENT_ANGLE | 17 #ifdef GL_FRAMEBUFFER_ATTACHMENT_ANGLE |
18 #undef GL_FRAMEBUFFER_ATTACHMENT_ANGLE | 18 #undef GL_FRAMEBUFFER_ATTACHMENT_ANGLE |
19 #endif | 19 #endif |
20 | 20 |
21 namespace WebCore { | 21 namespace cc { |
22 | 22 |
23 class Extensions3DChromium { | 23 class Extensions3DChromium { |
24 public: | 24 public: |
25 enum { | 25 enum { |
26 // GL_OES_EGL_image_external | 26 // GL_OES_EGL_image_external |
27 GL_TEXTURE_EXTERNAL_OES = 0x8D65, | 27 GL_TEXTURE_EXTERNAL_OES = 0x8D65, |
28 | 28 |
29 // GL_CHROMIUM_map_sub (enums inherited from GL_ARB_vertex_buffer_object
) | 29 // GL_CHROMIUM_map_sub (enums inherited from GL_ARB_vertex_buffer_object
) |
30 READ_ONLY = 0x88B8, | 30 READ_ONLY = 0x88B8, |
31 WRITE_ONLY = 0x88B9, | 31 WRITE_ONLY = 0x88B9, |
(...skipping 13 matching lines...) Expand all Loading... |
45 QUERY_RESULT_AVAILABLE_EXT = 0x8867, | 45 QUERY_RESULT_AVAILABLE_EXT = 0x8867, |
46 | 46 |
47 // GL_CHROMIUM_command_buffer_query | 47 // GL_CHROMIUM_command_buffer_query |
48 COMMANDS_ISSUED_CHROMIUM = 0x84F2 | 48 COMMANDS_ISSUED_CHROMIUM = 0x84F2 |
49 }; | 49 }; |
50 }; | 50 }; |
51 | 51 |
52 } | 52 } |
53 | 53 |
54 #endif // CC_STUBS_EXTENSIONS3DCHROMIUM_H_ | 54 #endif // CC_STUBS_EXTENSIONS3DCHROMIUM_H_ |
55 | |
OLD | NEW |