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

Unified Diff: Source/core/page/ImageBitmap.h

Issue 20748002: Blob creation methods for ImageBitmap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Read blob as ArrayBuffer. Refactor into ImageBitmapFactories. Created 7 years, 4 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: Source/core/page/ImageBitmap.h
diff --git a/Source/core/page/ImageBitmap.h b/Source/core/page/ImageBitmap.h
index 102fa62542e219b514d12426121c2d17085a8e52..ea7bf32a32a81522b98771b4c20d454bc8953f58 100644
--- a/Source/core/page/ImageBitmap.h
+++ b/Source/core/page/ImageBitmap.h
@@ -27,6 +27,7 @@ public:
static PassRefPtr<ImageBitmap> create(HTMLCanvasElement*, const IntRect&);
static PassRefPtr<ImageBitmap> create(ImageData*, const IntRect&);
static PassRefPtr<ImageBitmap> create(ImageBitmap*, const IntRect&);
+ static PassRefPtr<ImageBitmap> create(Image*, const IntRect&);
PassRefPtr<Image> bitmapImage() const;
PassRefPtr<HTMLImageElement> imageElement() const { return m_imageElement; }
@@ -45,6 +46,7 @@ private:
ImageBitmap(HTMLCanvasElement*, const IntRect&);
ImageBitmap(ImageData*, const IntRect&);
ImageBitmap(ImageBitmap*, const IntRect&);
+ ImageBitmap(Image*, const IntRect&);
// ImageLoaderClient
virtual void notifyImageSourceChanged();

Powered by Google App Engine
This is Rietveld 408576698