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

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

Issue 2788893004: Renaming gpu swap buffer callbacks and the screenshot latency component. (Closed)
Patch Set: Updating android compositor Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/offscreen_browser_compositor_output_surface .h" 5 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 void OffscreenBrowserCompositorOutputSurface::OnReflectorChanged() { 187 void OffscreenBrowserCompositorOutputSurface::OnReflectorChanged() {
188 if (reflector_) { 188 if (reflector_) {
189 reflector_changed_ = true; 189 reflector_changed_ = true;
190 EnsureBackbuffer(); 190 EnsureBackbuffer();
191 } 191 }
192 } 192 }
193 193
194 void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete( 194 void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete(
195 const std::vector<ui::LatencyInfo>& latency_info) { 195 const std::vector<ui::LatencyInfo>& latency_info) {
196 RenderWidgetHostImpl::CompositorFrameDrawn(latency_info); 196 RenderWidgetHostImpl::OnGpuSwapBuffersCompleted(latency_info);
197 client_->DidReceiveSwapBuffersAck(); 197 client_->DidReceiveSwapBuffersAck();
198 } 198 }
199 199
200 } // namespace content 200 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698