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

Unified Diff: remoting/client/gl_drawable.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_drawable.h
diff --git a/remoting/client/gl_drawable.h b/remoting/client/gl_drawable.h
new file mode 100644
index 0000000000000000000000000000000000000000..b097a5622ba06229e06c62a7dbcc9dfc36078e31
--- /dev/null
+++ b/remoting/client/gl_drawable.h
@@ -0,0 +1,38 @@
+// 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_DRAWABLE_H_
Sergey Ulanov 2016/12/19 23:50:21 remove _OPENGL_ part
+#define REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include <list>
+#include <memory>
Sergey Ulanov 2016/12/19 23:50:21 nit: Don't need any of the includes above.
+
+#include "base/macros.h"
+
+namespace remoting {
+
+class GlCanvas;
+
+class GlDrawable {
+ public:
+ GlDrawable() {}
+ virtual ~GlDrawable() {}
+
+ // Sets the canvas on which the object will be drawn.
+ // If |canvas| is nullptr, nothing will happen when calling Draw().
+ virtual void SetCanvas(GlCanvas* canvas) = 0;
+
+ // Draws the object on the canvas.
+ virtual void Draw() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GlDrawable);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_

Powered by Google App Engine
This is Rietveld 408576698