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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.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/ImageBufferSurface.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
index 1c13f51c25d6df779ccf341d58e42af84ed64715..5e41d14443d8c8cfee421dfc32959a1a1ea56480 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
@@ -35,6 +35,7 @@
#include "platform/geometry/IntSize.h"
#include "platform/graphics/GraphicsTypes.h"
#include "third_party/khronos/GLES2/gl2.h"
+#include "third_party/skia/include/core/SkImageInfo.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Allocator.h"
@@ -104,16 +105,21 @@ class PLATFORM_EXPORT ImageBufferSurface {
OpacityMode getOpacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }
const sk_sp<SkColorSpace> colorSpace() const { return m_colorSpace; }
+ SkColorType colorType() const { return m_colorType; }
void notifyIsValidChanged(bool isValid) const;
protected:
- ImageBufferSurface(const IntSize&, OpacityMode, sk_sp<SkColorSpace>);
+ ImageBufferSurface(const IntSize&,
+ OpacityMode,
+ sk_sp<SkColorSpace>,
+ SkColorType);
void clear();
private:
OpacityMode m_opacityMode;
IntSize m_size;
sk_sp<SkColorSpace> m_colorSpace;
+ SkColorType m_colorType;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698