| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual ~WebGLVertexArrayObjectOES(); | 43 virtual ~WebGLVertexArrayObjectOES(); |
| 44 | 44 |
| 45 static PassRefPtr<WebGLVertexArrayObjectOES> create(WebGLRenderingContext*,
VaoType); | 45 static PassRefPtr<WebGLVertexArrayObjectOES> create(WebGLRenderingContext*,
VaoType); |
| 46 | 46 |
| 47 // Cached values for vertex attrib range checks | 47 // Cached values for vertex attrib range checks |
| 48 struct VertexAttribState { | 48 struct VertexAttribState { |
| 49 VertexAttribState() | 49 VertexAttribState() |
| 50 : enabled(false) | 50 : enabled(false) |
| 51 , bytesPerElement(0) | 51 , bytesPerElement(0) |
| 52 , size(4) | 52 , size(4) |
| 53 , type(GraphicsContext3D::FLOAT) | 53 , type(GL_FLOAT) |
| 54 , normalized(false) | 54 , normalized(false) |
| 55 , stride(16) | 55 , stride(16) |
| 56 , originalStride(0) | 56 , originalStride(0) |
| 57 , offset(0) | 57 , offset(0) |
| 58 , divisor(0) | 58 , divisor(0) |
| 59 { | 59 { |
| 60 } | 60 } |
| 61 | 61 |
| 62 bool enabled; | 62 bool enabled; |
| 63 RefPtr<WebGLBuffer> bufferBinding; | 63 RefPtr<WebGLBuffer> bufferBinding; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 93 | 93 |
| 94 VaoType m_type; | 94 VaoType m_type; |
| 95 bool m_hasEverBeenBound; | 95 bool m_hasEverBeenBound; |
| 96 RefPtr<WebGLBuffer> m_boundElementArrayBuffer; | 96 RefPtr<WebGLBuffer> m_boundElementArrayBuffer; |
| 97 Vector<VertexAttribState> m_vertexAttribState; | 97 Vector<VertexAttribState> m_vertexAttribState; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace WebCore | 100 } // namespace WebCore |
| 101 | 101 |
| 102 #endif // WebGLVertexArrayObjectOES_h | 102 #endif // WebGLVertexArrayObjectOES_h |
| OLD | NEW |