Descriptioncc: 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 #
Messages
Total messages: 16 (12 generated)
|