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

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

Issue 2212163002: Add some plumbing for the color management of canvases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 4 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 22c52749deed631caa0ba86ae070f8338e419187..4ef9d84089bc7a35a5e4eb9cd041c9786ad7490d 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h
@@ -42,6 +42,7 @@
class SkBitmap;
class SkCanvas;
+class SkColorSpace;
class SkImage;
struct SkImageInfo;
class SkPicture;
@@ -86,15 +87,17 @@ public:
OpacityMode getOpacityMode() const { return m_opacityMode; }
const IntSize& size() const { return m_size; }
+ const sk_sp<SkColorSpace> colorSpace() const { return m_colorSpace; }
void notifyIsValidChanged(bool isValid) const;
protected:
- ImageBufferSurface(const IntSize&, OpacityMode);
+ ImageBufferSurface(const IntSize&, OpacityMode, sk_sp<SkColorSpace>);
void clear();
private:
OpacityMode m_opacityMode;
IntSize m_size;
+ sk_sp<SkColorSpace> m_colorSpace;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698