viz: Define a type for |frame_token| |
|
Issue descriptionCompositorFrameMetadata::frame_token is a uint32_t, which is incremented for every frame, and can wrap around back to 1. So directly comparing these frame-tokens wouldn't always work. There is a FrameTokenGT() helper function that can be used. But it might be better to define a custom type for it, so that accidental comparison cannot happen. |
|
►
Sign in to add a comment |
|
Comment 1 by samans@chromium.org
, Jun 19 2018