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> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 std::vector<ui::LatencyInfo> latency_info; | 76 std::vector<ui::LatencyInfo> latency_info; |
77 | 77 |
78 // A set of SurfaceSequences that this frame satisfies (always in the same | 78 // A set of SurfaceSequences that this frame satisfies (always in the same |
79 // namespace as the current Surface). | 79 // namespace as the current Surface). |
80 std::vector<uint32_t> satisfies_sequences; | 80 std::vector<uint32_t> satisfies_sequences; |
81 | 81 |
82 // This is the set of Surfaces that are referenced by this frame. | 82 // This is the set of Surfaces that are referenced by this frame. |
83 std::vector<SurfaceId> referenced_surfaces; | 83 std::vector<SurfaceId> referenced_surfaces; |
84 | 84 |
| 85 // Source identifier of the BeginFrame that this frame is in response to. |
| 86 uint64_t begin_frame_source_id = 0; |
| 87 // Sequence number of the BeginFrame that this frame is in response to. |
| 88 uint64_t begin_frame_number = 0; |
| 89 // Sequence number of the oldest frame that contributed to this frame's data. |
| 90 uint64_t oldest_incorporated_frame = 0; |
| 91 |
85 private: | 92 private: |
86 CompositorFrameMetadata(const CompositorFrameMetadata& other); | 93 CompositorFrameMetadata(const CompositorFrameMetadata& other); |
87 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; | 94 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; |
88 }; | 95 }; |
89 | 96 |
90 } // namespace cc | 97 } // namespace cc |
91 | 98 |
92 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 99 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
OLD | NEW |