/// <summary> /// 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.gl/3zHXhB for more background. /// </summary> /// <param name = "frameTimeTicks">Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, public async System.Threading.Tasks.Task <BeginFrameResponse> BeginFrameAsync(long?frameTimeTicks = null, long?interval = null, bool?noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null) { ValidateBeginFrame(frameTimeTicks, interval, noDisplayUpdates, screenshot); var dict = new System.Collections.Generic.Dictionary <string, object>(); if (frameTimeTicks.HasValue) { dict.Add("frameTimeTicks", frameTimeTicks.Value); } if (interval.HasValue) { dict.Add("interval", interval.Value); } if (noDisplayUpdates.HasValue) { dict.Add("noDisplayUpdates", noDisplayUpdates.Value); } if ((screenshot) != (null)) { dict.Add("screenshot", screenshot.ToDictionary()); } var methodResult = await _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.beginFrame", dict); return(methodResult.DeserializeJson <BeginFrameResponse>()); }
partial void ValidateBeginFrame(long?frameTimeTicks = null, long?interval = null, bool?noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null);