OLD | NEW |
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_OPENGL_GL_CANVAS_H_ | 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_CANVAS_H_ |
6 #define REMOTING_CLIENT_OPENGL_GL_CANVAS_H_ | 6 #define REMOTING_CLIENT_DISPLAY_GL_CANVAS_H_ |
7 | 7 |
8 #include <array> | 8 #include <array> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 #include "remoting/client/sys_opengl.h" | 12 #include "remoting/client/display/sys_opengl.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 // This class holds zoom and pan configurations of the canvas and is used to | 16 // This class holds zoom and pan configurations of the canvas and is used to |
17 // draw textures on the canvas. | 17 // draw textures on the canvas. |
18 // Must be constructed after the OpenGL surface is created and destroyed before | 18 // Must be constructed after the OpenGL surface is created and destroyed before |
19 // the surface is destroyed. | 19 // the surface is destroyed. |
20 class GlCanvas { | 20 class GlCanvas { |
21 public: | 21 public: |
22 // gl_version: version number of the OpenGL ES context. Either 2 or 3. | 22 // gl_version: version number of the OpenGL ES context. Either 2 or 3. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 GLuint position_location_; | 84 GLuint position_location_; |
85 GLuint tex_cord_location_; | 85 GLuint tex_cord_location_; |
86 | 86 |
87 base::ThreadChecker thread_checker_; | 87 base::ThreadChecker thread_checker_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(GlCanvas); | 89 DISALLOW_COPY_AND_ASSIGN(GlCanvas); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace remoting | 92 } // namespace remoting |
93 | 93 |
94 #endif // REMOTING_CLIENT_OPENGL_GL_CANVAS_H_ | 94 #endif // REMOTING_CLIENT_DISPLAY_GL_CANVAS_H_ |
OLD | NEW |