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

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

Issue 2660393002: Use gfx::ColorSpace instead of SkColorSpace in Blink (Closed)
Patch Set: Rebase (again) Created 3 years, 11 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/PRESUBMIT.py ('k') | third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 8b290eff37f57270d15333a8d6b11f14a6013840..aeb9a390a024c328854eccde0535035d1d666d26 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -82,7 +82,8 @@ ParsedOptions parseOptions(const ImageBitmapOptions& options,
!RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) {
DCHECK_EQ(options.colorSpaceConversion(), kImageBitmapOptionDefault);
if (RuntimeEnabledFeatures::colorCorrectRenderingDefaultModeEnabled()) {
- parsedOptions.dstColorSpace = ColorBehavior::globalTargetColorSpace();
+ parsedOptions.dstColorSpace =
+ ColorBehavior::globalTargetColorSpace().ToSkColorSpace();
parsedOptions.dstColorType = SkColorType::kN32_SkColorType;
}
} else {
« no previous file with comments | « third_party/WebKit/PRESUBMIT.py ('k') | third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698