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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1419283002: cc: Split Proxy and TaskRunnerProvider for the LayerTreeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 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/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index b6fb6fc79fc2df31bcbd2e264eb534031501021e..b3a77400129810f7e49c31ebc202c2fface7f96d 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -249,6 +249,9 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
Proxy* proxy() const { return proxy_.get(); }
+ TaskRunnerProvider* task_runner_provider() const {
+ return task_runner_provider_.get();
+ }
AnimationRegistrar* animation_registrar() const {
return animation_registrar_.get();
}
@@ -366,7 +369,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
LayerTreeHostSingleThreadClient* single_thread_client,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_ptr<BeginFrameSource> external_begin_frame_source);
- void InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing);
+ void InitializeForTesting(scoped_ptr<TaskRunnerProvider> task_runner_provider,
+ scoped_ptr<Proxy> proxy_for_testing);
void SetOutputSurfaceLostForTesting(bool is_lost) {
output_surface_lost_ = is_lost;
}
@@ -419,6 +423,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
LayerTreeHostClient* client_;
scoped_ptr<Proxy> proxy_;
+ scoped_ptr<TaskRunnerProvider> task_runner_provider_;
int source_frame_number_;
int meta_information_sequence_number_;
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698