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

Issue 2571263002: cc: Remove map lookup from RenderSurfaceImpl::EffectTreeIndex (Closed)

Created:
4 years ago by ajuma
Modified:
3 years, 11 months ago
Reviewers:
jaydasika
CC:
chromium-reviews, cc-bugs_chromium.org, weiliangc
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove map lookup from RenderSurfaceImpl::EffectTreeIndex This relands http://crrev.com/2540333002 with a fix for the crashes that caused that CL to get reverted. The previous CL set the effect tree index on surfaces during the surface update step (when EffectNode::render_surface gets updated). This is not sufficient, however, since the surface update step will be skipped when we can't draw, even though property trees can still change and surfaces can still get destroyed (because of their owning layer getting destroyed). This CL also updates the effect tree index on surfaces when new property trees are set (that is, at commit time and at activation time). BUG=670074 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2571263002 Cr-Commit-Position: refs/heads/master@{#441747} Committed: https://chromium.googlesource.com/chromium/src/+/8cd27b3cd1d1fe047bcf2c169106ccac7261d4ed

Patch Set 1 : Original CL, rebased #

Patch Set 2 : Fix crash + add test #

Patch Set 3 : Rebase #

Patch Set 4 : Fix post-rebase unit test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -14 lines) Patch
M cc/layers/render_surface_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 1 2 3 2 chunks +24 lines, -8 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_in_process.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 2 chunks +74 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (12 generated)
ajuma
PS #1 is the original CL that got reverted, PS #2 has the new changes.
3 years, 11 months ago (2017-01-05 19:39:19 UTC) #9
jaydasika
lgtm
3 years, 11 months ago (2017-01-05 20:44:33 UTC) #11
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/2571263002/60001
3 years, 11 months ago (2017-01-05 20:57:07 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 21:02:23 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/8cd27b3cd1d1fe047bcf2c169106...

Powered by Google App Engine
This is Rietveld 408576698