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)

defect

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: carl.olsson, Assigned: mbx)

References

Details

(Whiteboard: [Shumway])

Attachments

(2 files, 4 obsolete files)

Attached file pattern_bug.html
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
Whiteboard: [Shumway]
Version: 7 Branch → Trunk
Blocks: 927828
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.
Attachment #8494856 - Flags: review?(bjacob)
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)
Michael, is your mozImageSmoothingEnabled patch still relevant?
Blocks: shumway-m5
No longer blocks: shumway-1.0
Flags: needinfo?(mbebenita)
Yes, it should still be relevant.
Flags: needinfo?(mbebenita)
This is pretty much blocking PDF.js issue #3331, any update on when this can be fixed?
Flags: needinfo?(mbebenita)
Flags: needinfo?(mbebenita)
Attachment #8494856 - Flags: review?(matt.woodrow)
Attachment #8494856 - Flags: review?(matt.woodrow) → review+
Attached patch Patch, rebased (obsolete) — Splinter Review
Attachment #8494856 - Attachment is obsolete: true
Attachment #8688158 - Flags: review+
Attached patch Patch, reabased (obsolete) — Splinter Review
Patch, fixed compiler error.
Attachment #8688158 - Attachment is obsolete: true
Attachment #8688191 - Attachment description: patch.diff → Patch, reabased
Attachment #8688191 - Flags: review+
Attached patch Fixed test case.Splinter Review
Attachment #8688191 - Attachment is obsolete: true
Attachment #8688680 - Flags: review+
Status: NEW → ASSIGNED
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Cool, thanks a lot!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: