| Index: third_party/WebKit/Source/platform/mac/GraphicsContextCanvas.mm
|
| diff --git a/third_party/WebKit/Source/platform/mac/GraphicsContextCanvas.mm b/third_party/WebKit/Source/platform/mac/GraphicsContextCanvas.mm
|
| index 8601bcb8b84522c1f74f7afc5efa780170ec2676..1960a1d85c21297ef5f14bba6fd6419eaa8fed26 100644
|
| --- a/third_party/WebKit/Source/platform/mac/GraphicsContextCanvas.mm
|
| +++ b/third_party/WebKit/Source/platform/mac/GraphicsContextCanvas.mm
|
| @@ -7,6 +7,7 @@
|
| #import <AppKit/AppKit.h>
|
| #import <CoreGraphics/CoreGraphics.h>
|
|
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/wtf/RetainPtr.h"
|
| #include "skia/ext/skia_utils_mac.h"
|
|
|
| @@ -76,7 +77,10 @@
|
|
|
| // Allocate an offscreen and draw into that, relying on the
|
| // compositing step to apply skia's clip.
|
| - WTF::RetainPtr<CGColorSpace> color_space(CGColorSpaceCreateDeviceRGB());
|
| + WTF::RetainPtr<CGColorSpace> color_space(
|
| + RuntimeEnabledFeatures::colorCorrectRenderingEnabled()
|
| + ? CGColorSpaceCreateWithName(kCGColorSpaceSRGB)
|
| + : CGColorSpaceCreateDeviceRGB());
|
|
|
| bool result = offscreen_.tryAllocN32Pixels(
|
| SkScalarCeilToInt(bitmap_scale_factor_ * clip_bounds.width()),
|
|
|