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

Unified Diff: cc/trees/layer_tree_host_client.h

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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
Index: cc/trees/layer_tree_host_client.h
diff --git a/cc/trees/layer_tree_host_client.h b/cc/trees/layer_tree_host_client.h
index 74dcbc0cff24631873737c4cdc42341e1051f4ed..09752e90f7379e0b276e7cc70472d0193bcf4cb0 100644
--- a/cc/trees/layer_tree_host_client.h
+++ b/cc/trees/layer_tree_host_client.h
@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
+#include "cc/base/cc_export.h"
namespace gfx {
class Vector2d;
@@ -17,8 +18,9 @@ namespace cc {
class ContextProvider;
class InputHandlerClient;
class OutputSurface;
+struct BeginFrameArgs;
-class LayerTreeHostClient {
+class CC_EXPORT LayerTreeHostClient {
public:
virtual void WillBeginMainFrame(int frame_id) = 0;
// Marks finishing compositing-related tasks on the main thread. In threaded
@@ -32,11 +34,14 @@ class LayerTreeHostClient {
// create an OutputSurface that is guaranteed to initialize correctly.
virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
virtual void DidInitializeOutputSurface() = 0;
+ virtual void DidLoseOutputSurface() = 0;
virtual void WillCommit() = 0;
virtual void DidCommit() = 0;
virtual void DidCommitAndDrawFrame() = 0;
virtual void DidCompleteSwapBuffers() = 0;
+ virtual void SendBeginFrameToChildren(const BeginFrameArgs& args);
+
// Requests that the client insert a rate limiting token in the shared main
// thread context's command stream that will block if the context gets too far
// ahead of the compositor's command stream. Only needed if the tree contains

Powered by Google App Engine
This is Rietveld 408576698