Closed
Bug 591139
Opened 14 years ago
Closed 14 years ago
Disable hardware acceleration in safe mode
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta5+ |
People
(Reporter: joe, Assigned: joe)
References
Details
Attachments
(2 files, 1 obsolete file)
5.13 KB,
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
969 bytes,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
We need to disable all hardware acceleration when we are in safe mode.
Attachment #469740 -
Flags: review?(bas.schouten)
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → joe
Assignee | ||
Updated•14 years ago
|
blocking2.0: --- → beta5+
Comment 1•14 years ago
|
||
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+
Assignee | ||
Comment 2•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 3•14 years ago
|
||
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 ...
Comment 4•14 years ago
|
||
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?
Updated•14 years ago
|
Attachment #470235 -
Flags: review? → review?(bas.schouten)
Updated•14 years ago
|
Attachment #470235 -
Flags: review?(bas.schouten) → review+
Comment 5•14 years ago
|
||
Attachment #470235 -
Attachment is obsolete: true
Attachment #470250 -
Flags: review+
You need to log in
before you can comment on or make changes to this bug.
Description
•