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

Unified Diff: ui/gfx/color_utils.h

Issue 2319313003: views: refactor away PlatformStyle::BackgroundColorForMdButton (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | ui/gfx/color_utils.cc » ('j') | ui/gfx/color_utils.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_utils.h
diff --git a/ui/gfx/color_utils.h b/ui/gfx/color_utils.h
index fc8b44652869e4d8c678aff83420c0db416f8f4e..9ed814ddad4cad9489f573ea654c4786cd03d700 100644
--- a/ui/gfx/color_utils.h
+++ b/ui/gfx/color_utils.h
@@ -94,6 +94,11 @@ GFX_EXPORT double CalculateBoringScore(const SkBitmap& bitmap);
GFX_EXPORT SkColor AlphaBlend(SkColor foreground, SkColor background,
SkAlpha alpha);
+// Returns an AlphaBlend of the specified colors, using the alpha component of
+// the foreground color for the alpha and with the alpha of the foreground color
Evan Stade 2016/09/08 14:50:47 I think the most intuitive way to explain this mig
Elly Fong-Jones 2016/09/08 16:06:12 Done.
+// set to 1.0.
+GFX_EXPORT SkColor ImplicitAlphaBlend(SkColor foreground, SkColor background);
+
// Returns true if the luma of |color| is closer to black than white.
GFX_EXPORT bool IsDark(SkColor color);
« no previous file with comments | « no previous file | ui/gfx/color_utils.cc » ('j') | ui/gfx/color_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698