Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: remoting/client/ios/display/gl_demo_screen.h

Issue 2555803002: Adding the iOS app and integration example with GlRenderer. (Closed)
Patch Set: Adjusting how gl_renderer draws layers and added a demo app for CRD iOS. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698