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

Issue 2887453002: SurfaceDependencyTracker: Only observe BeginFrames if a deadline is needed (Closed)

Created:
3 years, 7 months ago by Fady Samuel
Modified:
3 years, 6 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SurfaceDependencyTracker: Only observe BeginFrames if a deadline is needed Always observing deadlines could potentially prevent the CPU from idling because that requires a timer to always fire. This CL only observes BeginFrames if there are unresolved dependencies. A new object type, SurfaceDependencyDeadline is introduced that observes BeginFrames within its scope and reports back to SurfaceDependencyTracker when a deadline hits. The deadline must be canceled prior to going out of scope or else a DCHECK will fail. BUG=722064, 672962, 727162 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2887453002 Cr-Commit-Position: refs/heads/master@{#475601} Committed: https://chromium.googlesource.com/chromium/src/+/505078044cfca8e67070b4daed6e6157d7641774

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated #

Patch Set 3 : Removed BeginFrameSource include #

Patch Set 4 : Fixed build #

Patch Set 5 : Fixed an incorrect DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -50 lines) Patch
M cc/surfaces/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A cc/surfaces/surface_dependency_deadline.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
A cc/surfaces/surface_dependency_deadline.cc View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
M cc/surfaces/surface_dependency_tracker.h View 1 2 4 chunks +10 lines, -18 lines 0 comments Download
M cc/surfaces/surface_dependency_tracker.cc View 1 7 chunks +8 lines, -32 lines 0 comments Download

Messages

Total messages: 34 (28 generated)
Fady Samuel
PTAL Vlad!
3 years, 7 months ago (2017-05-15 15:32:39 UTC) #4
vmpstr
look good with the suggestion below. Theoretically I agree with the patch, but do you ...
3 years, 7 months ago (2017-05-15 15:49:39 UTC) #6
Fady Samuel
PTAL Vlad, once you're back. Note that this addresses some regressions. https://codereview.chromium.org/2887453002/diff/1/cc/surfaces/surface_dependency_tracker.cc File cc/surfaces/surface_dependency_tracker.cc (right): ...
3 years, 6 months ago (2017-05-29 17:46:54 UTC) #12
vmpstr
That's a really nice class, thanks! lgtm.
3 years, 6 months ago (2017-05-30 18:12:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887453002/80001
3 years, 6 months ago (2017-05-30 18:16:33 UTC) #31
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 18:21:15 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/505078044cfca8e67070b4daed6e...

Powered by Google App Engine
This is Rietveld 408576698