Closed
Bug 1158284
Opened 9 years ago
Closed 9 years ago
gfxPlatform::InSafeMode, some pref cleanup, lazier evaluation for acceleration
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: milan, Assigned: milan)
Details
Attachments
(1 file, 1 obsolete file)
11.69 KB,
patch
|
milan
:
review+
|
Details | Diff | Splinter Review |
Just a place to park all these small changes. May as well have a simple utility to check if we're in safe mode, this will not change during app lifetime. Use gfxPrefs methods in a few places where we don't and only evaluate some of the things needed to decide if we should accelerate or not once we actually need those values.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → milan
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8597391 -
Flags: review?(botond)
Comment 2•9 years ago
|
||
Comment on attachment 8597391 [details] [diff] [review] Utility function for safe mode and pref cleanup. r=botond Review of attachment 8597391 [details] [diff] [review]: ----------------------------------------------------------------- r+ with comment. ::: gfx/thebes/gfxPlatform.cpp @@ +1768,5 @@ > + if (!sSafeModeInitialized) { > + nsCOMPtr<nsIXULRuntime> xr = do_GetService("@mozilla.org/xre/runtime;1"); > + if (xr) { > + xr->GetInSafeMode(&sInSafeMode); > + } Set sSafeModeInitialized to true.
Attachment #8597391 -
Flags: review?(botond) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #2) > Comment on attachment 8597391 [details] [diff] [review] > Utility function for safe mode and pref cleanup. r=botond > > Review of attachment 8597391 [details] [diff] [review]: > ----------------------------------------------------------------- > > r+ with comment. > > ::: gfx/thebes/gfxPlatform.cpp > @@ +1768,5 @@ > > + if (!sSafeModeInitialized) { > > + nsCOMPtr<nsIXULRuntime> xr = do_GetService("@mozilla.org/xre/runtime;1"); > > + if (xr) { > > + xr->GetInSafeMode(&sInSafeMode); > > + } > > Set sSafeModeInitialized to true. Good catch, thanks.
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a826d2e8747a
Attachment #8597391 -
Attachment is obsolete: true
Attachment #8597407 -
Flags: review+
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dd54590ebfbd
Keywords: checkin-needed
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dd54590ebfbd
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•