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

Unified Diff: remoting/client/gl_cursor.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_cursor.h
diff --git a/remoting/client/gl_cursor.h b/remoting/client/gl_cursor.h
index 365b2c23d7bf4242d78cdf295243c0c5fed58067..8b6d408eea25763026baa81f4b4588f97f4a8419 100644
--- a/remoting/client/gl_cursor.h
+++ b/remoting/client/gl_cursor.h
@@ -10,6 +10,7 @@
#include <memory>
#include "base/macros.h"
+#include "remoting/client/gl_drawable.h"
namespace remoting {
@@ -21,10 +22,10 @@ class GlCanvas;
class GlRenderLayer;
// This class draws the cursor on the canvas.
-class GlCursor {
+class GlCursor : public GlDrawable {
public:
GlCursor();
- ~GlCursor();
+ ~GlCursor() override;
void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape);
@@ -38,9 +39,9 @@ class GlCursor {
// Sets the canvas on which the cursor will be drawn. Resumes the current
// state of the cursor to the context of the new canvas.
// If |canvas| is nullptr, nothing will happen when calling Draw().
- void SetCanvas(GlCanvas* canvas);
+ void SetCanvas(GlCanvas* canvas) override;
- void Draw();
+ void Draw() override;
private:
void SetCurrentCursorShape(bool size_changed);

Powered by Google App Engine
This is Rietveld 408576698