Closed Bug 448544 Opened 16 years ago Closed 12 years ago

Pause image animation when system idle.

Categories

(Core :: Graphics: ImageLib, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: dougt, Unassigned)

References

Details

(Keywords: helpwanted)

Attachments

(1 file)

When a mobile phone goes idle, we should stop image animations to save battery life.
it isn't clear how best to implement power saving mode in fennec.  any help or input appreciated.
Assignee: doug.turner → nobody
Keywords: helpwanted
Attachment #334577 - Flags: review?
Attachment #334577 - Flags: review?
I think we should also suspend animations for background windows.
See:
https://garage.maemo.org/svn/browser/mozilla/trunk/microb-eal/src/gecko/gmozillacppwrapper.cpp:3036
g_mozilla_engine_window_set_active
this patch is bitrotted to hell as a result of the new imgcontainer architecture.

Suspending for background windows should be pretty trivial once two other things land:
1) bug 512260
2) animation cleanup

After that, we should be be able to start animation when we lock the images and pause animation when we unlock them.
and by background windows I mean inactive tabs. Probably could be extended to windows if the window managing code learns how to use the api in bug 343515.
Is this feature still wanted? This patch is heavily rotted.
Whiteboard: closeme
We should implement this by suspending/throttling the refresh driver on system idle. No further work is required now that bug 666446 is implemented.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Whiteboard: closeme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: