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

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: 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.h
diff --git a/cc/output/compositor_frame.h b/cc/output/compositor_frame.h
index e5e0c660f6faeb3930d5f3339bb686b380e605bd..3a47f90ef9c569102f6f58df1e658650745721ab 100644
--- a/cc/output/compositor_frame.h
+++ b/cc/output/compositor_frame.h
@@ -20,14 +20,16 @@ namespace cc {
// TODO(fsamuel): Write more here.
class CC_EXPORT CompositorFrame {
public:
- CompositorFrame();
~CompositorFrame();
+ static std::unique_ptr<CompositorFrame> Create();
danakj 2016/06/23 20:34:41 Please just leave the constructor public and drop
+
CompositorFrameMetadata metadata;
std::unique_ptr<DelegatedFrameData> delegated_frame_data;
std::unique_ptr<GLFrameData> gl_frame_data;
- void AssignTo(CompositorFrame* target);
+ protected:
piman 2016/06/23 19:30:32 How about private? I don't think we want to have c
danakj 2016/06/23 20:34:41 I'd rather just not have a Create() method at all.
Fady Samuel 2016/06/23 23:41:00 Done.
+ CompositorFrame();
private:
DISALLOW_COPY_AND_ASSIGN(CompositorFrame);

Powered by Google App Engine
This is Rietveld 408576698