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

Unified Diff: content/renderer/gpu/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
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | content/test/mailbox_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index 2c73f695474c8d9e2fc05e2abb8e9e0fc0eb1964..a240b19736e1d0ce8c85197b9b6102cbfe2e005a 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -103,7 +103,7 @@ void CompositorOutputSurface::DetachFromClient() {
cc::OutputSurface::DetachFromClient();
}
-void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
+void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
{
std::unique_ptr<FrameSwapMessageQueue::SendMessageScope>
send_message_scope =
@@ -114,7 +114,7 @@ void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) {
FrameSwapMessageQueue::TransferMessages(&messages,
&messages_to_deliver_with_frame);
Send(new ViewHostMsg_SwapCompositorFrame(routing_id_, output_surface_id_,
- *frame,
+ frame,
messages_to_deliver_with_frame));
// ~send_message_scope.
}
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.h ('k') | content/test/mailbox_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698