OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_CLIENT_OPENGL_GL_DEMO_SCREEN_H_ | |
joedow
2016/12/19 23:56:26
The macro guard should match the dir structure: RE
| |
6 #define REMOTING_CLIENT_OPENGL_GL_DEMO_SCREEN_H_ | |
7 | |
8 #include <memory> | |
9 #include <vector> | |
10 | |
11 #include "base/macros.h" | |
12 #include "remoting/client/gl_drawable.h" | |
13 #include "remoting/client/sys_opengl.h" | |
14 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | |
15 | |
16 namespace remoting { | |
17 | |
18 class GlCanvas; | |
19 | |
20 // This class draws the desktop on the canvas. | |
21 class GlDemoScreen : public GlDrawable { | |
22 public: | |
23 GlDemoScreen(); | |
24 ~GlDemoScreen() override; | |
25 | |
joedow
2016/12/19 23:56:26
Interface overrides are typically grouped together
| |
26 void SetCanvas(GlCanvas* canvas) override; | |
27 | |
28 void Draw() override; | |
29 | |
30 private: | |
31 GlCanvas* canvas_ = nullptr; | |
32 int square_size; | |
33 GLuint program; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(GlDemoScreen); | |
36 }; | |
37 | |
38 } // namespace remoting | |
39 | |
40 #endif // REMOTING_CLIENT_OPENGL_GL_DEMO_SCREEN_H_ | |
OLD | NEW |