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

Unified Diff: components/mus/public/cpp/lib/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
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | components/mus/public/cpp/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/output_surface.cc
diff --git a/components/mus/public/cpp/lib/output_surface.cc b/components/mus/public/cpp/lib/output_surface.cc
index 086e290575fbadcf0bad5b4af7329dcc2baa5988..a0d796a85112a0b9e5e93b618c1d03db5a79584a 100644
--- a/components/mus/public/cpp/lib/output_surface.cc
+++ b/components/mus/public/cpp/lib/output_surface.cc
@@ -45,14 +45,14 @@ uint32_t OutputSurface::GetFramebufferCopyTextureFormat() {
return 0;
}
-void OutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
+void OutputSurface::SwapBuffers(cc::CompositorFrame frame) {
// TODO(fsamuel, rjkroege): We should probably throttle compositor frames.
client_->DidSwapBuffers();
// OutputSurface owns WindowSurface, and so if OutputSurface is
// destroyed then SubmitCompositorFrame's callback will never get called.
// Thus, base::Unretained is safe here.
surface_->SubmitCompositorFrame(
- cc::mojom::CompositorFrame::From(*frame),
+ cc::mojom::CompositorFrame::From(frame),
base::Bind(&OutputSurface::SwapBuffersComplete, base::Unretained(this)));
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | components/mus/public/cpp/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698