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

Unified Diff: cc/output/compositor_frame_metadata.h

Issue 2789773003: Send FrameSwapMessageQueue's messages with a separate IPC (Closed)
Patch Set: rebased Created 3 years, 9 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
Index: cc/output/compositor_frame_metadata.h
diff --git a/cc/output/compositor_frame_metadata.h b/cc/output/compositor_frame_metadata.h
index d4ad80add31ec6ecec908e18e82432cff16e1a55..8aa5b5141ce493b84e2e88aef9f1c29005ced5d4 100644
--- a/cc/output/compositor_frame_metadata.h
+++ b/cc/output/compositor_frame_metadata.h
@@ -92,6 +92,11 @@ class CC_EXPORT CompositorFrameMetadata {
// BeginFrameAck for the BeginFrame that this CompositorFrame answers.
BeginFrameAck begin_frame_ack;
+ // Once the display compositor processes a frame containing a non-zero frame
+ // token, the token is sent to embedder of the frame. This is helpful when
+ // the embedder wants to do something after a particular frame is processed.
+ uint32_t frame_token = 0;
+
private:
CompositorFrameMetadata(const CompositorFrameMetadata& other);
CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;

Powered by Google App Engine
This is Rietveld 408576698