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

Unified Diff: cc/output/compositor_frame_metadata.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_metadata.h ('k') | cc/output/delegating_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/compositor_frame_metadata.cc
diff --git a/cc/output/compositor_frame_metadata.cc b/cc/output/compositor_frame_metadata.cc
index d77cca006d54508a2a13274973fea426413659ca..a98eee270f33bc7f2ed6f6d017a572c4249189d9 100644
--- a/cc/output/compositor_frame_metadata.cc
+++ b/cc/output/compositor_frame_metadata.cc
@@ -16,9 +16,20 @@ CompositorFrameMetadata::CompositorFrameMetadata()
root_background_color(SK_ColorWHITE) {}
CompositorFrameMetadata::CompositorFrameMetadata(
- const CompositorFrameMetadata& other) = default;
+ CompositorFrameMetadata&& other) = default;
CompositorFrameMetadata::~CompositorFrameMetadata() {
}
+CompositorFrameMetadata& CompositorFrameMetadata::operator=(
+ CompositorFrameMetadata&& other) = default;
+
+CompositorFrameMetadata CompositorFrameMetadata::Clone() const {
+ CompositorFrameMetadata metadata(*this);
+ return metadata;
+}
+
+CompositorFrameMetadata::CompositorFrameMetadata(
+ const CompositorFrameMetadata& other) = default;
+
} // namespace cc
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/output/delegating_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698