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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.cc

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/android/synchronous_compositor_output_surface.cc
diff --git a/content/renderer/android/synchronous_compositor_output_surface.cc b/content/renderer/android/synchronous_compositor_output_surface.cc
index 2c0d349104bcdae9b6a74a3f89acdf85dc074a67..9ee71b110e07cbb4d9786c87f15688acfa0b937f 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.cc
+++ b/content/renderer/android/synchronous_compositor_output_surface.cc
@@ -155,11 +155,11 @@ void SynchronousCompositorOutputSurface::Reshape(const gfx::Size& size,
}
void SynchronousCompositorOutputSurface::SwapBuffers(
- cc::CompositorFrame* frame) {
+ cc::CompositorFrame frame) {
DCHECK(CalledOnValidThread());
DCHECK(sync_client_);
if (!fallback_tick_running_) {
- sync_client_->SwapBuffers(output_surface_id_, frame);
+ sync_client_->SwapBuffers(output_surface_id_, std::move(frame));
DeliverMessages();
}
client_->DidSwapBuffers();

Powered by Google App Engine
This is Rietveld 408576698