Closed
Bug 888906
Opened 11 years ago
Closed 11 years ago
cannot call DrawWindow to get a HiDPI rendering
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: heycam, Assigned: heycam)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
2.83 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
In my bug 821210 patch to get reftests rendering in their native resolution, I've modified reftest.js to take a snapshot by doing:
ctx.scale(2, 2);
before the:
ctx.drawWindow(window, 0, 0, 800, 600, ...flags...);
call. That would draw the 800x600 CSS pixel window in the 1600x2000 canvas.
Since bug 848482 landed, rather than getting the high resolution window snapshot, I get a scaled up view of an 800x600 rendering of the window (it looks like). Should that bug have affected whether drawWindow could give me a native resolution rendering of the window?
Assignee | ||
Comment 1•11 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #0)
> call. That would draw the 800x600 CSS pixel window in the 1600x2000 canvas.
>
> Since bug 848482 landed, rather than getting the high resolution window
> snapshot, I get a scaled up view of an 800x600 rendering of the window (it
> looks like). Should that bug have affected whether drawWindow could give me
> a native resolution rendering of the window?
s/800x600/800x1000/g
Comment 2•11 years ago
|
||
Yes, this is a bug.
We want to detect that the destination surface has a scale transform, and move that onto our temporary surface.
We also want to create our temporary surface at the scaled size.
Assignee | ||
Updated•11 years ago
|
Blocks: hidpi-tests
Assignee | ||
Comment 3•11 years ago
|
||
Updated•11 years ago
|
Attachment #775130 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•