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

Unified Diff: third_party/WebKit/Source/core/html/ImageData.h

Issue 2797213002: Fix BaseRenderingContext2D create/put/get-ImageData() for color managed canvas (Closed)
Patch Set: Rebaseline Created 3 years, 8 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/html/ImageData.h
diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
index be0b419efa5cb297c7e3dd7fba2ef6caa70cb15a..c270c6e3dd3c3e37810e0e9b470d86a444676581 100644
--- a/third_party/WebKit/Source/core/html/ImageData.h
+++ b/third_party/WebKit/Source/core/html/ImageData.h
@@ -90,15 +90,15 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
unsigned height,
ExceptionState&);
- ImageData* createImageData(unsigned width,
- unsigned height,
- const ImageDataColorSettings&,
- ExceptionState&);
- ImageData* createImageData(ImageDataArray&,
- unsigned width,
- unsigned height,
- ImageDataColorSettings&,
- ExceptionState&);
+ static ImageData* CreateImageData(unsigned width,
+ unsigned height,
+ const ImageDataColorSettings&,
+ ExceptionState&);
+ static ImageData* CreateImageData(ImageDataArray&,
+ unsigned width,
+ unsigned height,
+ ImageDataColorSettings&,
+ ExceptionState&);
void getColorSettings(ImageDataColorSettings& result) {
result = color_settings_;
@@ -131,6 +131,8 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
const ImageDataArray& dataUnion() const { return data_union_; }
void dataUnion(ImageDataArray& result) { result = data_union_; };
+ DOMArrayBufferBase* BufferBase() const;
+
sk_sp<SkColorSpace> GetSkColorSpace();
bool ImageDataInCanvasColorSettings(const CanvasColorSpace&,
const CanvasPixelFormat&,

Powered by Google App Engine
This is Rietveld 408576698