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

Issue 1464313007: cc: Introduce CompositorMode enum. (Closed)

Created:
5 years ago by Khushal
Modified:
5 years ago
CC:
chromium-reviews, cc-bugs_chromium.org, David Trainor- moved to gerrit, nyquist
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/19458bd9c403dddf7bfcb08ba106327792fa3a8a Cr-Commit-Position: refs/heads/master@{#363708}

Patch Set 1 #

Patch Set 2 : format fix #

Total comments: 8

Patch Set 3 : Rebase. #

Patch Set 4 : Addressing comments. #

Patch Set 5 : Change ui::MockLayerTreeHost #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -21 lines) Patch
M cc/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_layer_tree_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 chunks +12 lines, -5 lines 0 comments Download
A cc/trees/compositor_mode.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 7 chunks +23 lines, -9 lines 0 comments Download
M ui/android/resources/resource_manager_impl_unittest.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Khushal
5 years ago (2015-11-25 19:56:47 UTC) #2
Khushal
On 2015/11/25 19:56:47, Khushal wrote: friendly ping. :D
5 years ago (2015-12-05 00:45:16 UTC) #5
vmpstr
https://codereview.chromium.org/1464313007/diff/20001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/1464313007/diff/20001/cc/test/layer_tree_test.cc#newcode933 cc/test/layer_tree_test.cc:933: CompositorMode mode; you can just CompositorMode mode = impl_thread ...
5 years ago (2015-12-07 18:50:09 UTC) #6
Khushal
https://codereview.chromium.org/1464313007/diff/20001/cc/test/layer_tree_test.cc File cc/test/layer_tree_test.cc (right): https://codereview.chromium.org/1464313007/diff/20001/cc/test/layer_tree_test.cc#newcode933 cc/test/layer_tree_test.cc:933: CompositorMode mode; On 2015/12/07 18:50:08, vmpstr wrote: > you ...
5 years ago (2015-12-07 21:49:26 UTC) #7
vmpstr
lgtm
5 years ago (2015-12-07 22:00:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464313007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464313007/60001
5 years ago (2015-12-07 22:06:18 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/154291) android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-07 23:01:32 UTC) #12
David Trainor- moved to gerrit
lgtm
5 years ago (2015-12-07 23:25:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464313007/60002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464313007/60002
5 years ago (2015-12-07 23:26:38 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/23641) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-08 00:41:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464313007/60002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464313007/60002
5 years ago (2015-12-08 01:08:24 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:60002)
5 years ago (2015-12-08 02:19:12 UTC) #23
commit-bot: I haz the power
5 years ago (2015-12-08 02:20:19 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/19458bd9c403dddf7bfcb08ba106327792fa3a8a
Cr-Commit-Position: refs/heads/master@{#363708}

Powered by Google App Engine
This is Rietveld 408576698