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

Issue 11348384: cc: Use asynchronous set pixels API for impl-side painting. (Closed)

Created:
8 years ago by reveman
Modified:
8 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Use asynchronous set pixels API for impl-side painting. BUG=161338 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171721

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove PendingSetPixels class. #

Patch Set 3 : Rename ScheduleRedraw to ScheduleCheckForCompletedSetPixels. #

Patch Set 4 : Rebase and removed unused CheckForPendingSetPixelsCompletion(). #

Total comments: 10

Patch Set 5 : Remove ManagedTileState::resource_id. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -23 lines) Patch
M cc/layer_tree_host_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M cc/picture_layer_impl.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/picture_layer_tiling_set.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_tile_manager_client.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/tile.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M cc/tile.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M cc/tile_manager.h View 1 2 3 4 6 chunks +11 lines, -2 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 5 chunks +44 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
reveman
This makes the tile manager use the async set pixels API. These changes need to ...
8 years ago (2012-12-04 23:04:32 UTC) #1
nduca
https://codereview.chromium.org/11348384/diff/1/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11348384/diff/1/cc/tile_manager.cc#newcode60 cc/tile_manager.cc:60: PendingSetPixels::PendingSetPixels( I think this is overkill. Just do what ...
8 years ago (2012-12-04 23:59:26 UTC) #2
reveman
PTAL. https://codereview.chromium.org/11348384/diff/1/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11348384/diff/1/cc/tile_manager.cc#newcode60 cc/tile_manager.cc:60: PendingSetPixels::PendingSetPixels( On 2012/12/04 23:59:26, nduca wrote: > I ...
8 years ago (2012-12-05 23:21:18 UTC) #3
epennerAtGoogle
https://codereview.chromium.org/11348384/diff/10002/cc/tile_manager.cc File cc/tile_manager.cc (left): https://codereview.chromium.org/11348384/diff/10002/cc/tile_manager.cc#oldcode281 cc/tile_manager.cc:281: Could this possibly just be called at the beginning ...
8 years ago (2012-12-06 00:33:17 UTC) #4
nduca
There are thousands of tiles. There are 10s of uploading tiles.
8 years ago (2012-12-06 03:19:52 UTC) #5
nduca
https://codereview.chromium.org/11348384/diff/10002/cc/tile_manager.cc File cc/tile_manager.cc (right): https://codereview.chromium.org/11348384/diff/10002/cc/tile_manager.cc#newcode291 cc/tile_manager.cc:291: void TileManager::CheckForCompletedSetPixels() { I had asked for this before, ...
8 years ago (2012-12-06 03:21:30 UTC) #6
epennerAtGoogle
On 2012/12/06 03:19:52, nduca wrote: > There are thousands of tiles. There are 10s of ...
8 years ago (2012-12-06 04:04:34 UTC) #7
nduca
Oh, I see what you're saying. Here's where my head is at, wdyt? Roughly, the ...
8 years ago (2012-12-06 06:05:00 UTC) #8
epennerAtGoogle
On 2012/12/06 06:05:00, nduca wrote: > Oh, I see what you're saying. Here's where my ...
8 years ago (2012-12-06 06:20:22 UTC) #9
nduca
Its a tantalizing idea. Completion of an upload doesn't mean its going to be drawn, ...
8 years ago (2012-12-06 06:24:50 UTC) #10
reveman
https://codereview.chromium.org/11348384/diff/10002/cc/tile_manager.cc File cc/tile_manager.cc (left): https://codereview.chromium.org/11348384/diff/10002/cc/tile_manager.cc#oldcode281 cc/tile_manager.cc:281: On 2012/12/06 00:33:17, epennerAtGoogle wrote: > Could this possibly ...
8 years ago (2012-12-06 15:28:20 UTC) #11
nduca
SetPixels is fine. I wouldn't have approved the change away from uploads personally but since ...
8 years ago (2012-12-06 16:20:09 UTC) #12
nduca
https://codereview.chromium.org/11348384/diff/10002/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/11348384/diff/10002/cc/layer_tree_host_impl.cc#newcode789 cc/layer_tree_host_impl.cc:789: void LayerTreeHostImpl::ScheduleCheckForCompletedSetPixels() Probably worth explaining why this just does ...
8 years ago (2012-12-06 16:37:09 UTC) #13
epennerAtGoogle
Couple comments in one. I get the potential latency advantage for this scheduling complexity, but ...
8 years ago (2012-12-06 17:53:44 UTC) #14
epennerAtGoogle
Sound good on the queue of uploading tiles... On a side-note I've seen a crazy ...
8 years ago (2012-12-06 18:00:11 UTC) #15
reveman
On 2012/12/06 18:00:11, epennerAtGoogle wrote: > Sound good on the queue of uploading tiles... On ...
8 years ago (2012-12-06 18:18:50 UTC) #16
reveman
On 2012/12/06 17:53:44, epennerAtGoogle wrote: > Couple comments in one. > > I get the ...
8 years ago (2012-12-06 18:32:49 UTC) #17
epennerAtGoogle
> this doesn't just affect main thread paint latency, it affects impl side paint > ...
8 years ago (2012-12-06 20:36:36 UTC) #18
reveman
https://codereview.chromium.org/11348384/diff/10002/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (right): https://codereview.chromium.org/11348384/diff/10002/cc/layer_tree_host_impl.cc#newcode789 cc/layer_tree_host_impl.cc:789: void LayerTreeHostImpl::ScheduleCheckForCompletedSetPixels() On 2012/12/06 16:37:09, nduca wrote: > Probably ...
8 years ago (2012-12-06 20:40:34 UTC) #19
reveman
> However, Nat I forgot to mention sync points again as an alternative. When > ...
8 years ago (2012-12-06 20:44:25 UTC) #20
nduca
It works for the active tree. But it doesn't work for the pending tree.
8 years ago (2012-12-06 22:19:20 UTC) #21
epennerAtGoogle
On 2012/12/06 22:19:20, nduca wrote: > It works for the active tree. But it doesn't ...
8 years ago (2012-12-07 00:37:48 UTC) #22
nduca
lgtm, this looks good
8 years ago (2012-12-07 00:48:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/11348384/21001
8 years ago (2012-12-07 00:56:51 UTC) #24
commit-bot: I haz the power
8 years ago (2012-12-07 08:18:39 UTC) #25
Message was sent while issue was closed.
Change committed as 171721

Powered by Google App Engine
This is Rietveld 408576698