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

Unified Diff: Source/platform/graphics/skia/NativeImageSkia.h

Issue 352873002: [wip] image color correction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: Source/platform/graphics/skia/NativeImageSkia.h
diff --git a/Source/platform/graphics/skia/NativeImageSkia.h b/Source/platform/graphics/skia/NativeImageSkia.h
index aebf1d1a4b8c292b7697ee4948b0c33f386e2521..cdd37f0daa1e594a1b75bffb314d3d33e52cc9e4 100644
--- a/Source/platform/graphics/skia/NativeImageSkia.h
+++ b/Source/platform/graphics/skia/NativeImageSkia.h
@@ -42,6 +42,7 @@
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
+class SkColorFilter;
class SkMatrix;
class SkPaint;
@@ -105,16 +106,8 @@ public:
// Rectangle of the subset in the scaled image.
SkBitmap resizedBitmap(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
- void draw(GraphicsContext*, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode>) const;
- void drawPattern(
- GraphicsContext*,
- const FloatRect& srcRect,
- const FloatSize& scale,
- const FloatPoint& phase,
- CompositeOperator,
- const FloatRect& destRect,
- blink::WebBlendMode,
- const IntSize& repeatSpacing) const;
+ void draw(GraphicsContext*, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode>, PassRefPtr<SkColorFilter> = nullptr) const;
+ void drawPattern(GraphicsContext*, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator, const FloatRect& destRect, blink::WebBlendMode, const IntSize& repeatSpacing, PassRefPtr<SkColorFilter> = nullptr) const;
private:
NativeImageSkia();

Powered by Google App Engine
This is Rietveld 408576698