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

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

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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CanvasColorParams.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp
index 80edcb1bd188feb76864d725dc316e8a85e34574..1c06781c93890466208a84783c88c6c60dd129fc 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasColorParams.cpp
@@ -14,6 +14,14 @@ CanvasColorParams::CanvasColorParams(CanvasColorSpace color_space,
CanvasPixelFormat pixel_format)
: color_space_(color_space), pixel_format_(pixel_format) {}
+void CanvasColorParams::SetCanvasColorSpace(CanvasColorSpace color_space) {
+ color_space_ = color_space;
+}
+
+void CanvasColorParams::SetCanvasPixelFormat(CanvasPixelFormat pixel_format) {
+ pixel_format_ = pixel_format;
+}
+
bool CanvasColorParams::UsesOutputSpaceBlending() const {
return color_space_ == kLegacyCanvasColorSpace;
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CanvasColorParams.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698