Closed Bug 587861 Opened 14 years ago Closed 14 years ago

Clear D2DWindowSurface upon window destruction

Categories

(Core :: Widget, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

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

People

(Reporter: bas.schouten, Assigned: bas.schouten)

Details

Attachments

(2 files)

Right now we clear mD2DWindowSurface upon the nsWindow destruction. This means that the VRAM will be released once the garbage collection cycle destroys the action nsWindow object. This means that if I F5 rapidly in a window VRAM usage can go up to 600 MB easily before a GC occurs. By destroying the mD2DWindowSurface upon nsWindow::Destroy we can allocate the VRAM right away improving memory usage.
Attachment #466483 - Flags: review?(roc)
blocking2.0: --- → ?
blocking2.0: ? → beta5+
This broke my local builds...

You should have wrapped this in:

#ifdef CAIRO_HAS_D2D_SURFACE
#endif

like all other uses of mD2DWindowSurface in this file.
Attached patch fix the bustageSplinter Review
This should do it, I won't be able to land within the next few days, so once this has needed flags, if someone can checkin/ridealong this I'd be appreciative
Attachment #467294 - Flags: review?
Attachment #467294 - Flags: approval2.0?
Attachment #467294 - Flags: review?(roc)
Attachment #467294 - Flags: review?(bas.schouten)
Attachment #467294 - Flags: review?
Comment on attachment 467294 [details] [diff] [review]
fix the bustage

I already reviewed a version of this in another bug
Attachment #467294 - Flags: review?(roc)
Attachment #467294 - Flags: review?(bas.schouten)
Attachment #467294 - Flags: review+
Attachment #467294 - Flags: approval2.0?
Attachment #467294 - Flags: approval2.0+
Yeah, I had this patch too on bug 588510.
This has been superseeded by bug 588690.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: