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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really revert task runner changes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index 5546d58cd3dc09838022be2ff1803af88aec88c6..7ca303d16e94cbb848a46b34f1044b7ab48791b2 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -170,7 +170,13 @@ void CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser(
base::TimeTicks timebase,
base::TimeDelta interval) {
DCHECK(client_thread_checker_.CalledOnValidThread());
- CommitVSyncParameters(timebase, interval);
+ TRACE_EVENT2("cc",
+ "CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser",
+ "timebase",
+ (timebase - base::TimeTicks()).InSecondsF(),
+ "interval",
+ interval.InSecondsF());
+ client_->CommitVSyncParameters(timebase, interval);
}
void CompositorOutputSurface::OnSwapAck(uint32_t output_surface_id,

Powered by Google App Engine
This is Rietveld 408576698