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

Issue 2456113002: Separate property and context updates in PaintPropertyTreeBuilder (Closed)

Created:
4 years, 1 month ago by pdr.
Modified:
4 years, 1 month ago
Reviewers:
Xianzhu, trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate property and context updates in PaintPropertyTreeBuilder This patch is a refactoring to separate the context update from property building/updating in PaintPropertyTreeBuilder. This patch will make future changes to PaintPropertyTreeBuilder simpler, such as skipping the property update step entirely if possible. Because of the size of this change, I'd like to land this as a pure refactoring before any changes are introduced. The big idea in this patch is to refactor this pattern: void updateProperty(object, context) { if (object needs property) context.property = object.properties.update(...); else object.properties.clearProperty(); } To this new pattern: void updateProperty(object, context) { // Update property. if (object needs property) object.properties.update(...); else object.properties.clearProperty(); // Update context. if (object.properties.property()) context.property = object.properties.property(); } We may want to separate the property and context updates into two functions in a followup but it is not a straightforward refactor because some variables are shared between the two updates. BUG=645667 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/95247e236ea9fcb826b8f50e3cecdb2082833aee Cr-Commit-Position: refs/heads/master@{#428570}

Patch Set 1 #

Patch Set 2 : Cleanup names/comments, fix preserves3d bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -254 lines) Patch
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 2 chunks +26 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h View 1 1 chunk +12 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 23 chunks +252 lines, -214 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 40 (20 generated)
pdr.
4 years, 1 month ago (2016-10-27 22:37:59 UTC) #11
pdr.
Still waiting on cluster telemetry results for this patch.
4 years, 1 month ago (2016-10-27 22:39:34 UTC) #12
trchen
On 2016/10/27 22:39:34, pdr. wrote: > Still waiting on cluster telemetry results for this patch. ...
4 years, 1 month ago (2016-10-27 23:15:21 UTC) #13
pdr.
On 2016/10/27 at 23:15:21, trchen wrote: > On 2016/10/27 22:39:34, pdr. wrote: > > Still ...
4 years, 1 month ago (2016-10-28 00:02:13 UTC) #16
trchen
On 2016/10/28 00:02:13, pdr. wrote: > On 2016/10/27 at 23:15:21, trchen wrote: > > On ...
4 years, 1 month ago (2016-10-28 00:37:13 UTC) #17
pdr.
On 2016/10/28 at 00:37:13, trchen wrote: > On 2016/10/28 00:02:13, pdr. wrote: > > On ...
4 years, 1 month ago (2016-10-28 00:58:02 UTC) #18
pdr.
Btw, this seems to have had no effect on cluster telemetry.
4 years, 1 month ago (2016-10-28 18:39:49 UTC) #19
Xianzhu
lgtm
4 years, 1 month ago (2016-10-28 18:57:26 UTC) #20
pdr.
On 2016/10/28 at 18:57:26, wangxianzhu wrote: > lgtm thanks! @trchen, I'd like to make sure ...
4 years, 1 month ago (2016-10-28 20:37:27 UTC) #21
trchen
lgtm too. Just wanted to make sure you were aware of it. (clicking commit)
4 years, 1 month ago (2016-10-28 21:28:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456113002/20001
4 years, 1 month ago (2016-10-28 21:29:25 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/154608)
4 years, 1 month ago (2016-10-28 23:04:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456113002/20001
4 years, 1 month ago (2016-10-28 23:05:59 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/288857)
4 years, 1 month ago (2016-10-28 23:10:09 UTC) #30
pdr.
On 2016/10/28 at 23:10:09, commit-bot wrote: > Try jobs failed on following builders: > linux_chromium_chromeos_compile_dbg_ng ...
4 years, 1 month ago (2016-10-28 23:17:47 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456113002/20001
4 years, 1 month ago (2016-10-28 23:19:38 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/305287) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 1 month ago (2016-10-28 23:28:34 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456113002/20001
4 years, 1 month ago (2016-10-28 23:44:31 UTC) #37
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-29 00:54:15 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-10-29 01:04:37 UTC) #40
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/95247e236ea9fcb826b8f50e3cecdb2082833aee
Cr-Commit-Position: refs/heads/master@{#428570}

Powered by Google App Engine
This is Rietveld 408576698