summaryrefslogtreecommitdiffstats
path: root/cc/BUILD.gn
diff options
context:
space:
mode:
authorkhushalsagar <khushalsagar@chromium.org>2015-12-07 18:19:01 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-08 02:20:04 +0000
commit19458bd9c403dddf7bfcb08ba106327792fa3a8a (patch)
tree6fa87e204e79a27a09a1c19b463538e40ed6fe6f /cc/BUILD.gn
parentf48e75b866dfd2d45612ec298ebaf62ea9593120 (diff)
downloadchromium_src-19458bd9c403dddf7bfcb08ba106327792fa3a8a.zip
chromium_src-19458bd9c403dddf7bfcb08ba106327792fa3a8a.tar.gz
chromium_src-19458bd9c403dddf7bfcb08ba106327792fa3a8a.tar.bz2
cc: Introduce CompositorMode enum.
The compositor can currently be run in single threaded or threaded mode. The LayerTreeHost needs to be aware of the mode it is running in for 2 reasons: 1) To safely cast Proxy to SingleThreadProxy to make calls which are supported only in single threaded mode. 2) To make decisions which require excluding browser compositors which run only in single threaded mode. The LayerTreeHost checks if it has the impl task runner to know the mode of operation. Using the enum will make the purpose of this check explicit at the call sites and allow the addition of the remote mode to the compositor which will be run in the renderer but will not have an impl task runner since all impl thread operations will be run on the client compositor. BUG=550687 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1464313007 Cr-Commit-Position: refs/heads/master@{#363708}
Diffstat (limited to 'cc/BUILD.gn')
-rw-r--r--cc/BUILD.gn1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index 88e3524..df0083a 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -471,6 +471,7 @@ component("cc") {
"trees/blocking_task_runner.h",
"trees/channel_impl.h",
"trees/channel_main.h",
+ "trees/compositor_mode.h",
"trees/damage_tracker.cc",
"trees/damage_tracker.h",
"trees/draw_property_utils.cc",