Open Bug 1194719 Opened 10 years ago Updated 3 years ago

Copying with drawImage causes a blurry canvas on Nexus 7

Categories

(Core :: Graphics: Canvas2D, defect)

40 Branch
Unspecified
Android
defect

Tracking

()

ASSIGNED

People

(Reporter: samuel, Assigned: jnicol)

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.15 Safari/537.36 Firefox for Android Steps to reproduce: 1. Firefox 40 running on Nexus 7 with Android 5.1.1 2. Use canvasContext.drawImage to copy content from the canvas to the same canvas Actual results: The resulting image in the canvas is blurry. The more times you do the copy, the blurrier it gets. Expected results: It should not get blurry.
OS: Unspecified → Android
Setting the following property will work around the issue: canvasContext.mozImageSmoothingEnabled = false;
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
Assignee: nobody → jnicol
Whiteboard: [gfx-noted]
I can reproduce this on both my 2013 Nexus 7 (Adreno 320) and my Nexus 5 (Adreno 330). This issue does not affect my Nexus 6 (Adreno 420) or my Galaxy S6 (Mali-T760).
This is only an issue when using SkiaGL for canvas, and drawing with the skia filter mode set to SkPaint::kLow_FilterLevel or SkPaint::kMedium_FilterLevel. kNone_FilterLevel and kHigh_FilterLevel render correctly. Not sure yet what's going on internally in skia (and the driver) that's causing this.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: