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

Issue 1013273003: cc: Force an update on tile size after viewport resize (Closed)

Created:
5 years, 9 months ago by hendrikw
Modified:
5 years, 8 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: Force an update on tile size after viewport resize GPU rasterization can cause a tile size change when the viewport changes. Ensure that the tiling's texture sizes are correct after a viewport resize by tracking the last viewport rect and updating the current raster source, which will in turn update the tiling's texture size. BUG=458750

Patch Set 1 #

Patch Set 2 : update comments #

Patch Set 3 : only call if on pending tree #

Total comments: 5

Patch Set 4 : move below CanHanveTilings #

Patch Set 5 : attempt 3? #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -79 lines) Patch
M cc/layers/picture_layer_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 2 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 21 chunks +35 lines, -35 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 4 chunks +9 lines, -9 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 1 chunk +70 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 6 chunks +20 lines, -10 lines 3 comments Download
M cc/trees/occlusion_tracker_perftest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
hendrikw
PTAL -- Turns out I did need to keep the size. I have to admit, ...
5 years, 9 months ago (2015-03-18 00:16:53 UTC) #2
enne (OOO)
lgtm
5 years, 9 months ago (2015-03-18 07:32:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1013273003/1
5 years, 9 months ago (2015-03-18 07:33:00 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/65225)
5 years, 9 months ago (2015-03-18 12:53:40 UTC) #7
vmpstr
https://codereview.chromium.org/1013273003/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1013273003/diff/40001/cc/layers/picture_layer_impl.cc#newcode400 cc/layers/picture_layer_impl.cc:400: tilings_->UpdateTilingsToCurrentRasterSource( In "typical" situations where the device viewport changes ...
5 years, 9 months ago (2015-03-18 21:36:39 UTC) #8
danakj
https://codereview.chromium.org/1013273003/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1013273003/diff/40001/cc/layers/picture_layer_impl.cc#newcode397 cc/layers/picture_layer_impl.cc:397: if (!last_viewport_size_.IsEmpty() && This looks like it should be ...
5 years, 9 months ago (2015-03-18 21:46:14 UTC) #10
hendrikw
https://codereview.chromium.org/1013273003/diff/40001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1013273003/diff/40001/cc/layers/picture_layer_impl.cc#newcode397 cc/layers/picture_layer_impl.cc:397: if (!last_viewport_size_.IsEmpty() && On 2015/03/18 21:46:14, danakj wrote: > ...
5 years, 9 months ago (2015-03-18 22:06:32 UTC) #11
enne (OOO)
The problem here is that you have a layer that is up to date. It ...
5 years, 9 months ago (2015-03-18 22:13:48 UTC) #12
danakj
On Wed, Mar 18, 2015 at 3:13 PM, <enne@chromium.org> wrote: > The problem here is ...
5 years, 9 months ago (2015-03-18 22:20:29 UTC) #13
hendrikw
> We should do this on the sync tree only, in my opinion. I think ...
5 years, 9 months ago (2015-03-18 22:22:32 UTC) #14
danakj
On Wed, Mar 18, 2015 at 3:22 PM, <hendrikw@chromium.org> wrote: > We should do this ...
5 years, 9 months ago (2015-03-18 22:23:41 UTC) #15
hendrikw
On 2015/03/18 22:23:41, danakj wrote: > On Wed, Mar 18, 2015 at 3:22 PM, <mailto:hendrikw@chromium.org> ...
5 years, 9 months ago (2015-03-18 22:27:32 UTC) #16
danakj
On Wed, Mar 18, 2015 at 3:27 PM, <hendrikw@chromium.org> wrote: > On 2015/03/18 22:23:41, danakj ...
5 years, 9 months ago (2015-03-18 22:29:28 UTC) #17
enne (OOO)
> These are good points. I think what's awkward about doing this in > UpdateTiles() ...
5 years, 9 months ago (2015-03-18 22:30:04 UTC) #18
vmpstr
On 2015/03/18 22:13:48, enne wrote: > The problem here is that you have a layer ...
5 years, 9 months ago (2015-03-18 22:32:35 UTC) #19
danakj
On Wed, Mar 18, 2015 at 3:30 PM, <enne@chromium.org> wrote: > These are good points. ...
5 years, 9 months ago (2015-03-18 22:34:04 UTC) #20
hendrikw
I've tried the LCD approach. I hit a snag: There was already a 'did viewport ...
5 years, 9 months ago (2015-03-19 17:38:18 UTC) #22
enne (OOO)
https://codereview.chromium.org/1013273003/diff/80001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1013273003/diff/80001/cc/layers/picture_layer_impl.cc#newcode575 cc/layers/picture_layer_impl.cc:575: DCHECK(layer_tree_impl()->IsPendingTree()); IsSyncTree. Please make sure you have a commit ...
5 years, 9 months ago (2015-03-19 17:55:24 UTC) #23
danakj
5 years, 9 months ago (2015-03-19 18:43:38 UTC) #24
https://codereview.chromium.org/1013273003/diff/80001/cc/layers/picture_layer...
File cc/layers/picture_layer_impl.cc (right):

https://codereview.chromium.org/1013273003/diff/80001/cc/layers/picture_layer...
cc/layers/picture_layer_impl.cc:575: DCHECK(layer_tree_impl()->IsPendingTree());
On 2015/03/19 17:55:24, enne wrote:
> IsSyncTree.  Please make sure you have a commit to active test for this.

(Any single thread LayerTreeTest would)

Powered by Google App Engine
This is Rietveld 408576698