| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "GeometryBinding.h" | 9 #include "GeometryBinding.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 GLC(m_context, m_context->vertexAttribPointer(positionAttribLocation(), 3, G
raphicsContext3D::FLOAT, false, 5 * sizeof(float), offset)); | 52 GLC(m_context, m_context->vertexAttribPointer(positionAttribLocation(), 3, G
raphicsContext3D::FLOAT, false, 5 * sizeof(float), offset)); |
| 53 offset += 3 * sizeof(float); | 53 offset += 3 * sizeof(float); |
| 54 GLC(m_context, m_context->vertexAttribPointer(texCoordAttribLocation(), 2, G
raphicsContext3D::FLOAT, false, 5 * sizeof(float), offset)); | 54 GLC(m_context, m_context->vertexAttribPointer(texCoordAttribLocation(), 2, G
raphicsContext3D::FLOAT, false, 5 * sizeof(float), offset)); |
| 55 GLC(m_context, m_context->enableVertexAttribArray(positionAttribLocation()))
; | 55 GLC(m_context, m_context->enableVertexAttribArray(positionAttribLocation()))
; |
| 56 GLC(m_context, m_context->enableVertexAttribArray(texCoordAttribLocation()))
; | 56 GLC(m_context, m_context->enableVertexAttribArray(texCoordAttribLocation()))
; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace cc | 59 } // namespace cc |
| 60 | 60 |
| 61 #endif // USE(ACCELERATED_COMPOSITING) | 61 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |