Closed
Bug 696630
Opened 14 years ago
Closed 9 years ago
Canvas context mozImageSmoothingEnabled state ignored for pattern fill.
Categories
(Core :: Graphics: Canvas2D, defect, P1)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla45
| Tracking | Status | |
|---|---|---|
| firefox45 | --- | fixed |
People
(Reporter: carl.olsson, Assigned: mbx)
References
Details
(Whiteboard: [Shumway])
Attachments
(2 files, 4 obsolete files)
|
1.18 KB,
text/html
|
Details | |
|
5.26 KB,
patch
|
mbx
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238
Steps to reproduce:
Create HTML file with canvas.
Set canvas context mozImageSmoothingEnabled = false.
Draw pattern filled primitive to context.
Actual results:
Pattern draws with bilinear filtering.
Expected results:
Pattern should draw with nearest-neighbor sampling.
Updated•14 years ago
|
Component: General → Canvas: 2D
Product: Firefox → Core
QA Contact: general → canvas.2d
| Reporter | ||
Comment 1•14 years ago
|
||
Testing this on my laptop with Intel graphics, under both Windows 7 and Ubuntu 11.10 this does work as expected.
The bug presents on my desktop with AMD graphics (Radeon HD 5770, Catalyst 11.9), so maybe it's an AMD specific bug.
Updated•13 years ago
|
Attachment #568938 -
Attachment mime type: text/plain → text/html
Comment 2•12 years ago
|
||
This is hurting us in Shumway: Flash by default doesn't apply anti-aliasing when scaling Bitmaps. (That is, the constructor for Bitmap has an argument `smoothing` with a default value of false, and graphics.beginBitmapFill also defaults to non-smoothing. The former works in FF, the latter doesn't. Both work in Chrome.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86_64 → All
Whiteboard: [Shumway]
Version: 7 Branch → Trunk
Updated•11 years ago
|
Blocks: shumway-1.0
Comment 4•11 years ago
|
||
Till says this is a hard blocker for gfx fidelity, but might be easy to fix.
Priority: -- → P1
| Assignee | ||
Comment 5•11 years ago
|
||
Prototype implementation, will follow up will try results.
| Assignee | ||
Comment 6•11 years ago
|
||
Assignee: nobody → mbebenita
| Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8494178 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Attachment #8494856 -
Attachment description: With a test case. → Take imageSmoothingEnabled into account when creating pattern fills w/ test case.
| Assignee | ||
Updated•11 years ago
|
Attachment #8494856 -
Flags: review?(bjacob)
Comment 8•11 years ago
|
||
Comment on attachment 8494856 [details] [diff] [review]
Take imageSmoothingEnabled into account when creating pattern fills w/ test case.
Review of attachment 8494856 [details] [diff] [review]:
-----------------------------------------------------------------
I'm the wrong reviewer. Try Bas Schouten or Matt Woodrow.
Attachment #8494856 -
Flags: review?(bjacob)
Comment 9•10 years ago
|
||
Michael, is your mozImageSmoothingEnabled patch still relevant?
Flags: needinfo?(mbebenita)
Comment 11•10 years ago
|
||
This is pretty much blocking PDF.js issue #3331, any update on when this can be fixed?
See Also: → https://github.com/mozilla/pdf.js/issues/3331
Updated•10 years ago
|
Flags: needinfo?(mbebenita)
| Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(mbebenita)
Attachment #8494856 -
Flags: review?(matt.woodrow)
Updated•10 years ago
|
Attachment #8494856 -
Flags: review?(matt.woodrow) → review+
Comment 12•10 years ago
|
||
Comment 13•10 years ago
|
||
Attachment #8494856 -
Attachment is obsolete: true
Attachment #8688158 -
Flags: review+
| Assignee | ||
Comment 14•10 years ago
|
||
Patch, fixed compiler error.
Attachment #8688158 -
Attachment is obsolete: true
| Assignee | ||
Updated•10 years ago
|
Attachment #8688191 -
Attachment description: patch.diff → Patch, reabased
Attachment #8688191 -
Flags: review+
Comment 15•10 years ago
|
||
| Assignee | ||
Comment 16•10 years ago
|
||
Attachment #8688191 -
Attachment is obsolete: true
Attachment #8688680 -
Flags: review+
Comment 17•10 years ago
|
||
Comment 18•9 years ago
|
||
| Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Keywords: checkin-needed
Comment 19•9 years ago
|
||
Keywords: checkin-needed
Comment 20•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment 21•9 years ago
|
||
Cool, thanks a lot!
You need to log in
before you can comment on or make changes to this bug.
Description
•