Chromium Code Reviews| Index: remoting/client/gl_drawable.h |
| diff --git a/remoting/client/gl_drawable.h b/remoting/client/gl_drawable.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b097a5622ba06229e06c62a7dbcc9dfc36078e31 |
| --- /dev/null |
| +++ b/remoting/client/gl_drawable.h |
| @@ -0,0 +1,38 @@ |
| +// 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_OPENGL_GL_DRAWABLE_H_ |
|
Sergey Ulanov
2016/12/19 23:50:21
remove _OPENGL_ part
|
| +#define REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_ |
| + |
| +#include <stddef.h> |
| +#include <stdint.h> |
| + |
| +#include <list> |
| +#include <memory> |
|
Sergey Ulanov
2016/12/19 23:50:21
nit: Don't need any of the includes above.
|
| + |
| +#include "base/macros.h" |
| + |
| +namespace remoting { |
| + |
| +class GlCanvas; |
| + |
| +class GlDrawable { |
| + public: |
| + GlDrawable() {} |
| + virtual ~GlDrawable() {} |
| + |
| + // Sets the canvas on which the object will be drawn. |
| + // If |canvas| is nullptr, nothing will happen when calling Draw(). |
| + virtual void SetCanvas(GlCanvas* canvas) = 0; |
| + |
| + // Draws the object on the canvas. |
| + virtual void Draw() = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(GlDrawable); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_ |