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_DRAWABLE_H_ | |
Sergey Ulanov
2016/12/19 23:50:21
remove _OPENGL_ part
| |
6 #define REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_ | |
7 | |
8 #include <stddef.h> | |
9 #include <stdint.h> | |
10 | |
11 #include <list> | |
12 #include <memory> | |
Sergey Ulanov
2016/12/19 23:50:21
nit: Don't need any of the includes above.
| |
13 | |
14 #include "base/macros.h" | |
15 | |
16 namespace remoting { | |
17 | |
18 class GlCanvas; | |
19 | |
20 class GlDrawable { | |
21 public: | |
22 GlDrawable() {} | |
23 virtual ~GlDrawable() {} | |
24 | |
25 // Sets the canvas on which the object will be drawn. | |
26 // If |canvas| is nullptr, nothing will happen when calling Draw(). | |
27 virtual void SetCanvas(GlCanvas* canvas) = 0; | |
28 | |
29 // Draws the object on the canvas. | |
30 virtual void Draw() = 0; | |
31 | |
32 private: | |
33 DISALLOW_COPY_AND_ASSIGN(GlDrawable); | |
34 }; | |
35 | |
36 } // namespace remoting | |
37 | |
38 #endif // REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_ | |
OLD | NEW |