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

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.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/Canvas2DLayerBridge.h
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
index bb37903d2d59784b36942260dcfcfce7ffd569fd..da73bbe15c54e41e58d5fc66d1dd98d4e4c6bf6b 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -95,7 +95,8 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
int msaaSampleCount,
OpacityMode,
AccelerationMode,
- sk_sp<SkColorSpace>);
+ sk_sp<SkColorSpace>,
+ SkColorType);
~Canvas2DLayerBridge() override;
@@ -142,6 +143,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
void hibernate();
bool isHibernating() const { return m_hibernationImage.get(); }
sk_sp<SkColorSpace> colorSpace() const { return m_colorSpace; }
+ SkColorType colorType() const { return m_colorType; }
xidachen 2016/10/18 15:40:37 I think we should be consistent here. Either call
sk_sp<SkImage> newImageSnapshot(AccelerationHint, SnapshotReason);
@@ -285,6 +287,7 @@ class PLATFORM_EXPORT Canvas2DLayerBridge
OpacityMode m_opacityMode;
const IntSize m_size;
sk_sp<SkColorSpace> m_colorSpace;
+ SkColorType m_colorType;
int m_recordingPixelCount;
#if USE_IOSURFACE_FOR_2D_CANVAS

Powered by Google App Engine
This is Rietveld 408576698