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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "cc/base/cc_export.h" 12 #include "cc/base/cc_export.h"
13 #include "cc/input/selection.h" 13 #include "cc/input/selection.h"
14 #include "cc/surfaces/surface_id.h" 14 #include "cc/surfaces/surface_id.h"
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "ui/events/latency_info.h" 16 #include "ui/events/latency_info.h"
17 #include "ui/gfx/geometry/size_f.h" 17 #include "ui/gfx/geometry/size_f.h"
18 #include "ui/gfx/geometry/vector2d_f.h" 18 #include "ui/gfx/geometry/vector2d_f.h"
19 #include "ui/gfx/selection_bound.h" 19 #include "ui/gfx/selection_bound.h"
20 20
21 namespace cc { 21 namespace cc {
22 22
23 class CC_EXPORT CompositorFrameMetadata { 23 class CC_EXPORT CompositorFrameMetadata {
24 public: 24 public:
25 CompositorFrameMetadata(); 25 CompositorFrameMetadata();
26 CompositorFrameMetadata(const CompositorFrameMetadata& other); 26 CompositorFrameMetadata(CompositorFrameMetadata&& other);
27 ~CompositorFrameMetadata(); 27 ~CompositorFrameMetadata();
28 28
29 CompositorFrameMetadata& operator=(CompositorFrameMetadata&& other);
30
31 CompositorFrameMetadata Clone() const;
32
29 // The device scale factor used to generate this compositor frame. 33 // The device scale factor used to generate this compositor frame.
30 float device_scale_factor; 34 float device_scale_factor;
31 35
32 // Scroll offset and scale of the root layer. This can be used for tasks 36 // Scroll offset and scale of the root layer. This can be used for tasks
33 // like positioning windowed plugins. 37 // like positioning windowed plugins.
34 gfx::Vector2dF root_scroll_offset; 38 gfx::Vector2dF root_scroll_offset;
35 float page_scale_factor; 39 float page_scale_factor;
36 40
37 // These limits can be used together with the scroll/scale fields above to 41 // These limits can be used together with the scroll/scale fields above to
38 // determine if scrolling/scaling in a particular direction is possible. 42 // determine if scrolling/scaling in a particular direction is possible.
(...skipping 19 matching lines...) Expand all
58 Selection<gfx::SelectionBound> selection; 62 Selection<gfx::SelectionBound> selection;
59 63
60 std::vector<ui::LatencyInfo> latency_info; 64 std::vector<ui::LatencyInfo> latency_info;
61 65
62 // A set of SurfaceSequences that this frame satisfies (always in the same 66 // A set of SurfaceSequences that this frame satisfies (always in the same
63 // namespace as the current Surface). 67 // namespace as the current Surface).
64 std::vector<uint32_t> satisfies_sequences; 68 std::vector<uint32_t> satisfies_sequences;
65 69
66 // This is the set of Surfaces that are referenced by this frame. 70 // This is the set of Surfaces that are referenced by this frame.
67 std::vector<SurfaceId> referenced_surfaces; 71 std::vector<SurfaceId> referenced_surfaces;
72
73 private:
74 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.
68 }; 75 };
69 76
70 } // namespace cc 77 } // namespace cc
71 78
72 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 79 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698