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

Unified Diff: Source/platform/graphics/Color.h

Issue 126033003: Support colors w/ alpha in SVG 'stop' elements and 'feFlood' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/Color.h
diff --git a/Source/platform/graphics/Color.h b/Source/platform/graphics/Color.h
index 9664906a8f7840954ce28a951d56656c4d053db0..f58e8cb59c50adcf41c5c33c5ced546e58b33a5b 100644
--- a/Source/platform/graphics/Color.h
+++ b/Source/platform/graphics/Color.h
@@ -113,6 +113,8 @@ public:
Color light() const;
Color dark() const;
+ Color modulate(float factor) const;
+
// This is an implementation of Porter-Duff's "source-over" equation
Color blend(const Color&) const;
Color blendWithWhite() const;

Powered by Google App Engine
This is Rietveld 408576698