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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index c64e17d7b42e3c4b98862a0ba97568c9be568ad1..1b1edd120abb38272898f387dd216c1aaf9069d5 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -305,6 +305,16 @@ void Image::drawPattern(GraphicsContext& context,
PlatformInstrumentation::didDrawLazyPixelRef(imageID);
}
+void Image::drawInColorSpace(SkCanvas* canvas,
+ const SkPaint& paint,
+ const FloatRect& dstRect,
+ const FloatRect& srcRect,
+ RespectImageOrientationEnum orientation,
+ ImageClampingMode clamping,
+ sk_sp<SkColorSpace>) {
+ draw(canvas, paint, dstRect, srcRect, orientation, clamping);
+}
+
PassRefPtr<Image> Image::imageForDefaultFrame() {
RefPtr<Image> image(this);
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | third_party/WebKit/Source/platform/graphics/ImageSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698