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

Unified Diff: remoting/client/ios/display/gl_desktop.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_desktop.h
diff --git a/remoting/client/gl_desktop.h b/remoting/client/ios/display/gl_desktop.h
similarity index 88%
copy from remoting/client/gl_desktop.h
copy to remoting/client/ios/display/gl_desktop.h
index 2c98cd429d27b26181f0e55371c16a736daf3861..873201c9f05c71163850d3d739ccf45b5021274a 100644
--- a/remoting/client/gl_desktop.h
+++ b/remoting/client/ios/display/gl_desktop.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/macros.h"
+#include "remoting/client/gl_drawable.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
namespace webrtc {
@@ -18,13 +19,12 @@ class DesktopFrame;
namespace remoting {
class GlCanvas;
-class GlRenderLayer;
// This class draws the desktop on the canvas.
-class GlDesktop {
+class GlDesktop : public GlDrawable {
public:
GlDesktop();
- virtual ~GlDesktop();
+ ~GlDesktop() override;
// |frame| can be either a full frame or updated regions only frame.
void SetVideoFrame(const webrtc::DesktopFrame& frame);
@@ -32,10 +32,10 @@ class GlDesktop {
// Sets the canvas on which the desktop will be drawn. Caller must feed a
// full desktop frame after calling this function.
// If |canvas| is nullptr, nothing will happen when calling Draw().
- void SetCanvas(GlCanvas* canvas);
+ void SetCanvas(GlCanvas* canvas) override;
// Draws the desktop on the canvas.
- void Draw();
+ void Draw() override;
private:
struct GlDesktopTextureContainer;

Powered by Google App Engine
This is Rietveld 408576698