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

Issue 638653003: Make ui::Compositor use ui::Scheduler (Closed)

Created:
6 years, 2 months ago by weiliangc
Modified:
5 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, dcheng, enne (OOO), jbauman+watch_chromium.org, kalyank, piman, piman+watch_chromium.org, sievers+watch_chromium.org, tfarina, Ian Vollick, brianderson, mithro
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ui::Compositor use ui::Scheduler Taken from enne's CL 535733002 and rebased. It has been taken out of CL 134623005. BUG=329552 Committed: https://crrev.com/36b7fc7f8b05ea627873e58a162c1c26784e472d Cr-Commit-Position: refs/heads/master@{#298779} Committed: https://crrev.com/b821b71ff0166e250ae4b30b56c1b7b6d3bd5db6 Cr-Commit-Position: refs/heads/master@{#306954} Committed: https://crrev.com/5efa0a1c4381c7e68e22285a99d601431060e5c3 Cr-Commit-Position: refs/heads/master@{#313766}

Patch Set 1 #

Patch Set 2 : no need to increase number of loops in layer_unittest #

Patch Set 3 : rebase #

Patch Set 4 : mv DCHECK from DidCommit to BeginFrame #

Total comments: 2

Patch Set 5 : rebase #

Patch Set 6 : synchronous commit complete and cl format for ui::compositor #

Patch Set 7 : rebase #

Patch Set 8 : do not set disable_hi_res_timer_tasks_on_battery when testing #

Total comments: 3

Patch Set 9 : rebase to hope stop compile failure on trybots #

Patch Set 10 : address review comments to add helpful temp variable #

Total comments: 2

Patch Set 11 : address review comments #

Patch Set 12 : rebase with enable mode patch since that would probably go in before this #

Total comments: 1

Patch Set 13 : explicit #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -183 lines) Patch
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/compositor/test/no_transport_image_transport_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M ui/aura/bench/bench_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +0 lines, -22 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +23 lines, -93 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +19 lines, -11 lines 0 comments Download
M ui/compositor/test/context_factories_for_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/test/draw_waiter_for_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -3 lines 0 comments Download
M ui/compositor/test/draw_waiter_for_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -8 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -3 lines 0 comments Download
M ui/compositor/test/test_compositor_host_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -7 lines 0 comments Download
M ui/compositor/test/test_compositor_host_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -7 lines 0 comments Download
M ui/snapshot/snapshot_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/examples/examples_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +40 lines, -20 lines 0 comments Download

Messages

