Skip to content

Commit

Permalink
Increased Canvas size for the CircleLayerDelegate that is used for MD…
Browse files Browse the repository at this point in the history
… 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}
  • Loading branch information
bruthig-chromium authored and Commit bot committed Mar 15, 2016
1 parent 400ad19 commit ce72fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/views/animation/ink_drop_painted_layer_delegates.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ce72fa9

Please sign in to comment.