Closed Bug 770571 Opened 13 years ago Closed 2 years ago

<canvas> box loses anti-aliasing after calling getContext('2d')

Categories

(Core :: Graphics: Layers, defect)

x86_64
Windows 7
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: g.underflow, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Attached file canvas-border-alias-reproduce.html (obsolete) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1 Build ID: 20120614114901 Steps to reproduce: Use css border on <canvas> element, apply "-moz-transform: rotate(25deg)" or any other angle. The border of rotated <canvas> element is anti-aliased like any other element. Now in javascript get the reference to this <canvas> element and call getContext('2d') on it. Actual results: After calling getContext <canvas> element's border becomes jagged and not anti-aliased Expected results: The border should have remained anti-aliased (the border remains anti-aliased and smoothed in all the rest of major browsers like Chrome, Safari, IE9)
Severity: normal → minor
Attachment #638774 - Attachment mime type: text/plain → text/html
Setting layers.acceleration.disabled to true fixes this and border of the element is no more jagged. However it is jagged with layers acceleration enabled.
Did this regress at some point? Can you try some previous Firefox versions to see if it reproduces? Our nightlies can be found on ftp.mozilla.org.
Component: Untriaged → Graphics: Layers
Product: Firefox → Core
The problem exists in both FF4 and latest nightly FF16a1. Again, setting layers.acceleration.disabled to true fixes the aliased border on both versions. Since, as I understand, layers.acceleration was introduced in FF4 that means that the problem started there and still exists.
So when will this get confirmed? It's not that hard to confirm, Win7, any version of Firefox4+, and layers acceleration enabled.
It will be confirmed as soon as someone else can confirm it. I don't have access to layers capable hardware at this time.
Version: 13 Branch → Trunk
So what? No one in the entire Mozilla has layers capable hardware? The bug still persists.
Attached file testcase
Thanks for commenting. This reminded me to check back on this bug. Since I last commented I've acquired a machine capable of layers acceleration. I apologize that this slipped through my purview. I've updated your testcase to show the comparison. It's quite easy to reproduce this bug. Marking as NEW.
Attachment #638774 - Attachment is obsolete: true
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: minor → S4

Unable to reproduce

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: