New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 706228 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 2
Type: Bug

Blocking:
issue 688503



Sign in to add a comment

ink drop effects don't always scale well to fractional scale factors

Project Member Reported by est...@chromium.org, Mar 29 2017

Issue description

The edges of the ink drop ripples and highlights tend to be blurry in fractional scales (e.g. 1.25x).

Here is one example: the highlight on bookmark menus.
 
AOHg6ZXOg2Y.png
20.4 KB View Download

Comment 1 by est...@chromium.org, Mar 29 2017

and here's how it should look.
C8DmwAyE522.png
2.0 KB View Download

Comment 2 by est...@chromium.org, Mar 29 2017

Here is another motivating example to demonstrate this is not isolated.
EwaGS7i2zYe.png
14.1 KB View Download
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 31 2017

Project Member

Comment 4 by bugdroid1@chromium.org, Apr 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/73ce931e71d004ae9028b75fb7fbe3c68f8538f4

commit 73ce931e71d004ae9028b75fb7fbe3c68f8538f4
Author: estade <estade@chromium.org>
Date: Tue Apr 11 19:18:48 2017

Remove SquareInkDropRipple::AnimateToCenterPoint

This was always animating to the same point; i.e. no effective change
was made after the initial transform on the root layer.

I discovered this while investigating the linked bug and it will make
my next fix easier, but in itself it should have no behavioral impact.

BUG=706228

Review-Url: https://codereview.chromium.org/2805753002
Cr-Commit-Position: refs/heads/master@{#463717}

[modify] https://crrev.com/73ce931e71d004ae9028b75fb7fbe3c68f8538f4/ui/views/animation/square_ink_drop_ripple.cc
[modify] https://crrev.com/73ce931e71d004ae9028b75fb7fbe3c68f8538f4/ui/views/animation/square_ink_drop_ripple.h

Project Member

Comment 5 by bugdroid1@chromium.org, Apr 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cfd215a5b6b3d1ab60398fc8c4a522b0d8ce611e

commit cfd215a5b6b3d1ab60398fc8c4a522b0d8ce611e
Author: estade <estade@chromium.org>
Date: Thu Apr 13 16:17:47 2017

Improve toolbar button ink drop ripples at 1.25x

1. combining scaling and translation transforms on nested layers seems
   to create unfixable blurriness, so instead do all transforms on the
   painted layers.
2. adjust the size of the painted layers by a fractional amount to
   ensure pixel alignment of edges of layer (at start and end points of
   animation).

BUG=706228

Review-Url: https://codereview.chromium.org/2805813007
Cr-Commit-Position: refs/heads/master@{#464430}

[modify] https://crrev.com/cfd215a5b6b3d1ab60398fc8c4a522b0d8ce611e/ui/views/animation/square_ink_drop_ripple.cc
[modify] https://crrev.com/cfd215a5b6b3d1ab60398fc8c4a522b0d8ce611e/ui/views/animation/square_ink_drop_ripple.h
[modify] https://crrev.com/cfd215a5b6b3d1ab60398fc8c4a522b0d8ce611e/ui/views/animation/square_ink_drop_ripple_unittest.cc

Sign in to add a comment