struct Protocol::HeadlessExperimental::BeginFrame
- Protocol::HeadlessExperimental::BeginFrame
- Struct
- Value
- Object
Overview
Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also https://goo.gle/chrome-headless-rendering for more background.
Included Modules
- JSON::Serializable
- Protocol::Command
Defined in:
protocol/headless_experimental.crConstructors
Instance Method Summary
-
#has_damage : Bool
Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display.
-
#screenshot_data : String | Nil
Base64-encoded image data of the screenshot, if one was requested and successfully taken.
Constructor Detail
Instance Method Detail
Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future.
Base64-encoded image data of the screenshot, if one was requested and successfully taken. (Encoded as a base64 string when passed over JSON)