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

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: 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/output/compositor_frame.h ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/compositor_frame.cc
diff --git a/cc/output/compositor_frame.cc b/cc/output/compositor_frame.cc
index f096a387b5cc82feb88cc12cd32cfcfa7e0b1d2f..82479cf3b43ab363fb4cd1b458754f10e8da1429 100644
--- a/cc/output/compositor_frame.cc
+++ b/cc/output/compositor_frame.cc
@@ -8,12 +8,10 @@ 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
« no previous file with comments | « cc/output/compositor_frame.h ('k') | cc/output/compositor_frame_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698