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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698