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

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

Issue 2425113002: Fix the linear-rgb canvas color space so that it renders (Closed)
Patch Set: Created 4 years, 2 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/Canvas2DImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
index 85a3aca735c2e204152927557635417a7909b75d..b357354225cf889d371d1464de735c5f00d26884 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h
@@ -47,21 +47,26 @@ class Canvas2DImageBufferSurface final : public ImageBufferSurface {
int msaaSampleCount,
OpacityMode opacityMode,
Canvas2DLayerBridge::AccelerationMode accelerationMode,
- sk_sp<SkColorSpace> colorSpace)
- : ImageBufferSurface(size, opacityMode, colorSpace),
+ sk_sp<SkColorSpace> colorSpace,
+ SkColorType colorType)
+ : ImageBufferSurface(size, opacityMode, colorSpace, colorType),
m_layerBridge(
adoptRef(new Canvas2DLayerBridge(std::move(contextProvider),
size,
msaaSampleCount,
opacityMode,
accelerationMode,
- colorSpace))) {
+ std::move(colorSpace),
+ colorType))) {
init();
}
Canvas2DImageBufferSurface(PassRefPtr<Canvas2DLayerBridge> bridge,
const IntSize& size)
- : ImageBufferSurface(size, bridge->opacityMode(), bridge->colorSpace()),
+ : ImageBufferSurface(size,
+ bridge->opacityMode(),
+ bridge->colorSpace(),
+ bridge->colorType()),
m_layerBridge(std::move(bridge)) {
init();
}

Powered by Google App Engine
This is Rietveld 408576698