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

Unified Diff: cc/trees/layer_tree_host.h

Issue 400773002: cc: Parameterize the main thread task runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « 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 d53140e06a862375e56cc4a6e368c3eef5fbd3bd..71e1e531bd813e5853c756588adb3eea6d80c5ef 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -86,18 +86,22 @@ class CC_EXPORT LayerTreeHost {
LayerTreeHostClient* client,
SharedBitmapManager* manager,
const LayerTreeSettings& settings,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
static scoped_ptr<LayerTreeHost> CreateSingleThreaded(
LayerTreeHostClient* client,
LayerTreeHostSingleThreadClient* single_thread_client,
SharedBitmapManager* manager,
- const LayerTreeSettings& settings);
+ const LayerTreeSettings& settings,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
virtual ~LayerTreeHost();
void SetLayerTreeHostClientReady();
// LayerTreeHost interface to Proxy.
+ void ScheduleBeginMainFrameOnImplThread(
danakj 2014/07/17 18:00:24 This looks like it shouldn't be here?
Sami 2014/07/17 18:48:57 Oops, missed that while breaking this down. Thanks
+ const base::Closure& begin_main_frame_task);
void WillBeginMainFrame() {
client_->WillBeginMainFrame(source_frame_number_);
}
@@ -302,9 +306,11 @@ class CC_EXPORT LayerTreeHost {
SharedBitmapManager* manager,
const LayerTreeSettings& settings);
void InitializeThreaded(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
void InitializeSingleThreaded(
- LayerTreeHostSingleThreadClient* single_thread_client);
+ LayerTreeHostSingleThreadClient* single_thread_client,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
void InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing);
void SetOutputSurfaceLostForTesting(bool is_lost) {
output_surface_lost_ = is_lost;
« 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