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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Issue 2411703004: Add usage counter to OffscreenCanvas API calls (Closed)
Patch Set: fix compile error Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
index fda130f3a08a7a8c2b96c1a21574dd6cca2d391f..dd349c5992f4626c9653f1820fb09b272c0ed875 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
@@ -63,6 +63,7 @@ void OffscreenCanvas::setNeutered() {
}
ImageBitmap* OffscreenCanvas::transferToImageBitmap(
+ ScriptState* scriptState,
ExceptionState& exceptionState) {
if (m_isNeutered) {
exceptionState.throwDOMException(
@@ -76,7 +77,7 @@ ImageBitmap* OffscreenCanvas::transferToImageBitmap(
"OffscreenCanvas with no context");
return nullptr;
}
- ImageBitmap* image = m_context->transferToImageBitmap();
+ ImageBitmap* image = m_context->transferToImageBitmap(scriptState);
if (!image) {
// Undocumented exception (not in spec)
exceptionState.throwDOMException(V8Error, "Out of memory");

Powered by Google App Engine
This is Rietveld 408576698