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

Unified Diff: remoting/client/gl_renderer_delegate.h

Issue 2175963002: [Chromoting] Implement GlRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements full transpose Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/gl_renderer.cc ('k') | remoting/remoting_srcs.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/gl_renderer_delegate.h
diff --git a/remoting/client/gl_renderer_delegate.h b/remoting/client/gl_renderer_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d15a1e7a1740ff68b0ae863dd7ed7a7f3960cf1
--- /dev/null
+++ b/remoting/client/gl_renderer_delegate.h
@@ -0,0 +1,32 @@
+// 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_GL_RENDERER_DELEGATE_H_
+#define REMOTING_CLIENT_GL_RENDERER_DELEGATE_H_
+
+#include "base/macros.h"
+
+namespace remoting {
+
+// Interface to interact with GlRenderer. All functions will be called on the
+// display thread.
+class GlRendererDelegate {
+ public:
+ // Called when GlRenderer is about to render a frame on current OpenGL
+ // surface. Return true if GlRenderer can continue the render process.
+ virtual bool CanRenderFrame() = 0;
+
+ // Called after GlRenderer has successfully rendered a frame on current OpenGL
+ // surface.
+ virtual void OnFrameRendered() = 0;
+
+ // Called when the size of the canvas (= size of desktop frame) is changed.
+ virtual void OnSizeChanged(int width, int height) = 0;
+
+ protected:
+ virtual ~GlRendererDelegate() {}
+};
+
+} // namespace remoting
+#endif // REMOTING_CLIENT_GL_RENDERER_DELEGATE_H_
« no previous file with comments | « remoting/client/gl_renderer.cc ('k') | remoting/remoting_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698