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

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: 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/layers/texture_layer_unittest.cc ('k') | cc/output/compositor_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/compositor_frame.h
diff --git a/cc/output/compositor_frame.h b/cc/output/compositor_frame.h
index e5e0c660f6faeb3930d5f3339bb686b380e605bd..127685598e6db560a2b4cfcd9bd9cd9f62f6f08c 100644
--- a/cc/output/compositor_frame.h
+++ b/cc/output/compositor_frame.h
@@ -16,19 +16,24 @@
namespace cc {
// A CompositorFrame struct contains the complete output of a compositor meant
-// for display.
-// TODO(fsamuel): Write more here.
+// for display. A CompositorFrame consists of a series of DrawQuads that
+// describe placement of textures, solid colors, overlays and other
+// CompositorFrames within an area specified by the parent compositor. DrawQuads
+// may share common data referred to as SharedQuadState. A CompositorFrame also
+// has |metadata| that refers to global graphical state associated with this
+// frame.
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);
};
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/output/compositor_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698