blob: fa669fad09471eae7f359bce399ddac04a7b458f [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://drafts.css-houdini.org/css-paint-api/#paintworkletglobalscope
[
Exposed=PaintWorklet,
Global=(Worklet,PaintWorklet)
] interface PaintWorkletGlobalScope : WorkletGlobalScope {
[Measure] readonly attribute unrestricted double devicePixelRatio;
// TODO(yukishiino): |paintCtor| should be of callback function type
// (should be: callback T = any ()).
[Measure, RaisesException] void registerPaint(DOMString name, CallbackFunctionTreatedAsScriptValue paintCtor);
};