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

Side by Side Diff: content/browser/compositor/browser_compositor_output_surface.cc

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 041e3518 Cleaned up. Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/compositor/browser_compositor_output_surface.h" 5 #include "content/browser/compositor/browser_compositor_output_surface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 void BrowserCompositorOutputSurface::OnUpdateVSyncParameters( 90 void BrowserCompositorOutputSurface::OnUpdateVSyncParameters(
91 base::TimeTicks timebase, 91 base::TimeTicks timebase,
92 base::TimeDelta interval) { 92 base::TimeDelta interval) {
93 DCHECK(CalledOnValidThread()); 93 DCHECK(CalledOnValidThread());
94 DCHECK(HasClient()); 94 DCHECK(HasClient());
95 OnVSyncParametersChanged(timebase, interval); 95 OnVSyncParametersChanged(timebase, interval);
96 compositor_message_loop_->PostTask( 96 compositor_message_loop_->PostTask(
97 FROM_HERE, 97 FROM_HERE,
98 base::Bind(&ui::Compositor::OnUpdateVSyncParameters, 98 base::Bind(&ui::Compositor::OnUpdateVSyncParameters,
99 compositor_, timebase, interval)); 99 compositor_,
100 timebase,
101 interval,
102 false));
100 } 103 }
101 104
102 void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) { 105 void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) {
103 reflector_ = reflector; 106 reflector_ = reflector;
104 } 107 }
105 108
106 } // namespace content 109 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698