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

Side by Side Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.idl

Issue 2868323003: Canvas2D on WebGL texture (Closed)
Patch Set: Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://html.spec.whatwg.org/multipage/scripting.html#the-offscreencanvas-int erface 5 // https://html.spec.whatwg.org/multipage/scripting.html#the-offscreencanvas-int erface
6 6
7 [ 7 [
8 Constructor([EnforceRange] unsigned long width, [EnforceRange] unsigned long height), 8 Constructor([EnforceRange] unsigned long width, [EnforceRange] unsigned long height),
9 Exposed=(Window,Worker), 9 Exposed=(Window,Worker),
10 RuntimeEnabled=ExperimentalCanvasFeatures, 10 RuntimeEnabled=ExperimentalCanvasFeatures,
11 MeasureAs=OffscreenCanvas, 11 MeasureAs=OffscreenCanvas,
12 ] interface OffscreenCanvas : EventTarget { 12 ] interface OffscreenCanvas : EventTarget {
13 [EnforceRange] attribute unsigned long width; 13 [EnforceRange] attribute unsigned long width;
14 [EnforceRange] attribute unsigned long height; 14 [EnforceRange] attribute unsigned long height;
15 15
16 [CallWith=ScriptState, RaisesException] ImageBitmap transferToImageBitmap(); 16 [CallWith=ScriptState, RaisesException] ImageBitmap transferToImageBitmap();
17 [MeasureAs=OffscreenCanvasConvertToBlob, RaisesException, CallWith=ScriptSta te] Promise<Blob> convertToBlob(optional ImageEncodeOptions options); 17 [MeasureAs=OffscreenCanvasConvertToBlob, RaisesException, CallWith=ScriptSta te] Promise<Blob> convertToBlob(optional ImageEncodeOptions options);
18
19 // GetContext provided by modules/offscreencanvas/OffscreenCanvasModules.idl
18 }; 20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698