Chromium Code Reviews| Index: remoting/client/opengl/gl_helpers.h |
| diff --git a/remoting/client/opengl/gl_helpers.h b/remoting/client/opengl/gl_helpers.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2029db283eee29e01cf1a512ae3a1c1ae38dd43c |
| --- /dev/null |
| +++ b/remoting/client/opengl/gl_helpers.h |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_CLIENT_GL_HELPERS_H_ |
| +#define REMOTING_CLIENT_GL_HELPERS_H_ |
| + |
| +#include "base/macros.h" |
| +#include "remoting/client/opengl_wrapper.h" |
| + |
| +namespace remoting { |
| + |
| +GLuint CompileShader(GLenum shaderType, const char* shaderSource); |
|
Sergey Ulanov
2016/06/27 23:15:29
shader_type, shader_source
Sergey Ulanov
2016/06/27 23:15:30
add documentation for each of these functions
Yuwei
2016/06/28 22:51:11
Done.
|
| +GLuint CreateProgram(GLuint vertex_shader, GLuint fragment_shader); |
| +GLuint CreateTexture(); |
| +GLuint CreateBuffer(const void* data, int size); |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_CLIENT_GL_HELPERS_H_ |