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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 VertexAttribState* getVertexAttribState(size_t); | 88 VertexAttribState* getVertexAttribState(size_t); |
89 void setVertexAttribState(GLuint, GLsizei, GLint, GLenum, GLboolean, GLsizei
, GLintptr, PassRefPtrWillBeRawPtr<WebGLBuffer>); | 89 void setVertexAttribState(GLuint, GLsizei, GLint, GLenum, GLboolean, GLsizei
, GLintptr, PassRefPtrWillBeRawPtr<WebGLBuffer>); |
90 void unbindBuffer(PassRefPtrWillBeRawPtr<WebGLBuffer>); | 90 void unbindBuffer(PassRefPtrWillBeRawPtr<WebGLBuffer>); |
91 void setVertexAttribDivisor(GLuint index, GLuint divisor); | 91 void setVertexAttribDivisor(GLuint index, GLuint divisor); |
92 | 92 |
93 DECLARE_VIRTUAL_TRACE(); | 93 DECLARE_VIRTUAL_TRACE(); |
94 | 94 |
95 private: | 95 private: |
96 WebGLVertexArrayObjectOES(WebGLRenderingContextBase*, VaoType); | 96 WebGLVertexArrayObjectOES(WebGLRenderingContextBase*, VaoType); |
97 | 97 |
98 void dispatchDetached(blink::WebGraphicsContext3D*); | 98 void dispatchDetached(WebGraphicsContext3D*); |
99 bool hasObject() const override { return m_object != 0; } | 99 bool hasObject() const override { return m_object != 0; } |
100 void deleteObjectImpl(blink::WebGraphicsContext3D*) override; | 100 void deleteObjectImpl(WebGraphicsContext3D*) override; |
101 | 101 |
102 Platform3DObject m_object; | 102 Platform3DObject m_object; |
103 | 103 |
104 VaoType m_type; | 104 VaoType m_type; |
105 bool m_hasEverBeenBound; | 105 bool m_hasEverBeenBound; |
106 #if ENABLE(OILPAN) | 106 #if ENABLE(OILPAN) |
107 bool m_destructionInProgress; | 107 bool m_destructionInProgress; |
108 #endif | 108 #endif |
109 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; | 109 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; |
110 WillBeHeapVector<OwnPtrWillBeMember<VertexAttribState>> m_vertexAttribState; | 110 WillBeHeapVector<OwnPtrWillBeMember<VertexAttribState>> m_vertexAttribState; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif // WebGLVertexArrayObjectOES_h | 115 #endif // WebGLVertexArrayObjectOES_h |
OLD | NEW |