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

Unified Diff: cc/output/compositor_frame.cc

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce android_webview changes 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: cc/output/compositor_frame.cc
diff --git a/cc/output/compositor_frame.cc b/cc/output/compositor_frame.cc
index f096a387b5cc82feb88cc12cd32cfcfa7e0b1d2f..b0430a06f7a0c4b70879a803cae3d8953fafedc5 100644
--- a/cc/output/compositor_frame.cc
+++ b/cc/output/compositor_frame.cc
@@ -4,16 +4,16 @@
#include "cc/output/compositor_frame.h"
+#include "base/memory/ptr_util.h"
danakj 2016/06/24 18:35:10 not used
Fady Samuel 2016/06/24 20:00:24 Done.
+
namespace cc {
CompositorFrame::CompositorFrame() {}
+CompositorFrame::CompositorFrame(CompositorFrame&& other) = default;
+
CompositorFrame::~CompositorFrame() {}
-void CompositorFrame::AssignTo(CompositorFrame* target) {
- target->delegated_frame_data = std::move(delegated_frame_data);
- target->gl_frame_data = std::move(gl_frame_data);
- target->metadata = metadata;
-}
+CompositorFrame& CompositorFrame::operator=(CompositorFrame&& other) = default;
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698