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