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

Unified Diff: ui/views/animation/ink_drop_painted_layer_delegates.cc

Issue 1820913003: Increased Canvas size for the CircleLayerDelegate that is used for MD ripples. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_painted_layer_delegates.cc
diff --git a/ui/views/animation/ink_drop_painted_layer_delegates.cc b/ui/views/animation/ink_drop_painted_layer_delegates.cc
index 7d43b8a5c17881805fa086a5a04a6cf6a2a094fe..cb5f7c57053d0afacb31852d389067438bd3dd3e 100644
--- a/ui/views/animation/ink_drop_painted_layer_delegates.cc
+++ b/ui/views/animation/ink_drop_painted_layer_delegates.cc
@@ -52,7 +52,7 @@ void CircleLayerDelegate::OnPaintLayer(const ui::PaintContext& context) {
paint.setFlags(SkPaint::kAntiAlias_Flag);
paint.setStyle(SkPaint::kFill_Style);
- ui::PaintRecorder recorder(context, gfx::Size(radius_, radius_));
+ ui::PaintRecorder recorder(context, gfx::Size(2 * radius_, 2 * radius_));
gfx::Canvas* canvas = recorder.canvas();
canvas->DrawCircle(ToRoundedPoint(GetCenterPoint()), radius_, paint);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698