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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.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/core/html/canvas/CanvasRenderingContext.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
index 5da3199bae3be16c86076a0262e3e856357a6e7a..ce8c3fc7cdce39f19d98471195da2302ab41f4b2 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -32,6 +32,7 @@
#include "core/layout/HitTestCanvasResult.h"
#include "core/offscreencanvas/OffscreenCanvas.h"
#include "third_party/skia/include/core/SkColorSpace.h"
+#include "third_party/skia/include/core/SkImageInfo.h"
#include "wtf/HashSet.h"
#include "wtf/Noncopyable.h"
#include "wtf/text/StringHash.h"
@@ -85,6 +86,7 @@ class CORE_EXPORT CanvasRenderingContext
CanvasColorSpace colorSpace() const { return m_colorSpace; };
WTF::String colorSpaceAsString() const;
sk_sp<SkColorSpace> skColorSpace() const;
+ SkColorType colorType() const;
xidachen 2016/10/18 15:40:37 Should we make it more consistent? As we call skCo
Justin Novosad 2016/10/18 17:02:41 In general we should not use sk prefixes in blink.
virtual PassRefPtr<Image> getImage(AccelerationHint,
SnapshotReason) const = 0;

Powered by Google App Engine
This is Rietveld 408576698