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 #ifndef CC_OUTPUT_GEOMETRY_BINDING_H_ | 5 #ifndef CC_OUTPUT_GEOMETRY_BINDING_H_ |
6 #define CC_OUTPUT_GEOMETRY_BINDING_H_ | 6 #define CC_OUTPUT_GEOMETRY_BINDING_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/output/gl_renderer.h" // For the GLC() macro. | |
10 #include "gpu/command_buffer/client/gles2_interface.h" | 9 #include "gpu/command_buffer/client/gles2_interface.h" |
11 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
12 #include "third_party/khronos/GLES2/gl2ext.h" | 11 #include "third_party/khronos/GLES2/gl2ext.h" |
13 #include "ui/gfx/geometry/rect_f.h" | 12 #include "ui/gfx/geometry/rect_f.h" |
14 | 13 |
15 namespace gfx { | 14 namespace gfx { |
16 class QuadF; | 15 class QuadF; |
17 class Quad; | 16 class Quad; |
18 class QuadIndex; | 17 class QuadIndex; |
19 class PointF; | 18 class PointF; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 static int TriangleIndexAttribLocation() { return 2; } | 60 static int TriangleIndexAttribLocation() { return 2; } |
62 }; | 61 }; |
63 | 62 |
64 void SetupGLContext(gpu::gles2::GLES2Interface* gl, | 63 void SetupGLContext(gpu::gles2::GLES2Interface* gl, |
65 GLuint quad_elements_vbo, | 64 GLuint quad_elements_vbo, |
66 GLuint quad_vertices_vbo); | 65 GLuint quad_vertices_vbo); |
67 | 66 |
68 } // namespace cc | 67 } // namespace cc |
69 | 68 |
70 #endif // CC_OUTPUT_GEOMETRY_BINDING_H_ | 69 #endif // CC_OUTPUT_GEOMETRY_BINDING_H_ |
OLD | NEW |