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

Unified Diff: cc/output/compositor_frame_metadata.h

Issue 2712983003: [cc] Set BeginFrame sequence numbers on CompositorFrames from Scheduler. (Closed)
Patch Set: sync Created 3 years, 10 months 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 | « no previous file | cc/scheduler/scheduler.h » ('j') | cc/scheduler/scheduler.h » ('J')
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 e383e5069dcd82c0f9c4a044fd4f38d6eabc4969..53906913a2669092664123a453bbd17686b93e1e 100644
--- a/cc/output/compositor_frame_metadata.h
+++ b/cc/output/compositor_frame_metadata.h
@@ -11,6 +11,7 @@
#include "cc/base/cc_export.h"
#include "cc/input/selection.h"
+#include "cc/output/begin_frame_args.h"
#include "cc/surfaces/surface_id.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/events/latency_info.h"
@@ -82,6 +83,13 @@ class CC_EXPORT CompositorFrameMetadata {
// dependencies have been resolved.
bool can_activate_before_dependencies = true;
+ // Source identifier and sequence number of the BeginFrame that this
+ // CompositorFrame is in response to and sequence number that it confirms.
+ uint32_t begin_frame_source_id = 0;
+ uint64_t begin_frame_sequence_number = BeginFrameArgs::kInvalidFrameNumber;
+ uint64_t latest_confirmed_begin_frame_sequence_number =
+ BeginFrameArgs::kInvalidFrameNumber;
brianderson 2017/02/24 01:08:36 Can this be an instance of the BeginFrameAck struc
Eric Seckler 2017/02/27 11:50:32 Done. Was trying to avoid overhead of the unused f
+
private:
CompositorFrameMetadata(const CompositorFrameMetadata& other);
CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
« no previous file with comments | « no previous file | cc/scheduler/scheduler.h » ('j') | cc/scheduler/scheduler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698