| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index 9b5a32a926721604ab78060ba166c20317ff8f9c..3d4bc1c7f612782ff5387b4a16f7907d44d9f412 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -678,13 +678,20 @@ void WebGLRenderingContextBase::forceNextWebGLContextCreationToFail() {
|
| shouldFailContextCreationForTesting = true;
|
| }
|
|
|
| -ImageBitmap* WebGLRenderingContextBase::transferToImageBitmapBase() {
|
| +ImageBitmap* WebGLRenderingContextBase::transferToImageBitmapBase(
|
| + ScriptState* scriptState) {
|
| + UseCounter::Feature feature =
|
| + UseCounter::OffscreenCanvasTransferToImageBitmapWebGL;
|
| + UseCounter::count(scriptState->getExecutionContext(), feature);
|
| if (!drawingBuffer())
|
| return nullptr;
|
| return ImageBitmap::create(drawingBuffer()->transferToStaticBitmapImage());
|
| }
|
|
|
| -void WebGLRenderingContextBase::commit(ExceptionState& exceptionState) {
|
| +void WebGLRenderingContextBase::commit(ScriptState* scriptState,
|
| + ExceptionState& exceptionState) {
|
| + UseCounter::Feature feature = UseCounter::OffscreenCanvasCommitWebGL;
|
| + UseCounter::count(scriptState->getExecutionContext(), feature);
|
| if (!getOffscreenCanvas()) {
|
| exceptionState.throwDOMException(InvalidStateError,
|
| "Commit() was called on a rendering "
|
|
|