Closed Bug 534788 Opened 15 years ago Closed 15 years ago

Make USE_WIN_SURFACE runtime switchable

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows Vista
defect
Not set
normal

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.
Component: Graphics → ImageLib
QA Contact: thebes → imagelib
Attachment #418217 - Flags: review?(vladimir)
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)
Blocks: 527707
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-
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?
It will be, eventually. Probably as a follow-up to this patch.
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
Attachment #426316 - Flags: review?(jmuizelaar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: