Closed Bug 591139 Opened 14 years ago Closed 14 years ago

Disable hardware acceleration in safe mode

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta5+

People

(Reporter: joe, Assigned: joe)

References

Details

Attachments

(2 files, 1 obsolete file)

We need to disable all hardware acceleration when we are in safe mode.
Attachment #469740 - Flags: review?(bas.schouten)
Assignee: nobody → joe
blocking2.0: --- → beta5+
Comment on attachment 469740 [details] [diff] [review] Disable hw accel in safe mode We should followup with putting all the enable acceleration or not logic in a single function on nsBaseWidget, but for now this is fine.
Attachment #469740 - Flags: review?(bas.schouten) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment on attachment 469740 [details] [diff] [review] Disable hw accel in safe mode >#ifdef CAIRO_HAS_D2D_SURFACE > NS_RegisterMemoryReporter(new D2DCacheReporter()); > NS_RegisterMemoryReporter(new D2DVRAMReporter()); > mD2DDevice = NULL; > > PRBool d2dDisabled = PR_FALSE; > nsresult rv = pref->GetBoolPref("gfx.direct2d.disabled", &d2dDisabled); > if (NS_FAILED(rv)) > d2dDisabled = PR_FALSE; > >- if (isVistaOrHigher && !d2dDisabled) { >+ nsCOMPtr<nsIXULRuntime> xr = do_GetService("@mozilla.org/xre/runtime;1"); >+ PRBool safeMode = PR_FALSE; >+ if (xr) >+ xr->GetInSafeMode(&safeMode); ... > #endif > > PRInt32 rmode; >- if (NS_SUCCEEDED(pref->GetIntPref("mozilla.widget.render-mode", &rmode))) { >+ if (!safeMode && >+ NS_SUCCEEDED(pref->GetIntPref("mozilla.widget.render-mode", &rmode))) { Sadly safeMode is only defined if CAIRO_HAS_D2D_SURFACE is ...
in the likely chance this is not reviewed in the next hour, I'll appreciate someone landing for me during the day on Sunday, I provided a pre-emptive checkin comment for that task.
Attachment #470235 - Flags: review?
Attachment #470235 - Flags: review? → review?(bas.schouten)
Attachment #470235 - Flags: review?(bas.schouten) → review+
Attached patch rebasedSplinter Review
Attachment #470235 - Attachment is obsolete: true
Attachment #470250 - Flags: review+
See Also: → 1689845
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: