Closed
Bug 534788
Opened 15 years ago
Closed 15 years ago
Make USE_WIN_SURFACE runtime switchable
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: bas.schouten, Assigned: joe)
References
Details
Attachments
(1 file, 2 obsolete files)
In libpr0n's imgFrame USE_WIN_SURFACES is currently a #define. For D2D we don't want this to be used though, and we want to be able to switch to D2D based on a pref. Therefor windows surface usage should not be compile time switched.
Assignee | ||
Updated•15 years ago
|
Component: Graphics → ImageLib
QA Contact: thebes → imagelib
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #418217 -
Flags: review?(vladimir)
Assignee | ||
Comment 2•15 years ago
|
||
The previous patch a) didn't compile and b) wasn't really that good anyways. Here's a better one.
Attachment #418217 -
Attachment is obsolete: true
Attachment #418234 -
Flags: review?(vladimir)
Attachment #418217 -
Flags: review?(vladimir)
Comment 3•15 years ago
|
||
Comment on attachment 418234 [details] [diff] [review]
make USE_WIN_SURFACE a global variable v2
We should be able to just test the global in ShouldUseImageSurface() and avoid change the preprocessor define and all that other code churn.
Attachment #418234 -
Flags: review?(vladimir) → review-
Assignee | ||
Comment 4•15 years ago
|
||
Address comments; makes this patch much simpler.
Attachment #418234 -
Attachment is obsolete: true
Attachment #426316 -
Flags: review?(jmuizelaar)
why is that variable not controlled by the render mode?
Assignee | ||
Comment 6•15 years ago
|
||
It will be, eventually. Probably as a follow-up to this patch.
Reporter | ||
Comment 7•15 years ago
|
||
As jrmuizel suggested, a better way is to use the ShouldUseImageSurfaces function which is already around. And the easiest way is to check the RenderMode from there directly, without a global. The D2D bug 527707 now contains a patch that does this.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
Updated•15 years ago
|
Attachment #426316 -
Flags: review?(jmuizelaar)
You need to log in
before you can comment on or make changes to this bug.
Description
•