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

Side by Side 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 3 years, 12 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_
Sergey Ulanov 2016/12/19 23:50:21 remove _OPENGL_ part
6 #define REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include <list>
12 #include <memory>
Sergey Ulanov 2016/12/19 23:50:21 nit: Don't need any of the includes above.
13
14 #include "base/macros.h"
15
16 namespace remoting {
17
18 class GlCanvas;
19
20 class GlDrawable {
21 public:
22 GlDrawable() {}
23 virtual ~GlDrawable() {}
24
25 // Sets the canvas on which the object will be drawn.
26 // If |canvas| is nullptr, nothing will happen when calling Draw().
27 virtual void SetCanvas(GlCanvas* canvas) = 0;
28
29 // Draws the object on the canvas.
30 virtual void Draw() = 0;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(GlDrawable);
34 };
35
36 } // namespace remoting
37
38 #endif // REMOTING_CLIENT_OPENGL_GL_DRAWABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698