OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_GL_GL_HELPER_H_ | 5 #ifndef UI_GL_GL_HELPER_H_ |
6 #define UI_GL_GL_HELPER_H_ | 6 #define UI_GL_GL_HELPER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "ui/gl/gl_bindings.h" | 8 #include "ui/gl/gl_bindings.h" |
10 #include "ui/gl/gl_export.h" | 9 #include "ui/gl/gl_export.h" |
11 | 10 |
12 namespace gfx { | 11 namespace gfx { |
13 | 12 |
14 class GL_EXPORT GLHelper { | 13 class GL_EXPORT GLHelper { |
15 public: | 14 public: |
16 // Compiles a shader. | 15 // Compiles a shader. |
17 // Does not check for errors, always returns shader. | 16 // Does not check for errors, always returns shader. |
18 static GLuint CompileShader(GLenum type, const char* src); | 17 static GLuint CompileShader(GLenum type, const char* src); |
(...skipping 14 matching lines...) Expand all Loading... |
33 // a quad as a tri-strip. | 32 // a quad as a tri-strip. |
34 static GLuint SetupQuadVertexBuffer(); | 33 static GLuint SetupQuadVertexBuffer(); |
35 | 34 |
36 // Draws a quad to the currently bound frame buffer. | 35 // Draws a quad to the currently bound frame buffer. |
37 static void DrawQuad(GLuint vertex_buffer); | 36 static void DrawQuad(GLuint vertex_buffer); |
38 }; | 37 }; |
39 | 38 |
40 } // namespace gfx | 39 } // namespace gfx |
41 | 40 |
42 #endif // UI_GL_GL_HELPER_H_ | 41 #endif // UI_GL_GL_HELPER_H_ |
OLD | NEW |