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

Side by Side Diff: remoting/client/display/gl_renderer_delegate.h

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Updating the include define for the new path. Created 3 years, 11 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_GL_RENDERER_DELEGATE_H_ 5 #ifndef REMOTING_CLIENT_DISPLAY_GL_RENDERER_DELEGATE_H_
6 #define REMOTING_CLIENT_GL_RENDERER_DELEGATE_H_ 6 #define REMOTING_CLIENT_DISPLAY_GL_RENDERER_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 // Interface to interact with GlRenderer. All functions will be called on the 12 // Interface to interact with GlRenderer. All functions will be called on the
13 // display thread. 13 // display thread.
14 class GlRendererDelegate { 14 class GlRendererDelegate {
15 public: 15 public:
16 // Called when GlRenderer is about to render a frame on current OpenGL 16 // Called when GlRenderer is about to render a frame on current OpenGL
17 // surface. Return true if GlRenderer can continue the render process. 17 // surface. Return true if GlRenderer can continue the render process.
18 virtual bool CanRenderFrame() = 0; 18 virtual bool CanRenderFrame() = 0;
19 19
20 // Called after GlRenderer has successfully rendered a frame on current OpenGL 20 // Called after GlRenderer has successfully rendered a frame on current OpenGL
21 // surface. 21 // surface.
22 virtual void OnFrameRendered() = 0; 22 virtual void OnFrameRendered() = 0;
23 23
24 // Called when the size of the canvas (= size of desktop frame) is changed. 24 // Called when the size of the canvas (= size of desktop frame) is changed.
25 virtual void OnSizeChanged(int width, int height) = 0; 25 virtual void OnSizeChanged(int width, int height) = 0;
26 26
27 protected: 27 protected:
28 virtual ~GlRendererDelegate() {} 28 virtual ~GlRendererDelegate() {}
29 }; 29 };
30 30
31 } // namespace remoting 31 } // namespace remoting
32 #endif // REMOTING_CLIENT_GL_RENDERER_DELEGATE_H_ 32 #endif // REMOTING_CLIENT_DISPLAY_GL_RENDERER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698