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

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

Issue 2522693002: Color correct ImageBitmap(HTMLImageElement*) constructor (Closed)
Patch Set: Minor correctinos 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..21d17711de6b98401b14a49506e65769a6924c0b 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -74,7 +74,10 @@ class CORE_EXPORT ImageBitmap final
uint32_t height,
bool isImageBitmapPremultiplied,
bool isImageBitmapOriginClean);
- static sk_sp<SkImage> getSkImageFromDecoder(std::unique_ptr<ImageDecoder>);
+ static sk_sp<SkImage> getSkImageFromDecoder(std::unique_ptr<ImageDecoder>,
+ SkColorType* = nullptr,
+ sk_sp<SkColorSpace> = nullptr,
+ bool = false);
static bool isResizeOptionValid(const ImageBitmapOptions&, ExceptionState&);
static bool isSourceSizeValid(int sourceWidth,
int sourceHeight,

Powered by Google App Engine
This is Rietveld 408576698