summaryrefslogtreecommitdiffstats
path: root/ui/gfx/shadow_value.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/shadow_value.cc')
-rw-r--r--ui/gfx/shadow_value.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gfx/shadow_value.cc b/ui/gfx/shadow_value.cc
index c8915e2..09127ee 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)",