| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 VaoType m_type; | 99 VaoType m_type; |
| 100 bool m_hasEverBeenBound; | 100 bool m_hasEverBeenBound; |
| 101 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; | 101 RefPtrWillBeMember<WebGLBuffer> m_boundElementArrayBuffer; |
| 102 WillBeHeapVector<VertexAttribState> m_vertexAttribState; | 102 WillBeHeapVector<VertexAttribState> m_vertexAttribState; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| 106 | 106 |
| 107 namespace WTF { | 107 namespace WTF { |
| 108 template<> | 108 template<> |
| 109 struct VectorTraits<WebCore::WebGLVertexArrayObjectOES::VertexAttribState> : Sim
pleClassVectorTraits<WebCore::WebGLVertexArrayObjectOES::VertexAttribState> { | 109 struct VectorTraits<blink::WebGLVertexArrayObjectOES::VertexAttribState> : Simpl
eClassVectorTraits<blink::WebGLVertexArrayObjectOES::VertexAttribState> { |
| 110 // Specialization needed as the VertexAttribState's struct fields | 110 // Specialization needed as the VertexAttribState's struct fields |
| 111 // aren't handled as desired by the IsPod() trait. | 111 // aren't handled as desired by the IsPod() trait. |
| 112 #if ENABLE(OILPAN) | 112 #if ENABLE(OILPAN) |
| 113 static const bool needsDestruction = false; | 113 static const bool needsDestruction = false; |
| 114 #endif | 114 #endif |
| 115 // Must use the constructor. | 115 // Must use the constructor. |
| 116 static const bool canInitializeWithMemset = false; | 116 static const bool canInitializeWithMemset = false; |
| 117 static const bool canCopyWithMemcpy = true; | 117 static const bool canCopyWithMemcpy = true; |
| 118 }; | 118 }; |
| 119 } | 119 } |
| 120 | 120 |
| 121 #endif // WebGLVertexArrayObjectOES_h | 121 #endif // WebGLVertexArrayObjectOES_h |
| OLD | NEW |