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

Issue 1024633002: cc: Keep tilings texture size in sync (Closed)

Created:
5 years, 9 months ago by hendrikw
Modified:
5 years, 9 months ago
Reviewers:
danakj, vmpstr, 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

cc: Keep tilings texture size in sync This approach keeps the viewport size as a property of the layerimpl, doing this makes sure that the pending and active trees are in sync, because the only way for the size to migrate from the pending to active tree is via a push. Since being in sync is all the matters, we avoid having to reach in from outside of the layer and recreate tilings. BUG=458750 Committed: https://crrev.com/757ba9eec00ccd9802ad58d841563e73f11c2074 Cr-Commit-Position: refs/heads/master@{#321851}

Patch Set 1 #

Patch Set 2 : pass gpu tile size to updaterastesource #

Patch Set 3 : fix comments #

Patch Set 4 : fix broken test #

Total comments: 2

Patch Set 5 : address vmp's comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -2 lines) Patch
M cc/layers/picture_layer.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 3 4 2 chunks +5 lines, -0 lines 3 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (2 generated)
hendrikw
Alternative solution
5 years, 9 months ago (2015-03-19 22:31:41 UTC) #2
enne (OOO)
https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer.cc File cc/layers/picture_layer.cc (right): https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer.cc#newcode77 cc/layers/picture_layer.cc:77: layer_tree_host()->device_viewport_size()); How does this work if push properties is ...
5 years, 9 months ago (2015-03-19 22:37:00 UTC) #3
hendrikw
On 2015/03/19 22:37:00, enne wrote: > https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer.cc > File cc/layers/picture_layer.cc (right): > > https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer.cc#newcode77 > ...
5 years, 9 months ago (2015-03-19 22:39:04 UTC) #4
hendrikw
On 2015/03/19 22:39:04, hendrikw wrote: > On 2015/03/19 22:37:00, enne wrote: > > > https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer.cc ...
5 years, 9 months ago (2015-03-19 22:39:58 UTC) #5
vmpstr
https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1024633002/diff/50001/cc/layers/picture_layer_impl.cc#newcode508 cc/layers/picture_layer_impl.cc:508: gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; It kind of feels like this ...
5 years, 9 months ago (2015-03-19 23:14:39 UTC) #6
hendrikw
Sure, why not :)
5 years, 9 months ago (2015-03-19 23:29:43 UTC) #7
vmpstr
https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h File cc/layers/picture_layer_impl.h (right): https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h#newcode80 cc/layers/picture_layer_impl.h:80: gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; Do we need a SetNeedsPushProperties with ...
5 years, 9 months ago (2015-03-19 23:31:51 UTC) #8
hendrikw
https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h File cc/layers/picture_layer_impl.h (right): https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h#newcode80 cc/layers/picture_layer_impl.h:80: gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; On 2015/03/19 23:31:51, vmpstr wrote: > ...
5 years, 9 months ago (2015-03-19 23:34:33 UTC) #9
vmpstr
lgtm % enne
5 years, 9 months ago (2015-03-19 23:37:44 UTC) #10
vmpstr
On 2015/03/19 23:37:44, vmpstr wrote: > lgtm % enne (can you update the title of ...
5 years, 9 months ago (2015-03-19 23:38:50 UTC) #11
enne (OOO)
https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h File cc/layers/picture_layer_impl.h (right): https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h#newcode80 cc/layers/picture_layer_impl.h:80: gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; On 2015/03/19 at 23:34:33, hendrikw wrote: ...
5 years, 9 months ago (2015-03-20 22:18:40 UTC) #12
hendrikw
On 2015/03/20 22:18:40, enne wrote: > https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h > File cc/layers/picture_layer_impl.h (right): > > https://codereview.chromium.org/1024633002/diff/70001/cc/layers/picture_layer_impl.h#newcode80 > ...
5 years, 9 months ago (2015-03-20 22:44:13 UTC) #13
enne (OOO)
It's weird to not keep that value up to date, but I guess if it's ...
5 years, 9 months ago (2015-03-20 22:58:07 UTC) #14
hendrikw
On 2015/03/20 22:58:07, enne wrote: > It's weird to not keep that value up to ...
5 years, 9 months ago (2015-03-20 23:28:32 UTC) #15
enne (OOO)
> > Can you clarify what you mean about reproducible? In slimming paint, > > ...
5 years, 9 months ago (2015-03-20 23:34:33 UTC) #16
hendrikw
On 2015/03/20 23:34:33, enne wrote: > > > Can you clarify what you mean about ...
5 years, 9 months ago (2015-03-20 23:57:32 UTC) #17
enne (OOO)
On 2015/03/20 at 23:57:32, hendrikw wrote: > > In the future, the main-thread side layer ...
5 years, 9 months ago (2015-03-23 17:39:38 UTC) #18
enne (OOO)
lgtm. Will assign future bugs to you when this breaks with slimming paint.
5 years, 9 months ago (2015-03-23 17:54:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1024633002/70001
5 years, 9 months ago (2015-03-23 18:20:49 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:70001)
5 years, 9 months ago (2015-03-23 21:13:22 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 21:13:58 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/757ba9eec00ccd9802ad58d841563e73f11c2074
Cr-Commit-Position: refs/heads/master@{#321851}

Powered by Google App Engine
This is Rietveld 408576698