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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Fixing ImageData::validateConstructorArguments Created 3 years, 11 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/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index 99fd4d56562ff925fa6ae68234bab2d1d45a154e..eab493042c8465f70969d62b06929c0c5d079729 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -21,6 +21,7 @@
#include <memory>
namespace blink {
+class Float32ImageData;
class HTMLCanvasElement;
class HTMLVideoElement;
class ImageData;
@@ -65,6 +66,9 @@ class CORE_EXPORT ImageBitmap final
static ImageBitmap* create(ImageData*,
Optional<IntRect>,
const ImageBitmapOptions& = ImageBitmapOptions());
+ static ImageBitmap* create(Float32ImageData*,
+ Optional<IntRect>,
+ const ImageBitmapOptions& = ImageBitmapOptions());
static ImageBitmap* create(ImageBitmap*,
Optional<IntRect>,
const ImageBitmapOptions& = ImageBitmapOptions());
@@ -150,6 +154,7 @@ class CORE_EXPORT ImageBitmap final
ImageBitmap(HTMLCanvasElement*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(OffscreenCanvas*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(ImageData*, Optional<IntRect>, const ImageBitmapOptions&);
+ ImageBitmap(Float32ImageData*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(ImageBitmap*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(PassRefPtr<StaticBitmapImage>);
ImageBitmap(PassRefPtr<StaticBitmapImage>,
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMTypedArray.h ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698