OLD | NEW |
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 Loading... |
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 |
OLD | NEW |