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

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, 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 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(CompositorFrameMetadata&& other);
26 CompositorFrameMetadata(const CompositorFrameMetadata& other); 27 CompositorFrameMetadata(const CompositorFrameMetadata& other);
danakj 2016/06/24 20:20:43 can you make this private then, and "delete" the o
Fady Samuel 2016/06/24 21:31:15 Done.
27 ~CompositorFrameMetadata(); 28 ~CompositorFrameMetadata();
28 29
30 CompositorFrameMetadata& operator=(CompositorFrameMetadata&& other);
31
32 CompositorFrameMetadata Clone() const;
33
29 // The device scale factor used to generate this compositor frame. 34 // The device scale factor used to generate this compositor frame.
30 float device_scale_factor; 35 float device_scale_factor;
31 36
32 // Scroll offset and scale of the root layer. This can be used for tasks 37 // Scroll offset and scale of the root layer. This can be used for tasks
33 // like positioning windowed plugins. 38 // like positioning windowed plugins.
34 gfx::Vector2dF root_scroll_offset; 39 gfx::Vector2dF root_scroll_offset;
35 float page_scale_factor; 40 float page_scale_factor;
36 41
37 // These limits can be used together with the scroll/scale fields above to 42 // These limits can be used together with the scroll/scale fields above to
38 // determine if scrolling/scaling in a particular direction is possible. 43 // determine if scrolling/scaling in a particular direction is possible.
(...skipping 24 matching lines...) Expand all
63 // namespace as the current Surface). 68 // namespace as the current Surface).
64 std::vector<uint32_t> satisfies_sequences; 69 std::vector<uint32_t> satisfies_sequences;
65 70
66 // This is the set of Surfaces that are referenced by this frame. 71 // This is the set of Surfaces that are referenced by this frame.
67 std::vector<SurfaceId> referenced_surfaces; 72 std::vector<SurfaceId> referenced_surfaces;
68 }; 73 };
69 74
70 } // namespace cc 75 } // namespace cc
71 76
72 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 77 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698