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

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

Issue 161413002: Revert of Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | ui/aura/bench/bench_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ddafda0491764d4981b0189f2eba9abd516c88e..7cb51996d4fc94e9ac117a4d0302bc010836f7ff 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -138,8 +138,7 @@
if (!HasClient())
return;
IPC_BEGIN_MESSAGE_MAP(CompositorOutputSurface, message)
- IPC_MESSAGE_HANDLER(ViewMsg_UpdateVSyncParameters,
- OnUpdateVSyncParametersFromBrowser);
+ IPC_MESSAGE_HANDLER(ViewMsg_UpdateVSyncParameters, OnUpdateVSyncParameters);
IPC_MESSAGE_HANDLER(ViewMsg_SwapCompositorFrameAck, OnSwapAck);
IPC_MESSAGE_HANDLER(ViewMsg_ReclaimCompositorResources, OnReclaimResources);
#if defined(OS_ANDROID)
@@ -148,11 +147,10 @@
IPC_END_MESSAGE_MAP()
}
-void CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser(
- base::TimeTicks timebase,
- base::TimeDelta interval) {
- DCHECK(CalledOnValidThread());
- CommitVSyncParameters(timebase, interval);
+void CompositorOutputSurface::OnUpdateVSyncParameters(
+ base::TimeTicks timebase, base::TimeDelta interval) {
+ DCHECK(CalledOnValidThread());
+ OnVSyncParametersChanged(timebase, interval);
}
#if defined(OS_ANDROID)
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | ui/aura/bench/bench_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698