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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/compositor_frame_metadata.h
diff --git a/cc/output/compositor_frame_metadata.h b/cc/output/compositor_frame_metadata.h
index fb41651635b39fb291b28d896a801185f659a919..106d965299252cf97670d621f1113489d440cc32 100644
--- a/cc/output/compositor_frame_metadata.h
+++ b/cc/output/compositor_frame_metadata.h
@@ -82,6 +82,13 @@ class CC_EXPORT CompositorFrameMetadata {
// This is the set of Surfaces that are referenced by this frame.
std::vector<SurfaceId> referenced_surfaces;
+ // Source identifier of the BeginFrame that this frame is in response to.
+ uint64_t begin_frame_source_id = 0;
+ // Sequence number of the BeginFrame that this frame is in response to.
+ uint64_t begin_frame_number = 0;
+ // Sequence number of the latest BeginFrame that is confirmed by this frame.
+ uint64_t latest_confirmed_frame = 0;
+
private:
CompositorFrameMetadata(const CompositorFrameMetadata& other);
CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
« 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