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

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: Rebase; Prebake expected colors. 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
« no previous file with comments | « Source/core/svg/SVGStopElement.cpp ('k') | Source/platform/graphics/Color.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Color.h
diff --git a/Source/platform/graphics/Color.h b/Source/platform/graphics/Color.h
index 655218d70e11803905d3b0e5f9164a0876581b45..70a6fc2867b20ba616f8b3d4eeee9fecb2c3482c 100644
--- a/Source/platform/graphics/Color.h
+++ b/Source/platform/graphics/Color.h
@@ -118,6 +118,8 @@ public:
Color light() const;
Color dark() const;
+ Color combineWithAlpha(float otherAlpha) const;
+
// This is an implementation of Porter-Duff's "source-over" equation
Color blend(const Color&) const;
Color blendWithWhite() const;
« no previous file with comments | « Source/core/svg/SVGStopElement.cpp ('k') | Source/platform/graphics/Color.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698