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.
Component: General → Canvas: 2D
Product: Firefox → Core
QA Contact: general → canvas.2d
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.
Attachment #568938 - Attachment mime type: text/plain → text/html
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
Version: 7 Branch → Trunk
Till says this is a hard blocker for gfx fidelity, but might be easy to fix.
Priority: -- → P1
Prototype implementation, will follow up will try results.
Assignee: nobody → mbebenita
Attachment #8494856 - Attachment description: With a test case. → Take imageSmoothingEnabled into account when creating pattern fills w/ test case.
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.
Michael, is your mozImageSmoothingEnabled patch still relevant?
Yes, it should still be relevant.
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
Attachment #8494856 - Flags: review?(matt.woodrow)
Attachment #8494856 - Flags: review?(matt.woodrow) → review+
Patch, fixed compiler error.
Attachment #8688158 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Cool, thanks a lot!
You need to log in before you can comment on or make changes to this bug.