| 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 "cc/geometry_binding.h" | 5 #include "cc/output/geometry_binding.h" |
| 6 | 6 |
| 7 #include "cc/gl_renderer.h" // For the GLC() macro. | 7 #include "cc/output/gl_renderer.h" // For the GLC() macro. |
| 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 8 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 9 #include "third_party/khronos/GLES2/gl2.h" | 9 #include "third_party/khronos/GLES2/gl2.h" |
| 10 #include "ui/gfx/rect_f.h" | 10 #include "ui/gfx/rect_f.h" |
| 11 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 GeometryBinding::GeometryBinding(WebKit::WebGraphicsContext3D* context, | 14 GeometryBinding::GeometryBinding(WebKit::WebGraphicsContext3D* context, |
| 15 const gfx::RectF& quad_vertex_rect) | 15 const gfx::RectF& quad_vertex_rect) |
| 16 : context_(context), | 16 : context_(context), |
| 17 quad_vertices_vbo_(0), | 17 quad_vertices_vbo_(0), |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 false, | 101 false, |
| 102 6 * sizeof(float), | 102 6 * sizeof(float), |
| 103 5 * sizeof(float))); | 103 5 * sizeof(float))); |
| 104 GLC(context_, context_->enableVertexAttribArray(PositionAttribLocation())); | 104 GLC(context_, context_->enableVertexAttribArray(PositionAttribLocation())); |
| 105 GLC(context_, context_->enableVertexAttribArray(TexCoordAttribLocation())); | 105 GLC(context_, context_->enableVertexAttribArray(TexCoordAttribLocation())); |
| 106 GLC(context_, | 106 GLC(context_, |
| 107 context_->enableVertexAttribArray(TriangleIndexAttribLocation())); | 107 context_->enableVertexAttribArray(TriangleIndexAttribLocation())); |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace cc | 110 } // namespace cc |
| OLD | NEW |