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

Unified Diff: cc/output/compositor_frame_metadata.h

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 comments 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_metadata.h
diff --git a/cc/output/compositor_frame_metadata.h b/cc/output/compositor_frame_metadata.h
index 2ac6a334d83720cc1cfb5633109136cddedd92bd..5f5faa672e60243df024f55033f7f28587da4d92 100644
--- a/cc/output/compositor_frame_metadata.h
+++ b/cc/output/compositor_frame_metadata.h
@@ -23,9 +23,13 @@ namespace cc {
class CC_EXPORT CompositorFrameMetadata {
public:
CompositorFrameMetadata();
- CompositorFrameMetadata(const CompositorFrameMetadata& other);
+ CompositorFrameMetadata(CompositorFrameMetadata&& other);
~CompositorFrameMetadata();
+ CompositorFrameMetadata& operator=(CompositorFrameMetadata&& other);
+
+ CompositorFrameMetadata Clone() const;
+
// The device scale factor used to generate this compositor frame.
float device_scale_factor;
@@ -65,6 +69,9 @@ class CC_EXPORT CompositorFrameMetadata {
// This is the set of Surfaces that are referenced by this frame.
std::vector<SurfaceId> referenced_surfaces;
+
+ private:
+ CompositorFrameMetadata(const CompositorFrameMetadata& other);
danakj 2016/06/24 21:45:18 also explicitly delete the operator= please. Liter
Fady Samuel 2016/06/24 22:24:37 Done.
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698