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

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: Fix reflector 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..dc37f329a1e6abeaad6d2a9fec6fba797bf2c7a2 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"
+
namespace cc {
+std::unique_ptr<CompositorFrame> CompositorFrame::Create() {
+ return base::WrapUnique(new CompositorFrame());
danakj 2016/06/23 20:34:41 this would have been better done as base::MakeUniq
+}
+
CompositorFrame::CompositorFrame() {}
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;
-}
-
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698