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