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

Issue 728991 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug-Regression



Sign in to add a comment

imageSmoothing doesn't kick on drawImage(img, float, float)

Reported by tristan....@gmail.com, Jun 2 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:54.0) Gecko/20100101 Firefox/54.0

Steps to reproduce the problem:
Call drawImage(img, x, y) where x and y are floating values

What is the expected behavior?
The antialiasing algorithm should kick in.

What went wrong?
It didn't

Did this work before? Yes 

Does this work in other browsers? Yes

Chrome version: Version 61.0.3118.0 (Official Build) canary (64-bit)  Channel: canary
OS Version: OS X 10.9
Flash Version: Shockwave Flash 25.0 r0

Firefox has an similar bug[1] report but only for canvas elements smaller than 128*128px.

Some user[2] has reported that it happens only on 200*200px canvas, but for me it does so even on larger canvas.

[1]https://bugzilla.mozilla.org/show_bug.cgi?id=1322125
[2]https://stackoverflow.com/questions/44323932/no-subpixel-positioning-on-small-html5-canvas-on-chrome
 
Canvas2DContext filter bug report.html
1023 bytes View Download

Comment 1 by junov@chromium.org, Jun 2 2017

Components: Internals>Skia
Labels: -OS-Mac OS-All
Owner: reed@chromium.org
Status: Untriaged (was: Unconfirmed)
The problem only reproduces on canvases that are not GPU-accelerated. (smaller than 256x256 pixels or on a machine with an incompatible GPU).

It looks like the software rasterization code path is trying to snap to integer coordinates under certain conditions. These conditions probably need to be revisited.

Assigning to reed@ +Skia component for further triage.


Comment 2 by reed@google.com, Jun 2 2017

Cc: herb@chromium.org fmalita@chromium.org
Owner: reed@google.com
Components: -Blink>Canvas
Owner: ----
Get it into the Skia team's triage queue.

Comment 4 by hcm@google.com, Jun 13 2017

Owner: reed@google.com
Status: Assigned (was: Untriaged)
reed made himself owner and is appropriate, re-adding...
Owner: reed@chromium.org
Owner: reed@google.com

Sign in to add a comment