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

Unified Diff: cc/trees/single_thread_proxy.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_unittest_scroll.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.h
diff --git a/cc/trees/single_thread_proxy.h b/cc/trees/single_thread_proxy.h
index e5b706f07e643afc365d732d3f846c4b54ec6aff..7fd822ed42d90456598ec9c3c9d1117695b11d8f 100644
--- a/cc/trees/single_thread_proxy.h
+++ b/cc/trees/single_thread_proxy.h
@@ -17,10 +17,13 @@ namespace cc {
class ContextProvider;
class LayerTreeHost;
+class LayerTreeHostSingleThreadClient;
class SingleThreadProxy : public Proxy, LayerTreeHostImplClient {
public:
- static scoped_ptr<Proxy> Create(LayerTreeHost* layer_tree_host);
+ static scoped_ptr<Proxy> Create(
+ LayerTreeHost* layer_tree_host,
+ LayerTreeHostSingleThreadClient* client);
virtual ~SingleThreadProxy();
// Proxy implementation
@@ -79,7 +82,8 @@ class SingleThreadProxy : public Proxy, LayerTreeHostImplClient {
void CompositeImmediately(base::TimeTicks frame_begin_time);
private:
- explicit SingleThreadProxy(LayerTreeHost* layer_tree_host);
+ SingleThreadProxy(LayerTreeHost* layer_tree_host,
+ LayerTreeHostSingleThreadClient* client);
void OnOutputSurfaceInitializeAttempted(bool success);
bool CommitAndComposite(base::TimeTicks frame_begin_time,
@@ -100,6 +104,7 @@ class SingleThreadProxy : public Proxy, LayerTreeHostImplClient {
// Accessed on main thread only.
LayerTreeHost* layer_tree_host_;
+ LayerTreeHostSingleThreadClient* client_;
bool created_offscreen_context_provider_;
// Holds the first output surface passed from Start. Should not be used for
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698