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; |