Chromium Code Reviews| Index: remoting/client/ios/display/gl_demo_screen.h |
| diff --git a/remoting/client/ios/display/gl_demo_screen.h b/remoting/client/ios/display/gl_demo_screen.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a2aeb649d8b9b1fc3e1ddce4b7cabb78a021498e |
| --- /dev/null |
| +++ b/remoting/client/ios/display/gl_demo_screen.h |
| @@ -0,0 +1,40 @@ |
| +// 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_DEMO_SCREEN_H_ |
|
joedow
2016/12/19 23:56:26
The macro guard should match the dir structure: RE
|
| +#define REMOTING_CLIENT_OPENGL_GL_DEMO_SCREEN_H_ |
| + |
| +#include <memory> |
| +#include <vector> |
| + |
| +#include "base/macros.h" |
| +#include "remoting/client/gl_drawable.h" |
| +#include "remoting/client/sys_opengl.h" |
| +#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
| + |
| +namespace remoting { |
| + |
| +class GlCanvas; |
| + |
| +// This class draws the desktop on the canvas. |
| +class GlDemoScreen : public GlDrawable { |
| + public: |
| + GlDemoScreen(); |
| + ~GlDemoScreen() override; |
| + |
|
joedow
2016/12/19 23:56:26
Interface overrides are typically grouped together
|
| + void SetCanvas(GlCanvas* canvas) override; |
| + |
| + void Draw() override; |
| + |
| + private: |
| + GlCanvas* canvas_ = nullptr; |
| + int square_size; |
| + GLuint program; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GlDemoScreen); |
| +}; |
| + |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_CLIENT_OPENGL_GL_DEMO_SCREEN_H_ |