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)
Tracking
(Not tracked)
        NEW
        
        
    
  
People
(Reporter: heycam, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file, 1 obsolete file)
| 10.72 KB,
          patch         | Details | Diff | Splinter Review | 
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.
| Comment 1•12 years ago
           | ||
This possibly depends on bug 780362.
| Reporter | ||
| Comment 2•12 years ago
           | ||
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.
| Reporter | ||
| Comment 3•12 years ago
           | ||
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 4•12 years ago
           | ||
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)
| Reporter | ||
| Comment 6•12 years ago
           | ||
The actual patch this time.
        Attachment #715245 -
        Attachment is obsolete: true
        Attachment #728779 -
        Flags: review?(dbaron)
| Reporter | ||
| Comment 7•12 years ago
           | ||
Comment on attachment 728779 [details] [diff] [review]
patch
A new patch will be needed.
        Attachment #728779 -
        Flags: review?(dbaron)
| Reporter | ||
| Updated•4 years ago
           | 
Assignee: cam → nobody
Status: ASSIGNED → NEW
| Updated•3 years ago
           | 
Severity: normal → S3
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•