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

Unified Diff: third_party/WebKit/Source/platform/graphics/CanvasColorParams.h

Issue 2836793002: Add P3 and Rec2020 to ImageBitmap colorSpaceConversion modes (Closed)
Patch Set: Fixing unit test fails 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/platform/graphics/CanvasColorParams.h
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h
index 32d2c1b6e96196289df9fa46602c19e552a35235..29aa073bb40577374e387958eb3b5518f03a7938 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h
+++ b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.h
@@ -37,6 +37,9 @@ class PLATFORM_EXPORT CanvasColorParams {
CanvasColorSpace color_space() const { return color_space_; }
CanvasPixelFormat pixel_format() const { return pixel_format_; }
+ void SetCanvasColorSpace(CanvasColorSpace);
+ void SetCanvasPixelFormat(CanvasPixelFormat);
+
// Returns true if the canvas uses blends output color space values (that is,
// not linear space colors).
bool UsesOutputSpaceBlending() const;

Powered by Google App Engine
This is Rietveld 408576698