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

Unified Diff: ui/gfx/shadow_value.cc

Issue 10699065: chromeos: Fix pixelated icons in app list and launcher (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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 | « ui/gfx/shadow_value.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/shadow_value.cc
diff --git a/ui/gfx/shadow_value.cc b/ui/gfx/shadow_value.cc
index c8915e20107e166e5f31c2809a5235dd923e5fb7..09127ee5bfc7dd3a7da500026511e08bbc45646e 100644
--- a/ui/gfx/shadow_value.cc
+++ b/ui/gfx/shadow_value.cc
@@ -27,6 +27,10 @@ ShadowValue::ShadowValue(const gfx::Point& offset,
ShadowValue::~ShadowValue() {
}
+ShadowValue ShadowValue::Scale(float scale) const {
+ return ShadowValue(offset_.Scale(scale), blur_ * scale, color_);
+}
+
std::string ShadowValue::ToString() const {
return base::StringPrintf(
"(%d,%d),%.2f,rgba(%d,%d,%d,%d)",
« no previous file with comments | « ui/gfx/shadow_value.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698