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

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: Created 8 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
« ui/gfx/shadow_value.h ('K') | « 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..879e813c304550c5b3f4f2e6f25bef8cbf6fc2a6 100644
--- a/ui/gfx/shadow_value.cc
+++ b/ui/gfx/shadow_value.cc
@@ -27,6 +27,12 @@ ShadowValue::ShadowValue(const gfx::Point& offset,
ShadowValue::~ShadowValue() {
}
+ShadowValue ShadowValue::GetScaled(float scale) const {
+ return ShadowValue(gfx::Point(offset_.x() * scale, offset_.y() * scale),
pkotwicz 2012/07/02 23:34:01 Use the gfx::Point Scale method
xiyuan 2012/07/03 22:16:00 Done.
+ blur_ * scale,
+ color_);
+}
+
std::string ShadowValue::ToString() const {
return base::StringPrintf(
"(%d,%d),%.2f,rgba(%d,%d,%d,%d)",
« ui/gfx/shadow_value.h ('K') | « ui/gfx/shadow_value.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698