Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: remoting/client/display/gl_helpers.h

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Adding deps restriction on r/c/display; Moving sys_opengl.h Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/client/display/gl_desktop.cc ('k') | remoting/client/display/gl_helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 REMOTING_CLIENT_GL_HELPERS_H_ 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_HELPERS_H_
6 #define REMOTING_CLIENT_GL_HELPERS_H_ 6 #define REMOTING_CLIENT_DISPLAY_GL_HELPERS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "remoting/client/sys_opengl.h" 9 #include "remoting/client/display/sys_opengl.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 // Compiles a shader and returns the reference to the shader if it succeeds. 13 // Compiles a shader and returns the reference to the shader if it succeeds.
14 GLuint CompileShader(GLenum shader_type, const char* shader_source); 14 GLuint CompileShader(GLenum shader_type, const char* shader_source);
15 15
16 // Creates a program with the given reference to the vertex shader and fragment 16 // Creates a program with the given reference to the vertex shader and fragment
17 // shader. returns the reference of the program if it succeeds. 17 // shader. returns the reference of the program if it succeeds.
18 GLuint CreateProgram(GLuint vertex_shader, GLuint fragment_shader); 18 GLuint CreateProgram(GLuint vertex_shader, GLuint fragment_shader);
19 19
20 // Creates and returns the texture names if it succeeds. 20 // Creates and returns the texture names if it succeeds.
21 GLuint CreateTexture(); 21 GLuint CreateTexture();
22 22
23 // Creates a GL_ARRAY_BUFFER and fills it with |data|. Returns the reference to 23 // Creates a GL_ARRAY_BUFFER and fills it with |data|. Returns the reference to
24 // the buffer. 24 // the buffer.
25 GLuint CreateBuffer(const void* data, int size); 25 GLuint CreateBuffer(const void* data, int size);
26 26
27 } // namespace remoting 27 } // namespace remoting
28 28
29 #endif // REMOTING_CLIENT_GL_HELPERS_H_ 29 #endif // REMOTING_CLIENT_DISPLAY_GL_HELPERS_H_
OLDNEW
« no previous file with comments | « remoting/client/display/gl_desktop.cc ('k') | remoting/client/display/gl_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698