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

Issue 133263004: Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate -- V2 (Closed)

Created:
6 years, 11 months ago by trchen
Modified:
6 years, 10 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, jochen+watch_chromium.org
Visibility:
Public.

Description

Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate -- V2 [2/2] Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate They basically do the same thing except that SetNeedsAnimate makes the next commit non-cancellable. However there is really no reason why SetNeedsAnimate need to enforce a commit even if no tiles are updated and no layer properties changed. SetNeedsAnimate is thus merged into SetNeedsUpdateLayers. The proper use of it is when there are potential layout/tile changes, we can use it to defer calculation until the next frame. A commit will be scheduled but can be cancelled if no updates are needed after calculation. This part of the patch changes code behavior slightly. SingleThreadProxy::SetNeedsUpdateLayers was originally implemented as RenderWidget::ScheduleComposite but now it is RenderWidget::ScheduleAnimation. ThreadProxy::SetNeedsAnimate was non-cancellable but is now cancellable. [1/2] Cleanup RenderWidget::scheduleComposite/scheduleAnimation scheduleComposite has been renamed to ScheduleComposite as it is no longer a part of WebWidgetClient API. scheduleAnimation has been renamed to ScheduleAnimation. The semantics is to schedule a composite and also (potentially) animating WebWidget. A new WebWidgetClient API scheduleUpdate has been added, to replace the old scheduleAnimation. The semantics is to notify the embedder that something in the WebWidget may change in 0 seconds. (i.e. it is allowed to be called during a redraw, in such case another redraw will be scheduled after frame delay. This part of the patch should not change code behavior. BUG=316929 R=danakj,jamesr,jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245445

Patch Set 1 #

Patch Set 2 : fix mojo build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -140 lines) Patch
M cc/test/fake_proxy.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 chunks +0 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 8 chunks +26 lines, -17 lines 0 comments Download
M cc/trees/proxy.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 6 chunks +19 lines, -27 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 3 chunks +16 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 1 6 chunks +40 lines, -29 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestProxy.h View 5 chunks +12 lines, -12 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestProxy.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/test/web_layer_tree_view_impl_for_testing.cc View 1 chunk +9 lines, -2 lines 0 comments Download
M mojo/examples/compositor_app/compositor_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
trchen
Hello reviewers, This CL is a reincarnation of previous reverted change https://codereview.chromium.org/68893031/ Most parts of ...
6 years, 11 months ago (2014-01-11 00:47:52 UTC) #1
trchen
Sorry I meant WebTestProxy not WebTestRunner.
6 years, 11 months ago (2014-01-11 00:48:54 UTC) #2
jamesr
On 2014/01/11 00:47:52, trchen wrote: > I feel a little bit uncomfortable that WebTestRunner needs ...
6 years, 11 months ago (2014-01-11 00:52:38 UTC) #3
trchen
On 2014/01/11 00:52:38, jamesr wrote: > On 2014/01/11 00:47:52, trchen wrote: > > I feel ...
6 years, 11 months ago (2014-01-11 00:55:08 UTC) #4
jamesr
content/renderer/ lgtm
6 years, 11 months ago (2014-01-11 02:52:15 UTC) #5
jochen (gone - plz use gerrit)
test runner is still a content embedder and as such can't inherit from RenderViewImpl
6 years, 11 months ago (2014-01-13 14:55:39 UTC) #6
danakj
sounds like cc/ didn't change so LGTM
6 years, 11 months ago (2014-01-13 16:43:07 UTC) #7
trchen
On 2014/01/13 14:55:39, jochen wrote: > test runner is still a content embedder and as ...
6 years, 11 months ago (2014-01-13 23:37:11 UTC) #8
jochen (gone - plz use gerrit)
On 2014/01/13 23:37:11, trchen wrote: > On 2014/01/13 14:55:39, jochen wrote: > > test runner ...
6 years, 11 months ago (2014-01-14 06:14:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/133263004/1
6 years, 11 months ago (2014-01-15 02:35:56 UTC) #10
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=140512
6 years, 11 months ago (2014-01-15 17:37:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/133263004/500002
6 years, 11 months ago (2014-01-15 22:52:08 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=246975
6 years, 11 months ago (2014-01-16 02:26:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/133263004/500002
6 years, 11 months ago (2014-01-16 02:30:50 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=247230
6 years, 11 months ago (2014-01-16 15:34:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/133263004/500002
6 years, 11 months ago (2014-01-17 02:04:48 UTC) #16
commit-bot: I haz the power
Change committed as 245445
6 years, 11 months ago (2014-01-17 06:43:22 UTC) #17
danakj
I guess this got reverted (https://codereview.chromium.org/141833002), and skyostil@ is trying to do something similar with ...
6 years, 10 months ago (2014-02-24 18:47:32 UTC) #18
trchen
6 years, 10 months ago (2014-02-24 22:00:47 UTC) #19
Message was sent while issue was closed.
On 2014/02/24 18:47:32, danakj wrote:
> I guess this got reverted (https://codereview.chromium.org/141833002), and
> skyostil@ is trying to do something similar with SetNeedsAnimate over here:
> https://codereview.chromium.org/178123003/
> 
> Are you planning to reland this?

Yes when I have spare time to trace and fix the unit test issue, but I have
other bad bugs to fix for now. I will rebase after his change.

Powered by Google App Engine
This is Rietveld 408576698