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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
11 #include "cc/output/viewport_selection_bound.h" | 11 #include "cc/output/viewport_selection_bound.h" |
12 #include "cc/surfaces/surface_id.h" | |
13 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
14 #include "ui/events/latency_info.h" | 13 #include "ui/events/latency_info.h" |
15 #include "ui/gfx/geometry/size_f.h" | 14 #include "ui/gfx/geometry/size_f.h" |
16 #include "ui/gfx/geometry/vector2d_f.h" | 15 #include "ui/gfx/geometry/vector2d_f.h" |
17 | 16 |
18 namespace cc { | 17 namespace cc { |
19 | 18 |
20 class CC_EXPORT CompositorFrameMetadata { | 19 class CC_EXPORT CompositorFrameMetadata { |
21 public: | 20 public: |
22 CompositorFrameMetadata(); | 21 CompositorFrameMetadata(); |
(...skipping 28 matching lines...) Expand all Loading... |
51 | 50 |
52 // Provides selection region updates relative to the current viewport. If the | 51 // Provides selection region updates relative to the current viewport. If the |
53 // selection is empty or otherwise unused, the bound types will indicate such. | 52 // selection is empty or otherwise unused, the bound types will indicate such. |
54 ViewportSelection selection; | 53 ViewportSelection selection; |
55 | 54 |
56 std::vector<ui::LatencyInfo> latency_info; | 55 std::vector<ui::LatencyInfo> latency_info; |
57 | 56 |
58 // A set of SurfaceSequences that this frame satisfies (always in the same | 57 // A set of SurfaceSequences that this frame satisfies (always in the same |
59 // namespace as the current Surface). | 58 // namespace as the current Surface). |
60 std::vector<uint32_t> satisfies_sequences; | 59 std::vector<uint32_t> satisfies_sequences; |
61 | |
62 // This is the set of Surfaces that are referenced by this frame. | |
63 std::vector<SurfaceId> referenced_surfaces; | |
64 }; | 60 }; |
65 | 61 |
66 } // namespace cc | 62 } // namespace cc |
67 | 63 |
68 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 64 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
OLD | NEW |