-
public final class BeginFrameRequestRequest object containing input parameters for the HeadlessExperimentalDomain.beginFrame command.
-
-
Field Summary
Fields Modifier and Type Field Description private final DoubleframeTimeTicksprivate final Doubleintervalprivate final BooleannoDisplayUpdatesprivate final ScreenshotParamsscreenshot
-
Constructor Summary
Constructors Constructor Description BeginFrameRequest(Double frameTimeTicks, Double interval, Boolean noDisplayUpdates, ScreenshotParams screenshot)
-
Method Summary
Modifier and Type Method Description final Doublecomponent1()final Doublecomponent2()final Booleancomponent3()final ScreenshotParamscomponent4()final BeginFrameRequestcopy(Double frameTimeTicks, Double interval, Boolean noDisplayUpdates, ScreenshotParams screenshot)final DoublegetFrameTimeTicks()Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). final DoublegetInterval()The interval between BeginFrames that is reported to the compositor, in milliseconds. final BooleangetNoDisplayUpdates()Whether updates should not be committed and drawn onto the display. final ScreenshotParamsgetScreenshot()If set, a screenshot of the frame will be captured and returned in the response. -
-
Constructor Detail
-
BeginFrameRequest
BeginFrameRequest(Double frameTimeTicks, Double interval, Boolean noDisplayUpdates, ScreenshotParams screenshot)
-
-
Method Detail
-
component1
final Double component1()
-
component2
final Double component2()
-
component3
final Boolean component3()
-
component4
final ScreenshotParams component4()
-
copy
final BeginFrameRequest copy(Double frameTimeTicks, Double interval, Boolean noDisplayUpdates, ScreenshotParams screenshot)
-
getFrameTimeTicks
final Double getFrameTimeTicks()
Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used.
-
getInterval
final Double getInterval()
The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.
-
getNoDisplayUpdates
final Boolean getNoDisplayUpdates()
Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots.
-
getScreenshot
final ScreenshotParams getScreenshot()
If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned.
-
-
-
-