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

Issue 12321053: cc: Complete pending tile uploads if they are needed for tree activation (Closed)

Created:
7 years, 10 months ago by Sami
Modified:
7 years, 9 months ago
Reviewers:
epenner, nduca, reveman
CC:
chromium-reviews, cc-bugs_chromium.org, apatrick_chromium
Visibility:
Public.

Description

cc: Complete pending tile uploads if they are needed for tree activation When we are checking whether resources are ready for tree activation, force any pending tile upload to complete. This allows us to render immediately and avoid polling for tile upload completion. BUG=161828 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187931

Patch Set 1 #

Patch Set 2 : Use new wait entry point. Insert wait right before drawing. #

Patch Set 3 : Add tests. #

Patch Set 4 : Flush uploads from areVisibleLayersReady() #

Patch Set 5 : Keep flushed tiles in UPLOAD_STATE. #

Patch Set 6 : Rebased. #

Patch Set 7 : Chromified and added a test. #

Total comments: 4

Patch Set 8 : Only flush when not in smoothness/animations #

Total comments: 10

Patch Set 9 : Improved naming, keep resource locked after forcing completion. #

Patch Set 10 : Rebased after managed_tile_state refactoring. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -3 lines) Patch
M cc/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M cc/resource_provider.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resource_provider.cc View 1 2 3 4 5 6 7 8 6 chunks +25 lines, -2 lines 0 comments Download
M cc/resource_provider_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +63 lines, -0 lines 0 comments Download
M cc/tile_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Sami
This patch implements the renderer-side shallow async upload flushing logic to let us render sooner ...
7 years, 9 months ago (2013-02-27 18:01:08 UTC) #1
Sami
This version shuffles the logic so that we flush uploads while we are checking whether ...
7 years, 9 months ago (2013-03-04 19:05:36 UTC) #2
Sami
Okay, I think this one is ready for review. I've tested it on Nexus 10 ...
7 years, 9 months ago (2013-03-07 19:33:02 UTC) #3
reveman
I think this is a good approach but to get ideal latency out of this ...
7 years, 9 months ago (2013-03-07 20:31:58 UTC) #4
Sami
> I think this is a good approach but to get ideal latency out of ...
7 years, 9 months ago (2013-03-08 18:01:10 UTC) #5
reveman
On 2013/03/08 18:01:10, Sami wrote: > > I think this is a good approach but ...
7 years, 9 months ago (2013-03-08 18:56:21 UTC) #6
reveman
lgtm, eric, nat what do you think?
7 years, 9 months ago (2013-03-08 18:57:35 UTC) #7
epenner
On 2013/03/08 18:57:35, David Reveman wrote: > lgtm, eric, nat what do you think? Same ...
7 years, 9 months ago (2013-03-09 02:30:34 UTC) #8
Sami
On 2013/03/09 02:30:34, epenner wrote: > Same comment as the new GL entry point: I ...
7 years, 9 months ago (2013-03-11 11:40:04 UTC) #9
epenner
Sorry! For some reason it didn't publish this comment before. https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.cc File cc/resource_provider.cc (right): https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.cc#newcode1136 ...
7 years, 9 months ago (2013-03-11 19:18:40 UTC) #10
nduca
https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.h File cc/resource_provider.h (right): https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.h#newcode283 cc/resource_provider.h:283: void InsertWaitForSetPixels(ResourceId id); ForceSetPixelsToComplete? https://codereview.chromium.org/12321053/diff/22001/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/12321053/diff/22001/cc/tile_manager.cc#newcode131 ...
7 years, 9 months ago (2013-03-11 19:41:47 UTC) #11
reveman
https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.cc File cc/resource_provider.cc (right): https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.cc#newcode1147 cc/resource_provider.cc:1147: DCHECK(resource->locked_for_write); you need a "|| resource->wait_for_set_pixels_inserted" here too as ...
7 years, 9 months ago (2013-03-12 06:25:58 UTC) #12
Sami
Thanks everyone. All comments addressed, another look please? https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.cc File cc/resource_provider.cc (right): https://codereview.chromium.org/12321053/diff/22001/cc/resource_provider.cc#newcode1136 cc/resource_provider.cc:1136: UnlockForWrite(id); ...
7 years, 9 months ago (2013-03-12 14:13:07 UTC) #13
nduca
Is there any distinction between forced_upload_completion_state and just upload_state?
7 years, 9 months ago (2013-03-12 17:40:19 UTC) #14
nduca
aka i think we could just make the force call move us to upload state ...
7 years, 9 months ago (2013-03-12 17:41:00 UTC) #15
Sami
On 2013/03/12 17:41:00, nduca wrote: > aka i think we could just make the force ...
7 years, 9 months ago (2013-03-12 17:55:01 UTC) #16
reveman
On 2013/03/12 17:41:00, nduca wrote: > aka i think we could just make the force ...
7 years, 9 months ago (2013-03-12 17:57:01 UTC) #17
reveman
Long term I also like to see us move away from duplicate properties such as ...
7 years, 9 months ago (2013-03-12 18:03:17 UTC) #18
nduca
LGTM. Sami, can you please do a followup to remove is_resource_being_uploaded?
7 years, 9 months ago (2013-03-12 18:24:47 UTC) #19
epenner
On 2013/03/12 18:24:47, nduca wrote: > LGTM. Sami, can you please do a followup to ...
7 years, 9 months ago (2013-03-12 19:50:28 UTC) #20
reveman
eric, instead of using an array, would it be enough to just require a main ...
7 years, 9 months ago (2013-03-12 20:23:30 UTC) #21
epenner
On 2013/03/12 20:23:30, David Reveman wrote: > eric, instead of using an array, would it ...
7 years, 9 months ago (2013-03-12 20:47:19 UTC) #22
reveman
Sounds good. Uploads are already batched using shallow flush so this should "just work" if ...
7 years, 9 months ago (2013-03-12 21:41:36 UTC) #23
nduca
lgtm
7 years, 9 months ago (2013-03-13 06:00:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12321053/35001
7 years, 9 months ago (2013-03-13 10:46:50 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-13 11:15:08 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12321053/58001
7 years, 9 months ago (2013-03-13 11:43:35 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-13 12:02:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12321053/58001
7 years, 9 months ago (2013-03-13 12:06:48 UTC) #29
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-13 12:19:45 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12321053/58001
7 years, 9 months ago (2013-03-13 13:28:33 UTC) #31
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-13 13:43:06 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12321053/58001
7 years, 9 months ago (2013-03-13 15:02:09 UTC) #33
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-13 15:13:17 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/12321053/58001
7 years, 9 months ago (2013-03-13 18:47:41 UTC) #35
commit-bot: I haz the power
7 years, 9 months ago (2013-03-13 20:28:34 UTC) #36
Message was sent while issue was closed.
Change committed as 187931

Powered by Google App Engine
This is Rietveld 408576698