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

Side by Side Diff: services/ui/surfaces/direct_output_surface.cc

Issue 2403373002: cc: Clean up OutputSurfaceClient. (Closed)
Patch Set: osclient: rebase Created 4 years, 2 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
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 "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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | services/ui/surfaces/direct_output_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698