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

Issue 1696233002: Make render pipeline throttling opt-in (Closed)

Created:
4 years, 10 months ago by Sami
Modified:
4 years, 10 months ago
Reviewers:
tkent, esprehn, hayato, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make render pipeline throttling opt-in Previously render pipeline throttling was allowed by default, and subsystems which did not want throttling to happen needed to use DocumentLifecycle::PreventThrottlingScope to turn it off. This was error-prone and dangerous since it meant callers might see out-of-date layout and style information unless they knew to opt out. This patch flips the default to be that throttling is disallowed unless DocumentLifecycle::AllowThrottlingScope is used to turn it on. We now explicitly enable throttling for animations, lifecycle updates and hit testing. BUG=487937 Committed: https://crrev.com/324897d72015abb00a5f7c682fbdc2e5d82619b0 Cr-Commit-Position: refs/heads/master@{#376024}

Patch Set 1 #

Patch Set 2 : Adjust early-outs. #

Patch Set 3 : Fix failing remote frame test. #

Patch Set 4 : Windows build fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -25 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 5 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentLifecycle.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp View 1 2 4 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Sami
4 years, 10 months ago (2016-02-15 19:32:01 UTC) #3
tkent
This looks very reasonable.
4 years, 10 months ago (2016-02-15 23:31:36 UTC) #4
hayato
Thank you for working on this change! lgtm
4 years, 10 months ago (2016-02-16 02:27:07 UTC) #5
Sami
Thanks! Elliott and/or Ojan, WDYT?
4 years, 10 months ago (2016-02-17 14:36:14 UTC) #6
esprehn
lgtm
4 years, 10 months ago (2016-02-17 19:01:05 UTC) #7
esprehn
lgtm, great! I think over time we'll find new places where we can add AllowThrottlingScope, ...
4 years, 10 months ago (2016-02-17 19:01:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1696233002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1696233002/60001
4 years, 10 months ago (2016-02-17 19:04:11 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-17 23:19:29 UTC) #13
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/324897d72015abb00a5f7c682fbdc2e5d82619b0 Cr-Commit-Position: refs/heads/master@{#376024}
4 years, 10 months ago (2016-02-17 23:20:36 UTC) #15
Ɓukasz Anforowicz
4 years, 10 months ago (2016-02-18 18:16:50 UTC) #16
Message was sent while issue was closed.
On 2016/02/17 23:20:36, commit-bot: I haz the power wrote:
> Patchset 4 (id:??) landed as
> https://crrev.com/324897d72015abb00a5f7c682fbdc2e5d82619b0
> Cr-Commit-Position: refs/heads/master@{#376024}

This made site-isolation FYI bot red - please see crbug.com/587909.

Powered by Google App Engine
This is Rietveld 408576698