| 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 "services/ui/surfaces/direct_output_surface.h" | 5 #include "services/ui/surfaces/direct_output_surface.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 void DirectOutputSurface::OnVSyncParametersUpdated( | 110 void DirectOutputSurface::OnVSyncParametersUpdated( |
| 111 const base::TimeTicks& timebase, | 111 const base::TimeTicks& timebase, |
| 112 const base::TimeDelta& interval) { | 112 const base::TimeDelta& interval) { |
| 113 // TODO(brianderson): We should not be receiving 0 intervals. | 113 // TODO(brianderson): We should not be receiving 0 intervals. |
| 114 synthetic_begin_frame_source_->OnUpdateVSyncParameters( | 114 synthetic_begin_frame_source_->OnUpdateVSyncParameters( |
| 115 timebase, | 115 timebase, |
| 116 interval.is_zero() ? cc::BeginFrameArgs::DefaultInterval() : interval); | 116 interval.is_zero() ? cc::BeginFrameArgs::DefaultInterval() : interval); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void DirectOutputSurface::OnSwapBuffersComplete() { | 119 void DirectOutputSurface::OnSwapBuffersComplete() { |
| 120 client_->DidSwapBuffersComplete(); | 120 client_->DidReceiveSwapBuffersAck(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace ui | 123 } // namespace ui |
| OLD | NEW |