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

Issue 819643004: Cache viewport rect for tile priority in UpdateTiles (Closed)

Created:
5 years, 11 months ago by hush (inactive)
Modified:
5 years, 11 months ago
Reviewers:
danakj, boliu, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache viewport rect for tile priority in UpdateTiles PictureLayerImpls in a tree should continue using the same viewport rect for tile priority until UpdateTiles() is called with the new value of viewport rect for tile priority. Otherwise, a PictureLayerImpl could be in an inconsistent state that could lead to a wrong decision about AllTilesRequiredForActivationAreReadyToDraw. This CL caches the viewport rect for tile priority in PictureLayerImpl. BUG=449008 Committed: https://crrev.com/9178c77a0167ee7c73364b21a6f3a633029b7a44 Cr-Commit-Position: refs/heads/master@{#312523}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : test #

Total comments: 2

Patch Set 4 : review #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : cache in pictureLayerImpl #

Patch Set 7 : cache the return value of GetViewportForTilePriorityInContentSpace #

Total comments: 6

Patch Set 8 : review #

Total comments: 6

Patch Set 9 : review #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -16 lines) Patch
M cc/layers/picture_layer_impl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +9 lines, -10 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 4 chunks +58 lines, -3 lines 0 comments Download
M cc/test/fake_picture_layer_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (7 generated)
hush (inactive)
Hi Bo! Could you take a look before I sent it to cc owners? Thanks!
5 years, 11 months ago (2015-01-15 01:29:50 UTC) #2
boliu
minor comment https://codereview.chromium.org/819643004/diff/40001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/819643004/diff/40001/cc/trees/layer_tree_impl.cc#newcode566 cc/trees/layer_tree_impl.cc:566: layer_tree_host_impl_->ViewportRectForTilePriority(); I guess this is ok now, ...
5 years, 11 months ago (2015-01-15 01:36:05 UTC) #3
hush (inactive)
https://codereview.chromium.org/819643004/diff/40001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/819643004/diff/40001/cc/trees/layer_tree_impl.cc#newcode566 cc/trees/layer_tree_impl.cc:566: layer_tree_host_impl_->ViewportRectForTilePriority(); On 2015/01/15 01:36:05, boliu wrote: > I guess ...
5 years, 11 months ago (2015-01-15 01:51:59 UTC) #4
hush (inactive)
Add Dana for cc/ review
5 years, 11 months ago (2015-01-15 01:53:20 UTC) #6
vmpstr
(some drive-by comments) The function to get this rect is only being used in one ...
5 years, 11 months ago (2015-01-16 19:14:01 UTC) #8
boliu
On 2015/01/16 19:14:01, vmpstr wrote: > (some drive-by comments) > > The function to get ...
5 years, 11 months ago (2015-01-16 19:28:27 UTC) #9
vmpstr
On 2015/01/16 19:28:27, boliu wrote: > On 2015/01/16 19:14:01, vmpstr wrote: > > (some drive-by ...
5 years, 11 months ago (2015-01-16 19:31:49 UTC) #10
danakj
On 2015/01/16 19:28:27, boliu wrote: > On 2015/01/16 19:14:01, vmpstr wrote: > > (some drive-by ...
5 years, 11 months ago (2015-01-20 22:42:35 UTC) #11
danakj
https://codereview.chromium.org/819643004/diff/80001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/819643004/diff/80001/cc/trees/layer_tree_impl.cc#newcode515 cc/trees/layer_tree_impl.cc:515: layer_tree_host_impl_->ViewportRectForTilePriority(); I find it awkward that LTI mirrors the ...
5 years, 11 months ago (2015-01-20 22:42:46 UTC) #12
boliu
On 2015/01/20 22:42:35, danakj wrote: > On 2015/01/16 19:28:27, boliu wrote: > > On 2015/01/16 ...
5 years, 11 months ago (2015-01-20 23:11:40 UTC) #13
danakj
On 2015/01/20 23:11:40, boliu wrote: > On 2015/01/20 22:42:35, danakj wrote: > > On 2015/01/16 ...
5 years, 11 months ago (2015-01-20 23:13:00 UTC) #14
hush (inactive)
PTAL PS6 https://codereview.chromium.org/819643004/diff/80001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/819643004/diff/80001/cc/trees/layer_tree_impl.cc#newcode515 cc/trees/layer_tree_impl.cc:515: layer_tree_host_impl_->ViewportRectForTilePriority(); On 2015/01/20 22:42:46, danakj wrote: > ...
5 years, 11 months ago (2015-01-21 00:43:07 UTC) #16
danakj
https://codereview.chromium.org/819643004/diff/140001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/819643004/diff/140001/cc/layers/picture_layer_impl.cc#newcode286 cc/layers/picture_layer_impl.cc:286: viewport_rect_for_tile_priority_in_content_space_, max_contents_scale); Is this right? We'll be drawing with ...
5 years, 11 months ago (2015-01-21 18:47:40 UTC) #17
hush (inactive)
https://codereview.chromium.org/819643004/diff/140001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/819643004/diff/140001/cc/layers/picture_layer_impl.cc#newcode286 cc/layers/picture_layer_impl.cc:286: viewport_rect_for_tile_priority_in_content_space_, max_contents_scale); On 2015/01/21 18:47:40, danakj wrote: > Is ...
5 years, 11 months ago (2015-01-21 22:21:10 UTC) #18
danakj
https://codereview.chromium.org/819643004/diff/160001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/819643004/diff/160001/cc/layers/picture_layer_impl.cc#newcode504 cc/layers/picture_layer_impl.cc:504: void PictureLayerImpl::CacheViewportForTilePriorityInContentSpace() { s/CacheViewportFor/UpdateViewportRectFor/ https://codereview.chromium.org/819643004/diff/160001/cc/layers/picture_layer_impl.cc#newcode510 cc/layers/picture_layer_impl.cc:510: don't add whitespace ...
5 years, 11 months ago (2015-01-21 22:32:18 UTC) #19
hush (inactive)
https://codereview.chromium.org/819643004/diff/160001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/819643004/diff/160001/cc/layers/picture_layer_impl.cc#newcode504 cc/layers/picture_layer_impl.cc:504: void PictureLayerImpl::CacheViewportForTilePriorityInContentSpace() { On 2015/01/21 22:32:18, danakj wrote: > ...
5 years, 11 months ago (2015-01-21 22:40:46 UTC) #20
danakj
LGTM
5 years, 11 months ago (2015-01-21 23:32:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819643004/180001
5 years, 11 months ago (2015-01-21 23:33:56 UTC) #23
vmpstr
This might need a rebase on https://codereview.chromium.org/853393002/
5 years, 11 months ago (2015-01-21 23:36:17 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/51030) Try jobs failed on following ...
5 years, 11 months ago (2015-01-21 23:39:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819643004/200001
5 years, 11 months ago (2015-01-22 00:03:56 UTC) #28
commit-bot: I haz the power
Committed patchset #10 (id:200001)
5 years, 11 months ago (2015-01-22 01:58:07 UTC) #29
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 01:59:19 UTC) #30
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9178c77a0167ee7c73364b21a6f3a633029b7a44
Cr-Commit-Position: refs/heads/master@{#312523}

Powered by Google App Engine
This is Rietveld 408576698