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

Unified Diff: cc/trees/layer_tree_host_single_thread_client.h

Issue 61823008: Introduce separate client and init path for single-threaded cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « cc/trees/layer_tree_host_client.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_single_thread_client.h
diff --git a/cc/trees/layer_tree_host_single_thread_client.h b/cc/trees/layer_tree_host_single_thread_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d4be9529a1a1dfa582fedcafafe43d405ac2b5b
--- /dev/null
+++ b/cc/trees/layer_tree_host_single_thread_client.h
@@ -0,0 +1,29 @@
+// Copyright 2013 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 CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_
+#define CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_
+
+namespace cc {
+
+class LayerTreeHostSingleThreadClient {
+ public:
+ // Request that the client schedule a composite.
+ virtual void ScheduleComposite() = 0;
+
+ // Called whenever the compositor posts a SwapBuffers (either full or
+ // partial). After DidPostSwapBuffers(), exactly one of
+ // LayerTreeHostClient::DidCompleteSwapBuffers() or DidAbortSwapBuffers() will
+ // be called, thus these functions can be used to keep track of pending swap
+ // buffers calls for rate limiting.
+ virtual void DidPostSwapBuffers() = 0;
+ virtual void DidAbortSwapBuffers() = 0;
+
+ protected:
+ virtual ~LayerTreeHostSingleThreadClient() {}
+};
+
+} // namespace cc
+
+#endif // CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_
« no previous file with comments | « cc/trees/layer_tree_host_client.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698