OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebGLVertexArrayObjectOES_h | 26 #ifndef WebGLVertexArrayObjectOES_h |
27 #define WebGLVertexArrayObjectOES_h | 27 #define WebGLVertexArrayObjectOES_h |
28 | 28 |
29 #include "bindings/v8/ScriptWrappable.h" | 29 #include "bindings/v8/ScriptWrappable.h" |
30 #include "core/html/canvas/WebGLBuffer.h" | 30 #include "core/html/canvas/WebGLBuffer.h" |
31 #include "core/html/canvas/WebGLContextObject.h" | 31 #include "core/html/canvas/WebGLContextObject.h" |
32 #include <wtf/PassRefPtr.h> | 32 #include "wtf/PassRefPtr.h" |
33 #include <wtf/RefCounted.h> | |
34 | 33 |
35 namespace WebCore { | 34 namespace WebCore { |
36 | 35 |
37 class WebGLVertexArrayObjectOES : public WebGLContextObject, public ScriptWrappa
ble { | 36 class WebGLVertexArrayObjectOES : public WebGLContextObject, public ScriptWrappa
ble { |
38 public: | 37 public: |
39 enum VaoType { | 38 enum VaoType { |
40 VaoTypeDefault, | 39 VaoTypeDefault, |
41 VaoTypeUser, | 40 VaoTypeUser, |
42 }; | 41 }; |
43 | 42 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 93 |
95 VaoType m_type; | 94 VaoType m_type; |
96 bool m_hasEverBeenBound; | 95 bool m_hasEverBeenBound; |
97 RefPtr<WebGLBuffer> m_boundElementArrayBuffer; | 96 RefPtr<WebGLBuffer> m_boundElementArrayBuffer; |
98 Vector<VertexAttribState> m_vertexAttribState; | 97 Vector<VertexAttribState> m_vertexAttribState; |
99 }; | 98 }; |
100 | 99 |
101 } // namespace WebCore | 100 } // namespace WebCore |
102 | 101 |
103 #endif // WebGLVertexArrayObjectOES_h | 102 #endif // WebGLVertexArrayObjectOES_h |
OLD | NEW |