Skip to content

Commit

Permalink
Add Blink flag and IDLs for Delegated Ink Trail
Browse files Browse the repository at this point in the history
Create a Blink flag to hide upcoming feature behind, and add skeleton
IDLs, .cc and .h files for the feature.

TL;DR of feature: Provide developers a simple JS API to improve inking
latency. Latency is reduced by forwarding points from browser to GPU
process more directly, and then drawing them on the swapchain just
before the swap occurs, connecting them to the point most recently
rendered by the app.

Explainer here: https://github.com/WICG/ink-enhancement
i2p: https://groups.google.com/a/chromium.org/d/msg/blink-dev/JeGBzAfR_Bw/Ppo1u7ofBgAJ

Bug: 1052145
Change-Id: Ib0e1b1f6c4fbeaee551ca37770dbd72bdeeaa6b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161932
Reviewed-by: Navid Zolghadr <[email protected]>
Reviewed-by: Daniel Libby <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Commit-Queue: Mario Bianucci <[email protected]>
Cr-Commit-Position: refs/heads/master@{#763903}
  • Loading branch information
mabian-ms authored and chromium-wpt-export-bot committed Apr 29, 2020
1 parent 31da90b commit c07deab
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test(() => {
assert_implements(typeof navigator.ink !== "undefined", 'ink is not supported');
}, "navigator needs to support ink to run this test.");

promise_test(t => {
return promise_rejects_js(t, TypeError, navigator.ink.requestPresenter('bad-type'));
}, "Receive rejected promise for a bad type.");

promise_test(() => {
return navigator.ink.requestPresenter('delegated-ink-trail');
}, "Received fulfilled promise for a good type.");

0 comments on commit c07deab

Please sign in to comment.