Open Bug 821210 Opened 12 years ago Updated 3 years ago

reftest takes low resolution screen shots when run on a high DPI display

Categories

(Testing :: Reftest, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: heycam, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

Running reftests locally on my MBP with its high DPI display, the test/reference images seem to be low resolution versions of the actual window contents. It would be good if we could output 2x screen shots from the reftest harness and for the reftest analyzer to show them.
This possibly depends on bug 780362.
Attached patch patch (obsolete) — Splinter Review
This makes the reftest harness capture native resolution images and updates the reftest analyzer to handle them. The analyzer is updated to have this behaviour: * When viewing a standard DPI reftest log on a standard DPI machine, no change. * When viewing a HiDPI reftest log on a standard DPI machine, the reftest images are scaled down to 800x1000 and you can only inspect one in every four pixels by moving the mouse over the image. * When viewing a standard DPI reftest log on a HiDPI machine, no change; the reftest images are shown at 800x1000 CSS pixels, and you can inspect every pixel of the original image. * When viewing a HiDPI reftest log on a HiDPI machine, the reftest images are shown scaled to 800x1000 CSS pixels, which for a 2x log and machine, will result in the images being shown at their native resolution. You can only inspect one in every four pixels with the mouse. It probably makes sense to allow displaying the images at 1dpx = 1 CSS px so that you can inspect each pixel value, but I haven't done that for the moment. This also probably only works well for integer values of layout.css.devPixelsPerPx.
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #715245 - Flags: review?(dbaron)
I didn't seem to need the new high DPI backing store canvas functions btw; I just sized them to the device pixel size I wanted and scaled the context by devPixelsPerPx before calling drawWindow().
Comment on attachment 715245 [details] [diff] [review] patch This appears to be a reftest log and not a patch.
Comment on attachment 715245 [details] [diff] [review] patch Indeed. Sorry for not looking at this sooner.
Attachment #715245 - Flags: review?(dbaron)
Attached patch patchSplinter Review
The actual patch this time.
Attachment #715245 - Attachment is obsolete: true
Attachment #728779 - Flags: review?(dbaron)
Depends on: 888906
Comment on attachment 728779 [details] [diff] [review] patch A new patch will be needed.
Attachment #728779 - Flags: review?(dbaron)
Assignee: cam → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: