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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp

Issue 2496913003: Display linear-srgb color managed canvas (Closed)
Patch Set: Created 4 years, 1 month 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/canvas/CanvasRenderingContext.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
index d046474e2cc69a1f60d911a39aab9485c0c3f00c..541644f71c1b99a65f3bdc534caac0db8ccc5f94 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -24,7 +24,6 @@
*/
#include "core/html/canvas/CanvasRenderingContext.h"
-
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#include "core/html/canvas/CanvasImageSource.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -44,7 +43,8 @@ CanvasRenderingContext::CanvasRenderingContext(
m_offscreenCanvas(offscreenCanvas),
m_colorSpace(kLegacyCanvasColorSpace),
m_creationAttributes(attrs) {
- if (RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled()) {
+ if (RuntimeEnabledFeatures::experimentalCanvasFeaturesEnabled() &&
+ RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) {
if (m_creationAttributes.colorSpace() == kSRGBCanvasColorSpaceName)
m_colorSpace = kSRGBCanvasColorSpace;
else if (m_creationAttributes.colorSpace() ==

Powered by Google App Engine
This is Rietveld 408576698