From fb7744700843d05e454194457279d77c0e9f2572 Mon Sep 17 00:00:00 2001 From: Ben Ruthig Date: Mon, 21 Mar 2016 13:35:27 -0400 Subject: [PATCH] Increased Canvas size for the CircleLayerDelegate that is used for MD ripples. The Bookmark ripple was getting clipped on devices with a 2x scale factor due to the Canvas not being large enough. BUG=594243 TEST=manual Review URL: https://codereview.chromium.org/1806563002 Cr-Commit-Position: refs/heads/master@{#381232} (cherry picked from commit ce72fa9b7010a4c72b9363469087444ec4f77792) Review URL: https://codereview.chromium.org/1820913003 . Cr-Commit-Position: refs/branch-heads/2661@{#311} Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081} --- ui/views/animation/ink_drop_painted_layer_delegates.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/views/animation/ink_drop_painted_layer_delegates.cc b/ui/views/animation/ink_drop_painted_layer_delegates.cc index 7d43b8a5c1788..cb5f7c57053d0 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);