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

Side by Side Diff: cc/output/compositor_frame_metadata.h

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years 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
« no previous file with comments | « cc/output/begin_frame_args_unittest.cc ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 latest BeginFrame that is confirmed by this frame.
90 uint64_t latest_confirmed_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_
OLDNEW
« no previous file with comments | « cc/output/begin_frame_args_unittest.cc ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698