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

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed)

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

Description

Move RenderSurface creation outside of CalcDrawProps BUG=386788 Committed: https://crrev.com/e83f28ca816694be553baed069f784eb286d8170 Cr-Commit-Position: refs/heads/master@{#309428}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Reworked unit test integration #

Patch Set 4 : Updated unit tests #

Total comments: 31

Patch Set 5 : Only make decisions on Main-thread #

Patch Set 6 : #

Total comments: 93

Patch Set 7 : #

Total comments: 18

Patch Set 8 : #

Patch Set 9 : #

Total comments: 20

Patch Set 10 : #

Total comments: 10

Patch Set 11 : #

Patch Set 12 : Fixed formatting #

Total comments: 8

Patch Set 13 : #

Total comments: 1

Patch Set 14 : #

Patch Set 15 : Rebaselined #

Patch Set 16 : Fix to clear our render-target if we ignore the subtree #

Patch Set 17 : #

Patch Set 18 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+681 lines, -926 lines) Patch
M cc/animation/animation_curve.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M cc/animation/keyframed_animation_curve.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/animation/keyframed_animation_curve.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M cc/animation/layer_animation_controller.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/animation/layer_animation_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M cc/animation/transform_operations.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M cc/animation/transform_operations.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 5 6 7 11 chunks +13 lines, -58 lines 0 comments Download
M cc/layers/draw_properties.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +12 lines, -7 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +19 lines, -7 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +5 lines, -18 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +20 lines, -18 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -0 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/nine_patch_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/render_surface_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/render_surface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/solid_color_layer_impl_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/tiled_layer_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/ui_resource_layer_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/animation_test_common.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/animation_test_common.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_host_common_test.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/layer_tree_host_common_test.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -15 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 4 5 6 7 13 chunks +15 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +83 lines, -35 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 chunks +123 lines, -266 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 69 chunks +78 lines, -36 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +12 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 46 chunks +153 lines, -425 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 14 chunks +21 lines, -7 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M ui/compositor/transform_animation_curve_adapter.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (13 generated)
awoloszyn
https://codereview.chromium.org/465853004/diff/20001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): https://codereview.chromium.org/465853004/diff/20001/cc/trees/layer_tree_host_impl.h#newcode188 cc/trees/layer_tree_host_impl.h:188: virtual bool IsTesting(); This is used to trigger RenderSurface ...
6 years, 4 months ago (2014-08-14 17:37:27 UTC) #1
danakj
https://codereview.chromium.org/465853004/diff/20001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): https://codereview.chromium.org/465853004/diff/20001/cc/trees/layer_tree_host_impl.h#newcode188 cc/trees/layer_tree_host_impl.h:188: virtual bool IsTesting(); On 2014/08/14 17:37:27, awoloszyn wrote: > ...
6 years, 4 months ago (2014-08-14 17:44:21 UTC) #2
awoloszyn
On 2014/08/14 17:44:21, danakj wrote: > https://codereview.chromium.org/465853004/diff/20001/cc/trees/layer_tree_host_impl.h > File cc/trees/layer_tree_host_impl.h (right): > > https://codereview.chromium.org/465853004/diff/20001/cc/trees/layer_tree_host_impl.h#newcode188 > ...
6 years, 4 months ago (2014-08-14 18:12:53 UTC) #3
danakj
Awesome thanks. If we can do some refactors as separate CLs that'd be super, once ...
6 years, 4 months ago (2014-08-14 18:19:52 UTC) #4
awoloszyn
On 2014/08/14 18:19:52, danakj wrote: > Awesome thanks. If we can do some refactors as ...
6 years, 4 months ago (2014-08-19 14:36:02 UTC) #5
danakj
On Tue, Aug 19, 2014 at 10:36 AM, <awoloszyn@chromium.org> wrote: > On 2014/08/14 18:19:52, danakj ...
6 years, 4 months ago (2014-08-19 14:58:54 UTC) #6
awoloszyn
I have updated the unit-tests to better reflect the current world. I have a follow-up ...
6 years, 4 months ago (2014-08-25 21:03:44 UTC) #7
danakj
Some high level questions https://codereview.chromium.org/465853004/diff/60001/cc/layers/delegated_renderer_layer_unittest.cc File cc/layers/delegated_renderer_layer_unittest.cc (right): https://codereview.chromium.org/465853004/diff/60001/cc/layers/delegated_renderer_layer_unittest.cc#newcode82 cc/layers/delegated_renderer_layer_unittest.cc:82: CalcDrawProps(host_.get()); if there's no expects ...
6 years, 3 months ago (2014-08-26 18:06:13 UTC) #8
awoloszyn
https://codereview.chromium.org/465853004/diff/60001/cc/layers/delegated_renderer_layer_unittest.cc File cc/layers/delegated_renderer_layer_unittest.cc (right): https://codereview.chromium.org/465853004/diff/60001/cc/layers/delegated_renderer_layer_unittest.cc#newcode82 cc/layers/delegated_renderer_layer_unittest.cc:82: CalcDrawProps(host_.get()); On 2014/08/26 18:06:12, danakj wrote: > if there's ...
6 years, 3 months ago (2014-08-28 19:31:43 UTC) #9
danakj
Phew! Went through all the changes in detail. High level this looks much better thanks! ...
6 years, 3 months ago (2014-09-03 19:30:36 UTC) #10
awoloszyn
Addressing 2 comments: "For new tests that want to use a mask/replica/filters/etc that would cause ...
6 years, 3 months ago (2014-09-09 15:31:38 UTC) #11
danakj
> > "For new tests that want to use a mask/replica/filters/etc that would cause > ...
6 years, 2 months ago (2014-09-25 16:02:12 UTC) #12
awoloszyn
>Also, we talked about validating that everything in >SubtreeShouldRenderToSeparateSurface is being used to create surfaces ...
6 years ago (2014-11-25 15:48:47 UTC) #13
enne (OOO)
https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc#newcode594 cc/layers/layer.cc:594: bool Layer::HasNotAxisAlignedTransformAnimation() const { nit: don't not put negatives ...
6 years ago (2014-12-12 21:26:33 UTC) #15
awoloszyn
https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc#newcode594 cc/layers/layer.cc:594: bool Layer::HasNotAxisAlignedTransformAnimation() const { On 2014/12/12 21:26:32, enne wrote: ...
6 years ago (2014-12-15 20:24:53 UTC) #16
enne (OOO)
Looking good. A few small comments: https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc#newcode1092 cc/layers/layer.cc:1092: // We do ...
6 years ago (2014-12-15 22:46:51 UTC) #17
awoloszyn
https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/465853004/diff/160001/cc/layers/layer.cc#newcode1092 cc/layers/layer.cc:1092: // We do not need SetNeedsCommit here, since this ...
6 years ago (2014-12-16 15:50:44 UTC) #18
danakj
https://codereview.chromium.org/465853004/diff/180001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/465853004/diff/180001/cc/layers/layer_impl.cc#newcode242 cc/layers/layer_impl.cc:242: if (render_surface_) render_surface_->layer_list().clear(); On 2014/12/16 15:50:44, awoloszyn wrote: > ...
6 years ago (2014-12-16 16:06:43 UTC) #19
enne (OOO)
https://codereview.chromium.org/465853004/diff/180001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/465853004/diff/180001/cc/layers/layer_impl.cc#newcode242 cc/layers/layer_impl.cc:242: if (render_surface_) render_surface_->layer_list().clear(); As danakj says, change them back, ...
6 years ago (2014-12-16 17:21:01 UTC) #20
awoloszyn
On 2014/12/16 17:21:01, enne wrote: > https://codereview.chromium.org/465853004/diff/180001/cc/layers/layer_impl.cc > File cc/layers/layer_impl.cc (right): > > https://codereview.chromium.org/465853004/diff/180001/cc/layers/layer_impl.cc#newcode242 > ...
6 years ago (2014-12-16 18:01:52 UTC) #21
enne (OOO)
https://codereview.chromium.org/465853004/diff/220001/cc/layers/delegated_renderer_layer_unittest.cc File cc/layers/delegated_renderer_layer_unittest.cc (right): https://codereview.chromium.org/465853004/diff/220001/cc/layers/delegated_renderer_layer_unittest.cc#newcode11 cc/layers/delegated_renderer_layer_unittest.cc:11: #include "cc/resources/resource_update_queue.h" Is this needed? https://codereview.chromium.org/465853004/diff/220001/cc/layers/delegated_renderer_layer_unittest.cc#newcode11 cc/layers/delegated_renderer_layer_unittest.cc:11: #include "cc/resources/resource_update_queue.h" ...
6 years ago (2014-12-16 19:08:48 UTC) #22
awoloszyn
https://codereview.chromium.org/465853004/diff/220001/cc/layers/delegated_renderer_layer_unittest.cc File cc/layers/delegated_renderer_layer_unittest.cc (right): https://codereview.chromium.org/465853004/diff/220001/cc/layers/delegated_renderer_layer_unittest.cc#newcode11 cc/layers/delegated_renderer_layer_unittest.cc:11: #include "cc/resources/resource_update_queue.h" On 2014/12/16 19:08:48, enne wrote: > Is ...
6 years ago (2014-12-16 21:54:29 UTC) #23
enne (OOO)
lgtm https://codereview.chromium.org/465853004/diff/240001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/465853004/diff/240001/cc/trees/layer_tree_host_common.cc#newcode1196 cc/trees/layer_tree_host_common.cc:1196: return (layer->render_surface() || I think this would be ...
6 years ago (2014-12-16 22:00:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/465853004/260001
6 years ago (2014-12-16 22:10:14 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/99685) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/7952) linux_chromium_gn_dbg ...
6 years ago (2014-12-16 22:15:15 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/465853004/280001
6 years ago (2014-12-17 15:25:42 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/31088)
6 years ago (2014-12-17 15:31:50 UTC) #32
awoloszyn
+ajuma for ui/compositor/transform_animation*
6 years ago (2014-12-17 21:56:06 UTC) #34
ajuma
On 2014/12/17 21:56:06, awoloszyn wrote: > +ajuma for ui/compositor/transform_animation* ui/compositor/transform_animation* lgtm.
6 years ago (2014-12-17 21:59:00 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/465853004/280001
6 years ago (2014-12-17 22:08:26 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/15904)
6 years ago (2014-12-17 23:44:49 UTC) #39
enne (OOO)
lgtm still
6 years ago (2014-12-18 18:31:16 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/465853004/300001
6 years ago (2014-12-18 18:46:21 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/16282)
6 years ago (2014-12-18 21:18:03 UTC) #44
awoloszyn
It turns out "layer->ClearRenderSurfaceLayerList()" and layer->render_surface()->ClearLayerLists() is not the same, although it is "mostly" the ...
6 years ago (2014-12-19 20:58:21 UTC) #45
enne (OOO)
lgtm
6 years ago (2014-12-19 21:01:11 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/465853004/320001
6 years ago (2014-12-19 21:33:26 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/44660) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/9155) ios_dbg_simulator ...
6 years ago (2014-12-19 21:39:31 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/465853004/340001
6 years ago (2014-12-22 14:41:41 UTC) #52
commit-bot: I haz the power
Committed patchset #18 (id:340001)
6 years ago (2014-12-22 15:40:30 UTC) #53
commit-bot: I haz the power
6 years ago (2014-12-22 15:41:20 UTC) #54
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/e83f28ca816694be553baed069f784eb286d8170
Cr-Commit-Position: refs/heads/master@{#309428}

Powered by Google App Engine
This is Rietveld 408576698