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

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

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Work in progress Created 4 years 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 9cc2b77e640c4dd88e82dfdbdc0323ad20385e8a..cc8c7e8ea4533596ba2e3638a402532b0ee278d3 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;
@@ -57,6 +58,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());
@@ -137,6 +141,7 @@ class CORE_EXPORT ImageBitmap final
const ImageBitmapOptions&);
ImageBitmap(HTMLCanvasElement*, 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>,

Powered by Google App Engine
This is Rietveld 408576698