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

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

Issue 2530443004: Add target color profile to BitmapImage::draw (Closed)
Patch Set: Created 4 years, 1 month 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/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index 87f940d7eaca09d19220556440e9842580693c49..2652b4db31de6891f942959fa7b73d802bf58d39 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -43,7 +43,10 @@
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/text/WTFString.h"
+template <typename T>
+class sk_sp;
class SkCanvas;
+class SkColorSpace;
class SkImage;
class SkMatrix;
class SkPaint;
@@ -175,6 +178,14 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
RespectImageOrientationEnum,
ImageClampingMode) = 0;
+ virtual void drawInColorSpace(SkCanvas*,
+ const SkPaint&,
+ const FloatRect& dstRect,
+ const FloatRect& srcRect,
+ RespectImageOrientationEnum,
+ ImageClampingMode,
+ sk_sp<SkColorSpace>);
+
virtual bool applyShader(SkPaint&, const SkMatrix& localMatrix);
// Compute the tile which contains a given point (assuming a repeating tile
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp ('k') | third_party/WebKit/Source/platform/graphics/Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698