summaryrefslogtreecommitdiffstats
path: root/mojo/examples/compositor_app
diff options
context:
space:
mode:
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 15:51:27 +0000
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 15:51:27 +0000
commit27e6a21ba3ba5db38dc35548188445884ad004be (patch)
treef99f8b6317a1f534e98d774c54af087a79fab935 /mojo/examples/compositor_app
parent849a746b63a4bedb06c2ec4b591215e184c30b67 (diff)
downloadchromium_src-27e6a21ba3ba5db38dc35548188445884ad004be.zip
chromium_src-27e6a21ba3ba5db38dc35548188445884ad004be.tar.gz
chromium_src-27e6a21ba3ba5db38dc35548188445884ad004be.tar.bz2
cc: Parameterize the main thread task runner
Make it possible for clients pass in a custom task runner to be used for posting compositor related work onto the main thread. This will be used for prioritizing compositor tasks by the Blink scheduler. Covered by existing tests. BUG=391005 Review URL: https://codereview.chromium.org/400773002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284103 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/compositor_app')
-rw-r--r--mojo/examples/compositor_app/compositor_host.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/mojo/examples/compositor_app/compositor_host.cc b/mojo/examples/compositor_app/compositor_host.cc
index 3160145..1c47cdb 100644
--- a/mojo/examples/compositor_app/compositor_host.cc
+++ b/mojo/examples/compositor_app/compositor_host.cc
@@ -23,7 +23,11 @@ CompositorHost::CompositorHost(ScopedMessagePipeHandle command_buffer_handle)
cc::LayerTreeSettings settings;
tree_ = cc::LayerTreeHost::CreateThreaded(
- this, NULL, settings, compositor_thread_.message_loop_proxy());
+ this,
+ NULL,
+ settings,
+ base::MessageLoopProxy::current(),
+ compositor_thread_.message_loop_proxy());
SetupScene();
}