Total messages: 41 (8 generated)
weiliangc
This is from enne's patch with same name, which is taken out of CL "Make ...
6 years, 2 months ago (2014-10-08 17:50:03 UTC) #2
weiliangc
Add sky@ for review everything else other than ui/compositor.
6 years, 2 months ago (2014-10-08 17:54:06 UTC) #4
danakj
LGTM
6 years, 2 months ago (2014-10-08 17:58:10 UTC) #5
sky
LGTM
6 years, 2 months ago (2014-10-08 19:04:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638653003/20001
6 years, 2 months ago (2014-10-08 19:07:45 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as eec8e4e3e3f50d3a0094dc82bc9638ee7c0ce2cf
6 years, 2 months ago (2014-10-09 04:44:29 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/36b7fc7f8b05ea627873e58a162c1c26784e472d Cr-Commit-Position: refs/heads/master@{#298779}
6 years, 2 months ago (2014-10-09 04:45:50 UTC) #10
maniscalco
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/643693002/ by maniscalco@chromium.org. ...
6 years, 2 months ago (2014-10-09 16:25:11 UTC) #11
weiliangc
Investigated crash causing revert: Compositor lock was grabbed after finishing BeginFrame and before DoCommit, which ...
6 years, 2 months ago (2014-10-14 20:41:48 UTC) #12
danakj
Yep that LGTM. There were a few other bugs also around this. Where are we ...
6 years, 2 months ago (2014-10-14 20:43:01 UTC) #13
weiliangc
On 2014/10/14 at 20:43:01, danakj wrote: > Yep that LGTM. There were a few other ...
6 years, 2 months ago (2014-10-14 20:48:18 UTC) #14
piman
https://codereview.chromium.org/638653003/diff/180001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/638653003/diff/180001/ui/compositor/compositor.cc#newcode306 ui/compositor/compositor.cc:306: // through it anyway. I think that's a problem... ...
6 years, 2 months ago (2014-10-14 20:50:11 UTC) #16
danakj
https://codereview.chromium.org/638653003/diff/180001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/638653003/diff/180001/ui/compositor/compositor.cc#newcode306 ui/compositor/compositor.cc:306: // through it anyway. On 2014/10/14 20:50:11, piman (Very ...
6 years, 2 months ago (2014-10-14 20:52:49 UTC) #17
weiliangc
- Rebased on top of the main_thread_low_latency mode. - CommitComplete is called synchronously. ^ These ...
6 years ago (2014-12-04 18:33:02 UTC) #18
weiliangc
On 2014/12/04 at 18:33:02, weiliangc wrote: > - Rebased on top of the main_thread_low_latency mode. ...
6 years ago (2014-12-04 20:34:33 UTC) #19
danakj
https://codereview.chromium.org/638653003/diff/260001/ui/aura/bench/bench_main.cc File ui/aura/bench/bench_main.cc (right): https://codereview.chromium.org/638653003/diff/260001/ui/aura/bench/bench_main.cc#newcode301 ui/aura/bench/bench_main.cc:301: new ui::InProcessContextFactory(false)); give boolean literals a name with a ...
6 years ago (2014-12-04 21:05:03 UTC) #20
weiliangc
https://codereview.chromium.org/638653003/diff/260001/content/browser/compositor/test/no_transport_image_transport_factory.cc File content/browser/compositor/test/no_transport_image_transport_factory.cc (right): https://codereview.chromium.org/638653003/diff/260001/content/browser/compositor/test/no_transport_image_transport_factory.cc#newcode17 content/browser/compositor/test/no_transport_image_transport_factory.cc:17: : context_factory_(new ui::InProcessContextFactory(true)), Is there a better way to ...
6 years ago (2014-12-04 21:06:49 UTC) #21
weiliangc
6 years ago (2014-12-04 21:06:50 UTC) #22
danakj
https://codereview.chromium.org/638653003/diff/260001/content/browser/compositor/test/no_transport_image_transport_factory.cc File content/browser/compositor/test/no_transport_image_transport_factory.cc (right): https://codereview.chromium.org/638653003/diff/260001/content/browser/compositor/test/no_transport_image_transport_factory.cc#newcode17 content/browser/compositor/test/no_transport_image_transport_factory.cc:17: : context_factory_(new ui::InProcessContextFactory(true)), On 2014/12/04 21:06:49, weiliangc wrote: > ...
6 years ago (2014-12-04 21:07:54 UTC) #23
weiliangc
On 2014/12/04 at 21:07:54, danakj wrote: > https://codereview.chromium.org/638653003/diff/260001/content/browser/compositor/test/no_transport_image_transport_factory.cc > File content/browser/compositor/test/no_transport_image_transport_factory.cc (right): > > https://codereview.chromium.org/638653003/diff/260001/content/browser/compositor/test/no_transport_image_transport_factory.cc#newcode17 ...
6 years ago (2014-12-04 21:48:55 UTC) #24
danakj
LGTM https://codereview.chromium.org/638653003/diff/300001/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/638653003/diff/300001/cc/trees/single_thread_proxy.cc#newcode431 cc/trees/single_thread_proxy.cc:431: // commit_blocking_task_runner would make sure all tasks posted ...
6 years ago (2014-12-04 22:22:10 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638653003/320001
6 years ago (2014-12-04 22:47:37 UTC) #27
piman
https://codereview.chromium.org/638653003/diff/340001/ui/compositor/test/in_process_context_factory.h File ui/compositor/test/in_process_context_factory.h (right): https://codereview.chromium.org/638653003/diff/340001/ui/compositor/test/in_process_context_factory.h#newcode26 ui/compositor/test/in_process_context_factory.h:26: InProcessContextFactory(bool context_factory_for_test); nit: explicit
6 years ago (2014-12-04 23:05:24 UTC) #29
piman
lgtm
6 years ago (2014-12-04 23:07:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638653003/360001
6 years ago (2014-12-05 01:13:03 UTC) #32
commit-bot: I haz the power
Committed patchset #13 (id:360001)
6 years ago (2014-12-05 01:54:24 UTC) #33
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/b821b71ff0166e250ae4b30b56c1b7b6d3bd5db6 Cr-Commit-Position: refs/heads/master@{#306954}
6 years ago (2014-12-05 01:55:12 UTC) #34
Ilya Sherman
A revert of this CL (patchset #13 id:360001) has been created in https://codereview.chromium.org/784653002/ by isherman@chromium.org. ...
6 years ago (2014-12-06 01:00:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/638653003/380001
5 years, 10 months ago (2015-01-29 19:30:58 UTC) #37
commit-bot: I haz the power
Committed patchset #14 (id:380001)
5 years, 10 months ago (2015-01-29 19:57:22 UTC) #38
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/5efa0a1c4381c7e68e22285a99d601431060e5c3 Cr-Commit-Position: refs/heads/master@{#313766}
5 years, 10 months ago (2015-01-29 19:58:45 UTC) #39
please use gerrit instead
Hi, This appears to have broken browser_trests on xp. Please look into this and let ...
5 years, 10 months ago (2015-01-30 01:13:51 UTC) #40
weiliangc
5 years, 10 months ago (2015-01-30 02:02:44 UTC) #41
Message was sent while issue was closed.
On 2015/01/30 01:13:51, Rouslan Solomakhin wrote:
> Hi,
> 
> This appears to have broken browser_trests on xp. Please look into this and
let
> sheriffs know whether the issue is due to this patch or not. If browser_tests
> continue to fail, this patch may be one of the first on the chopping block for
a
> revert. Thank you!
> 
> (view as text)
> ChromeRenderProcessHostTest.ProcessPerTab (run #1):
> [ RUN      ] ChromeRenderProcessHostTest.ProcessPerTab
> [3580:3484:0129/144524:WARNING:data_reduction_proxy_settings.cc(345)] SPDY
proxy
> OFF at startup
> [3580:3920:0129/144524:WARNING:raw_channel.cc(210)] Shutting down RawChannel
> with write buffer nonempty
> [3580:3920:0129/144524:WARNING:raw_channel.cc(210)] Shutting down RawChannel
> with write buffer nonempty
> [3580:3920:0129/144525:WARNING:raw_channel.cc(210)] Shutting down RawChannel
> with write buffer nonempty
> [3580:3920:0129/144525:WARNING:raw_channel.cc(210)] Shutting down RawChannel
> with write buffer nonempty
> [3580:3484:0129/144525:WARNING:pref_notifier_impl.cc(27)] pref observer found
at
> shutdown printing.enabled
> [3580:3484:0129/144525:WARNING:pref_notifier_impl.cc(27)] pref observer found
at
> shutdown plugins.allow_outdated
> [3580:3484:0129/144525:WARNING:pref_notifier_impl.cc(27)] pref observer found
at
> shutdown plugins.always_authorize
> Backtrace:
> 	(No symbol) [0xE3DA2000]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x02D8E628+33417800]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x029C9A34+29466196]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x02D8E651+33417841]
> 	ovly_debug_event [0x00CF6E6A+4596442]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x032B37C3+38812643]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x032B384B+38812779]
> 	ovly_debug_event [0x00D0B556+4680134]
> 	ovly_debug_event [0x00D0BD1A+4682122]
> 	ovly_debug_event [0x00D0BE2B+4682395]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x0343A758+40414072]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x017F1E13+10756659]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01A18BCE+13012974]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01A05F64+12936068]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01A05F89+12936105]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01A07862+12942466]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00E5012A+656714]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00E504BB+657627]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x017872F7+10319639]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x017CF0B3+10613971]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x03B4BED4+47825652]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x03A3F2DE+46724862]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x03A3F196+46724534]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x03A3E4F3+46721299]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x030F0445+36964453]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00E0BD2B+377163]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x010981F4+3048980]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01098369+3049353]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01098939+3050841]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x01098686+3050150]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00E938FD+933149]
> 	ovly_debug_event [0x00A726B8+1956648]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x030E93B8+36935640]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00E39CC6+565478]
> 	ovly_debug_event [0x00A72720+1956752]
> 	RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x031C90DA+37852410]
> 	RegisterWaitForInputIdle [0x7C816037+73]
> 
> https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20(1)

CL 781163003 is depended on this.

Powered by Google App Engine
This is Rietveld 408576698