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

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2411793008: Adds BeginFrameControl via DevTools.
Patch Set: BFC prototype v2 with allow_latency_opts and waiting for BFOs. Created 4 years, 1 month 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
« no previous file with comments | « services/ui/ws/gpu_compositor_frame_sink.cc ('k') | ui/aura/mus/mus_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/browser_protocol.json
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
index 55929837c250c94c8a0a0cf6ad2bd2c6683aa10a..5a18a1c17ba50fe5eb7dd0ab3e6cf95aa5d0889f 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -829,6 +829,32 @@
{ "name": "budget", "type": "integer", "optional": true, "description": "If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent." }
],
"experimental": true
+ },
+ {
+ "name": "enableBeginFrameControl",
+ "description": "Enables a mode in which the browser's BeginFrameSource is disconnected from the window of the page and control over BeginFrames is given to the DevToolsClient. Only supported on Aura and assumes that the page does not share its window with other pages/tabs.",
+ "experimental": true,
+ "handlers": ["browser"]
+ },
+ {
+ "name": "disableBeginFrameControl",
+ "description": "Gives back control over BeginFrames to the browser's BeginFrameSource.",
+ "experimental": true,
+ "handlers": ["browser"]
+ },
+ {
+ "name": "sendBeginFrame",
+ "description": "Sends a BeginFrame to the page and forces it to draw a fresh frame. A frameCommitted event with the returned frameId be sent when the frame has reached the screen. Requires EnableBeginFrameControl.",
+ "experimental": true,
+ "parameters": [
+ { "name": "interval", "type": "number" },
+ { "name": "frameTime", "type": "number", "optional": true, "description": "If not set, the current time will be used." },
+ { "name": "deadline", "type": "number", "optional": true, "description": "If not set, the deadline will be calculated from the specified interval." }
+ ],
+ "returns": [
+ { "name": "frameId", "type": "string", "description": "A unique identifier for the frame that will be produced as a result of the BeginFrame message." }
+ ],
+ "handlers": ["browser"]
}
],
"events": [
@@ -836,6 +862,24 @@
"name": "virtualTimeBudgetExpired",
"experimental": true,
"description": "Notification sent after the virual time budget for the current VirtualTimePolicy has run out."
+ },
+ {
+ "name": "setNeedsBeginFrame",
+ "description": "Indicates whether the page is asking for another BeginFrame message.",
+ "experimental": true,
+ "parameters": [
+ { "name": "needsBeginFrame", "type": "boolean" }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "frameCommitted",
+ "description": "Notification sent after the frame corresponding to a SendBeginFrame command has been committed to the screen.",
+ "experimental": true,
+ "parameters": [
+ { "name": "frameId", "type": "string" }
+ ],
+ "handlers": ["browser"]
}
]
},
« no previous file with comments | « services/ui/ws/gpu_compositor_frame_sink.cc ('k') | ui/aura/mus/mus_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698