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

Issue 130483010: cc: Limit ManageTiles calls to once per-frame on average (Closed)

Created:
6 years, 11 months ago by brianderson
Modified:
6 years, 11 months ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, danakj, Sami (do not use), epenner
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

cc: Limit ManageTiles calls to once per-frame on average This makes sure LTHI notifies the Scheduler of all ManageTiles calls and then avoids a scheduled ManageTiles if we are already averaging one or more ManageTiles per BeginImplFrame. Limiting the scheduled ManageTiles to occur only if a ManageTiles hasn't happened in the current frame can still result in two ManageTiles per frame since we might schedule a ManageTiles at the begining of a frame and then call explicitly when the commit finishes if the main thread is in a high latency mode. BUG=334749 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245388

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use a funnel #

Patch Set 3 : Add tests #

Patch Set 4 : Add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -10 lines) Patch
M cc/scheduler/scheduler_state_machine.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 7 chunks +17 lines, -7 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 chunks +59 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
enne (OOO)
https://codereview.chromium.org/130483010/diff/1/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/130483010/diff/1/cc/scheduler/scheduler_state_machine.cc#newcode510 cc/scheduler/scheduler_state_machine.cc:510: // and then periodically after that. Limiting to every ...
6 years, 11 months ago (2014-01-15 19:26:43 UTC) #1
brianderson
https://codereview.chromium.org/130483010/diff/1/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/130483010/diff/1/cc/scheduler/scheduler_state_machine.cc#newcode510 cc/scheduler/scheduler_state_machine.cc:510: // and then periodically after that. Limiting to every ...
6 years, 11 months ago (2014-01-15 19:39:08 UTC) #2
brianderson
I initially tried keeping track of the number of ManageTiles calls in the previous frame ...
6 years, 11 months ago (2014-01-16 02:07:13 UTC) #3
epennerAtGoogle
On 2014/01/16 02:07:13, Brian Anderson wrote: > I initially tried keeping track of the number ...
6 years, 11 months ago (2014-01-16 03:01:24 UTC) #4
brianderson
Tests added. PTAL.
6 years, 11 months ago (2014-01-16 04:00:54 UTC) #5
enne (OOO)
lgtm I think a maybe better but more complicated solution might be to delay the ...
6 years, 11 months ago (2014-01-16 20:32:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/130483010/190001
6 years, 11 months ago (2014-01-16 22:17:03 UTC) #7
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 00:12:59 UTC) #8
Message was sent while issue was closed.
Change committed as 245388

Powered by Google App Engine
This is Rietveld 408576698