OGL CleanupResources should cleanup Texture resources too

RESOLVED FIXED in mozilla12

Status

()

Core
Graphics
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: romaxa, Assigned: romaxa)

Tracking

(Depends on: 1 bug)

Trunk
mozilla12
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Assignee)

Description

5 years ago
On maemo we found that it is better to simply cleanup LayerManagerOGL resources when browser goes to background, and call Initialize() again when it comes to foreground. (instead of LayerManager switch HW->SW which has some problems with ShadowLayers).

It works mostly fine, but we should also cleanup Texture based resources which are keeping reference to GLContext (invalid after CleanupResources call) and later might crash.
(Assignee)

Comment 1

5 years ago
Created attachment 588605 [details] [diff] [review]
Cleanup texture resources

This should cleanup most of resources.
Assignee: nobody → romaxa
Status: NEW → ASSIGNED
Attachment #588605 - Flags: review?(matt.woodrow)
Attachment #588605 - Flags: review?(matt.woodrow) → review+
(Assignee)

Comment 2

5 years ago
Created attachment 588824 [details] [diff] [review]
Minor modification for reftests (Null check for root layer)
https://hg.mozilla.org/mozilla-central/rev/797896e68634 (merge from inbound)
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
Depends on: 793604
You need to log in before you can comment on or make changes to this bug.