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

Issue 373113003: Keeping track of descendants that draw content instead of recalcualting (Closed)

Created:
6 years, 5 months ago by awoloszyn
Modified:
6 years, 4 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Keeping track of descendants that draw content instead of recalcualting This is a required for removing Render Surface creation from CalcDrawProps. BUG=386788 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288740

Patch Set 1 #

Patch Set 2 : Removed extra tracking on Impl side. #

Patch Set 3 : #

Patch Set 4 : Rebaseline #

Patch Set 5 : Made DrawsContent non-virtual #

Total comments: 14

Patch Set 6 : #

Total comments: 18

Patch Set 7 : #

Total comments: 44

Patch Set 8 : #

Total comments: 25

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -99 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/content_layer.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/content_layer.cc View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download
M cc/layers/delegated_renderer_layer.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
A cc/layers/delegated_renderer_layer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +78 lines, -0 lines 0 comments Download
M cc/layers/draw_properties.h View 2 chunks +0 lines, -4 lines 0 comments Download
M cc/layers/heads_up_display_layer.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/heads_up_display_layer.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M cc/layers/image_layer.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/image_layer.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M cc/layers/io_surface_layer.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/io_surface_layer.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 5 chunks +17 lines, -2 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +53 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -0 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/picture_image_layer.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -4 lines 0 comments Download
M cc/layers/surface_layer.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/surface_layer.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/texture_layer.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M cc/layers/texture_layer.cc View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/tiled_layer.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/tiled_layer.cc View 1 2 3 4 5 6 1 chunk +7 lines, -8 lines 0 comments Download
M cc/layers/ui_resource_layer.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/ui_resource_layer.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -7 lines 0 comments Download
M cc/test/fake_delegated_renderer_layer_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/fake_layer_tree_host_impl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 5 chunks +1 line, -17 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +55 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 3 4 5 6 7 25 chunks +25 lines, -25 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
awoloszyn
6 years, 5 months ago (2014-07-10 19:51:08 UTC) #1
awoloszyn
Instead of using RAII objects to track dirtiness of DrawsContent, instead make DrawsContent non-virtual and ...
6 years, 5 months ago (2014-07-14 14:50:03 UTC) #2
danakj
https://codereview.chromium.org/373113003/diff/80001/cc/layers/image_layer.cc File cc/layers/image_layer.cc (right): https://codereview.chromium.org/373113003/diff/80001/cc/layers/image_layer.cc#newcode37 cc/layers/image_layer.cc:37: void ImageLayer::UpdateDrawsContent(bool drawsContent) { draws_content thoughout https://codereview.chromium.org/373113003/diff/80001/cc/layers/image_layer.cc#newcode38 cc/layers/image_layer.cc:38: TiledLayer::UpdateDrawsContent(drawsContent ...
6 years, 5 months ago (2014-07-14 14:56:31 UTC) #3
danakj
> BUG=crbug.com/386788 BTW you can just use BUG=386788
6 years, 5 months ago (2014-07-14 14:56:57 UTC) #4
danakj
https://codereview.chromium.org/373113003/diff/80001/cc/layers/delegated_renderer_layer.h File cc/layers/delegated_renderer_layer.h (right): https://codereview.chromium.org/373113003/diff/80001/cc/layers/delegated_renderer_layer.h#newcode35 cc/layers/delegated_renderer_layer.h:35: virtual int NumDescendantsThatDrawContent() const OVERRIDE; Oh, instead of this, ...
6 years, 5 months ago (2014-07-14 14:57:45 UTC) #5
awoloszyn
https://codereview.chromium.org/373113003/diff/80001/cc/layers/image_layer.cc File cc/layers/image_layer.cc (right): https://codereview.chromium.org/373113003/diff/80001/cc/layers/image_layer.cc#newcode38 cc/layers/image_layer.cc:38: TiledLayer::UpdateDrawsContent(drawsContent && !bitmap_.isNull()); On 2014/07/14 14:56:31, danakj wrote: > ...
6 years, 5 months ago (2014-07-14 15:25:09 UTC) #6
danakj
Ah, ok I guess I earlyoutted on codereview a bit too early, thanks for your ...
6 years, 5 months ago (2014-07-14 15:49:24 UTC) #7
awoloszyn
https://codereview.chromium.org/373113003/diff/80001/cc/layers/delegated_renderer_layer.h File cc/layers/delegated_renderer_layer.h (right): https://codereview.chromium.org/373113003/diff/80001/cc/layers/delegated_renderer_layer.h#newcode35 cc/layers/delegated_renderer_layer.h:35: virtual int NumDescendantsThatDrawContent() const OVERRIDE; On 2014/07/14 14:57:45, danakj ...
6 years, 5 months ago (2014-07-14 19:38:33 UTC) #8
danakj
https://codereview.chromium.org/373113003/diff/100001/cc/layers/image_layer.cc File cc/layers/image_layer.cc (right): https://codereview.chromium.org/373113003/diff/100001/cc/layers/image_layer.cc#newcode38 cc/layers/image_layer.cc:38: return !bitmap_.isNull() && TiledLayer::HasDrawableContent(); Ok this is more clear ...
6 years, 5 months ago (2014-07-14 20:22:03 UTC) #9
awoloszyn
https://codereview.chromium.org/373113003/diff/100001/cc/layers/image_layer.cc File cc/layers/image_layer.cc (right): https://codereview.chromium.org/373113003/diff/100001/cc/layers/image_layer.cc#newcode38 cc/layers/image_layer.cc:38: return !bitmap_.isNull() && TiledLayer::HasDrawableContent(); On 2014/07/14 20:22:02, danakj wrote: ...
6 years, 5 months ago (2014-07-16 20:44:20 UTC) #10
danakj
https://codereview.chromium.org/373113003/diff/120001/cc/layers/delegated_renderer_layer_unittest.cc File cc/layers/delegated_renderer_layer_unittest.cc (right): https://codereview.chromium.org/373113003/diff/120001/cc/layers/delegated_renderer_layer_unittest.cc#newcode33 cc/layers/delegated_renderer_layer_unittest.cc:33: always_impl_thread_and_main_thread_blocked_; do you need this? https://codereview.chromium.org/373113003/diff/120001/cc/layers/delegated_renderer_layer_unittest.cc#newcode59 cc/layers/delegated_renderer_layer_unittest.cc:59: scoped_refptr<Layer> layer_after_; ...
6 years, 5 months ago (2014-07-17 17:21:26 UTC) #11
awoloszyn
https://codereview.chromium.org/373113003/diff/120001/cc/layers/delegated_renderer_layer_unittest.cc File cc/layers/delegated_renderer_layer_unittest.cc (right): https://codereview.chromium.org/373113003/diff/120001/cc/layers/delegated_renderer_layer_unittest.cc#newcode33 cc/layers/delegated_renderer_layer_unittest.cc:33: always_impl_thread_and_main_thread_blocked_; On 2014/07/17 17:21:25, danakj wrote: > do you ...
6 years, 5 months ago (2014-07-17 20:45:01 UTC) #12
danakj
lgtm lgtm
6 years, 4 months ago (2014-07-28 17:32:37 UTC) #13
danakj
lgtm
6 years, 4 months ago (2014-07-28 17:32:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/awoloszyn@chromium.org/373113003/140001
6 years, 4 months ago (2014-07-28 17:33:03 UTC) #15
danakj
haha... ooops. i hit the button by mistake.. laptops.. i was just noticing that I ...
6 years, 4 months ago (2014-07-28 17:33:13 UTC) #16
danakj
The CQ bit was unchecked by danakj@chromium.org
6 years, 4 months ago (2014-07-28 17:33:26 UTC) #17
danakj
Sorry for the long delay! Here's a few more comments/questions, but I'm really happy with ...
6 years, 4 months ago (2014-08-06 14:57:08 UTC) #18
awoloszyn
https://codereview.chromium.org/373113003/diff/140001/cc/layers/delegated_renderer_layer_impl_unittest.cc File cc/layers/delegated_renderer_layer_impl_unittest.cc (right): https://codereview.chromium.org/373113003/diff/140001/cc/layers/delegated_renderer_layer_impl_unittest.cc#newcode314 cc/layers/delegated_renderer_layer_impl_unittest.cc:314: FakeLayerTreeHostImpl::UpdateNumChildrenAndDrawProperties( On 2014/08/06 14:57:07, danakj wrote: > PrepareToDraw does ...
6 years, 4 months ago (2014-08-08 15:53:21 UTC) #19
danakj
LGTM https://codereview.chromium.org/373113003/diff/140001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/373113003/diff/140001/cc/layers/layer.cc#newcode1024 cc/layers/layer.cc:1024: bool draws_content = has_drawable_content; On 2014/08/08 15:53:20, awoloszyn ...
6 years, 4 months ago (2014-08-08 16:04:05 UTC) #20
awoloszyn
On 2014/08/08 16:04:05, danakj wrote: > LGTM > > https://codereview.chromium.org/373113003/diff/140001/cc/layers/layer.cc > File cc/layers/layer.cc (right): > ...
6 years, 4 months ago (2014-08-08 16:08:03 UTC) #21
danakj
On Fri, Aug 8, 2014 at 12:08 PM, <awoloszyn@chromium.org> wrote: > On 2014/08/08 16:04:05, danakj ...
6 years, 4 months ago (2014-08-08 16:47:04 UTC) #22
awoloszyn
On 2014/08/08 16:47:04, danakj wrote: > On Fri, Aug 8, 2014 at 12:08 PM, <mailto:awoloszyn@chromium.org> ...
6 years, 4 months ago (2014-08-11 15:35:26 UTC) #23
danakj
Thanks! LGTM
6 years, 4 months ago (2014-08-11 15:37:53 UTC) #24
awoloszyn
The CQ bit was checked by awoloszyn@chromium.org
6 years, 4 months ago (2014-08-11 15:38:34 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/awoloszyn@chromium.org/373113003/200001
6 years, 4 months ago (2014-08-11 15:39:20 UTC) #26
commit-bot: I haz the power
6 years, 4 months ago (2014-08-11 17:39:59 UTC) #27
Message was sent while issue was closed.
Change committed as 288740

Powered by Google App Engine
This is Rietveld 408576698