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

Issue 1868003002: cc: Move RenderTarget Information to Effect Tree (Closed)

Created:
4 years, 8 months ago by weiliangc
Modified:
4 years, 8 months ago
Reviewers:
ajuma, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, jaydasika, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Move RenderTarget Information to Effect Tree Move render target related information to effect tree and clean up render target logic. This CL's major change includes: 1. Effect node's target_id is updated every frame 2. Effect node's target_id always points to closest ancestor that has a render surface, and never points to itself. 3. LayerImpl's render target returns the RenderSurfaceImpl that the layer contributes to. It is possible the LayerImpl owns that RenderSurfaceImpl. 4. RenderSurfaceImpl's render target returns the RenderSurfaceImpl that the render surface contributes to. Resulting from this CL, effect tree can be walked upwards using target_id, and render target information can be queried from effect tree. R=ajuma, enne BUG=504464, 594675 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/189c1a15ccd8cb50b9c1c21f786120b1e8ad1077 Cr-Commit-Position: refs/heads/master@{#386399}

Patch Set 1 #

Total comments: 3

Patch Set 2 : address review comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -204 lines) Patch
M cc/layers/draw_properties.h View 2 chunks +1 line, -6 lines 0 comments Download
M cc/layers/draw_properties.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 2 chunks +5 lines, -11 lines 0 comments Download
M cc/layers/layer_impl.cc View 3 chunks +26 lines, -6 lines 0 comments Download
M cc/layers/nine_patch_layer_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/render_surface_impl.h View 2 chunks +11 lines, -1 line 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 chunks +54 lines, -3 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M cc/layers/solid_color_layer_impl_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/layers/ui_resource_layer_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 5 chunks +25 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 7 chunks +14 lines, -78 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 9 chunks +35 lines, -58 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_occlusion.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/occlusion_tracker.h View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 6 chunks +19 lines, -16 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M cc/trees/property_tree.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (5 generated)
weiliangc
Help effect tree to find render target. Please take a look.
4 years, 8 months ago (2016-04-07 20:58:58 UTC) #3
ajuma
lgtm https://codereview.chromium.org/1868003002/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/1868003002/diff/1/cc/layers/render_surface_impl.cc#newcode177 cc/layers/render_surface_impl.cc:177: accumulated_content_rect_.Intersect(clip_rect()); This clipping seems like something that can ...
4 years, 8 months ago (2016-04-07 21:59:55 UTC) #4
ajuma
https://codereview.chromium.org/1868003002/diff/1/cc/layers/render_surface_impl.cc File cc/layers/render_surface_impl.cc (right): https://codereview.chromium.org/1868003002/diff/1/cc/layers/render_surface_impl.cc#newcode177 cc/layers/render_surface_impl.cc:177: accumulated_content_rect_.Intersect(clip_rect()); On 2016/04/07 21:59:55, ajuma wrote: > This clipping ...
4 years, 8 months ago (2016-04-07 23:57:37 UTC) #5
weiliangc
Removed the intersection of clip_rect while accumulating content rect from render surface. Added early out ...
4 years, 8 months ago (2016-04-09 00:01:04 UTC) #6
ajuma
Thanks, still lgtm.
4 years, 8 months ago (2016-04-11 13:12:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1868003002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1868003002/40001
4 years, 8 months ago (2016-04-11 15:11:01 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-11 16:16:34 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 16:18:17 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/189c1a15ccd8cb50b9c1c21f786120b1e8ad1077
Cr-Commit-Position: refs/heads/master@{#386399}

Powered by Google App Engine
This is Rietveld 408576698