Skip to content

Commit

Permalink
Add isContextLost to offscreencanvas API
Browse files Browse the repository at this point in the history
Bug: 1164059

Change-Id: I5a6e1434d93562bf832a4a67b3a1f96f0342e99e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2977014
Reviewed-by: Aaron Krajeski <aaronhk@chromium.org>
Commit-Queue: Yi Xu <yiyix@chromium.org>
Cr-Commit-Position: refs/heads/master@{#895173}
  • Loading branch information
yiyix authored and Chromium LUCI CQ committed Jun 23, 2021
1 parent 186407a commit 9dce13e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[RuntimeEnabled=Canvas2dLayers] void endLayer(); // pop state stack if top state was pushed by beginLayer, restore state and draw the bitmap
// Clear the canvas and reset the path
[RuntimeEnabled=NewCanvas2DAPI] void reset();
[RuntimeEnabled=NewCanvas2DAPI] boolean isContextLost();

// transformations (default transform is the identity matrix)
void scale(unrestricted double x, unrestricted double y);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ interface OffscreenCanvasRenderingContext2D
method getImageData
method getLineDash
method getTransform
method isContextLost
method isPointInPath
method isPointInStroke
method lineTo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ Starting worker: resources/global-interface-listing-worker.js
[Worker] method getImageData
[Worker] method getLineDash
[Worker] method getTransform
[Worker] method isContextLost
[Worker] method isPointInPath
[Worker] method isPointInStroke
[Worker] method lineTo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5980,6 +5980,7 @@ interface OffscreenCanvasRenderingContext2D
method getImageData
method getLineDash
method getTransform
method isContextLost
method isPointInPath
method isPointInStroke
method lineTo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ Starting worker: resources/global-interface-listing-worker.js
[Worker] method getImageData
[Worker] method getLineDash
[Worker] method getTransform
[Worker] method isContextLost
[Worker] method isPointInPath
[Worker] method isPointInStroke
[Worker] method lineTo
Expand Down

0 comments on commit 9dce13e

Please sign in to comment.