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

Unified Diff: remoting/client/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/gl_desktop.h
diff --git a/remoting/client/gl_desktop.h b/remoting/client/gl_desktop.h
index 2c98cd429d27b26181f0e55371c16a736daf3861..5f303939c1f64b7e56f515029f94e05990b6d43c 100644
--- a/remoting/client/gl_desktop.h
+++ b/remoting/client/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 {
@@ -21,10 +22,10 @@ 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 +33,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