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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h

Issue 2420203002: Implement convertToBlob() in OffscreenCanvas (Closed)
Patch Set: rename function name 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/modules/offscreencanvas/OffscreenCanvasModules.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h
index 1f6fe3e8f160d820e407f182a2a8e98c855680e7..8c46c45346b301e7d3c4f9a242976937ce6228cb 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h
@@ -26,6 +26,16 @@ class MODULES_EXPORT OffscreenCanvasModules {
const CanvasContextCreationAttributes&,
ExceptionState&,
OffscreenRenderingContext&);
+
+ static ScriptPromise convertToBlob(ScriptState*,
+ OffscreenCanvas&,
+ const ImageEncodeOptions&,
+ ExceptionState&);
+
+ private:
+ static ImageData* toImageData(OffscreenCanvas&,
+ SourceDrawingBuffer,
+ SnapshotReason);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698