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

Unified Diff: cc/output/compositor_frame.h

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.h
diff --git a/cc/output/compositor_frame.h b/cc/output/compositor_frame.h
index e5e0c660f6faeb3930d5f3339bb686b380e605bd..50eacc3701edff2cfe586ca366a6a86c5272e370 100644
--- a/cc/output/compositor_frame.h
+++ b/cc/output/compositor_frame.h
@@ -21,14 +21,15 @@ namespace cc {
class CC_EXPORT CompositorFrame {
public:
CompositorFrame();
+ CompositorFrame(CompositorFrame&& other);
~CompositorFrame();
+ CompositorFrame& operator=(CompositorFrame&& other);
+
CompositorFrameMetadata metadata;
std::unique_ptr<DelegatedFrameData> delegated_frame_data;
std::unique_ptr<GLFrameData> gl_frame_data;
- void AssignTo(CompositorFrame* target);
-
private:
DISALLOW_COPY_AND_ASSIGN(CompositorFrame);
};

Powered by Google App Engine
This is Rietveld 408576698