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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h

Issue 1696753002: Change createImageBitmap(Blob) to use ImageDecoder instead of ImageSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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/imagebitmap/ImageBitmapFactories.h
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h
index 90d9acec0a02fece6dc07688bffbc122f6f56aee..a49221570a68d0c81372956ee03fe9e9c45b60bf 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.h
@@ -49,7 +49,7 @@ class ExceptionState;
class ExecutionContext;
class ImageBitmapSource;
class ImageBitmapOptions;
-class ImageSource;
+class ImageDecoder;
class WebTaskRunner;
typedef HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrBlobOrImageDataOrImageBitmap ImageBitmapSourceUnion;
@@ -94,7 +94,7 @@ private:
void scheduleAsyncImageBitmapDecoding();
void decodeImageOnDecoderThread(WebTaskRunner*);
- void resolvePromiseOnOriginalThread(PassOwnPtr<ImageSource>);
+ void resolvePromiseOnOriginalThread(PassOwnPtr<ImageDecoder>);
// FileReaderLoaderClient
void didStartLoading() override { }

Powered by Google App Engine
This is Rietveld 408576698