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

Issue 2882403002: Remove redundant update of viewport layer types (Closed)

Created:
3 years, 7 months ago by pdr.
Modified:
3 years, 7 months ago
Reviewers:
chrishtr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove redundant update of viewport layer types LayerImpl's viewport layer types depend on (1) LayerTreeImpl's viewport layers and (2) LayerImpl's scroll_clip_layer. [1] added code to update the layer type when either (1) or (2) change. With the refactoring of [2], LayerImpl's properties such as scroll_clip_layer are always set before LayerTreeImpl's viewport layers are updated. This patch removes an unnecessary call to LayerTreeImpl::UpdateViewportLayerTypes from LayerImpl::SetScrollClipLayer and proves it is safe with a new DCHECK. Add a cache of LayerImpl's viewport layer type [1] https://chromium.googlesource.com/chromium/src/+/6280cc1d5a1dccfbe23ca438eed862e245f18614 Harmonize LayerTreeHost/LayerTreeHostImpl synchronization steps [2] https://chromium.googlesource.com/chromium/src/+/80ecb98035a6654fff02e86877be39f51fcc3d54 BUG=693740 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2882403002 Cr-Commit-Position: refs/heads/master@{#472150} Committed: https://chromium.googlesource.com/chromium/src/+/b4d70c2b28f321a94a52615c95692b6da8738783

Patch Set 1 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -19 lines) Patch
M cc/layers/layer_impl.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 2 chunks +6 lines, -13 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
pdr.
3 years, 7 months ago (2017-05-16 14:33:14 UTC) #6
enne (OOO)
!!!!!!!!!!!!!!! lgtm
3 years, 7 months ago (2017-05-16 17:22:08 UTC) #7
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/2882403002/1
3 years, 7 months ago (2017-05-16 17:28:38 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 17:48:38 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b4d70c2b28f321a94a52615c9569...

Powered by Google App Engine
This is Rietveld 408576698