Closed
Bug 587861
Opened 14 years ago
Closed 14 years ago
Clear D2DWindowSurface upon window destruction
Categories
(Core :: Widget, defect)
Tracking
()
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta5+ |
People
(Reporter: bas.schouten, Assigned: bas.schouten)
Details
Attachments
(2 files)
1.27 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
645 bytes,
patch
|
roc
:
review+
roc
:
review+
roc
:
approval2.0+
|
Details | Diff | Splinter Review |
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)
Attachment #466483 -
Flags: review?(roc) → review+
Assignee | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Updated•14 years ago
|
blocking2.0: ? → beta5+
Comment 1•14 years ago
|
||
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.
Comment 2•14 years ago
|
||
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?
Updated•14 years ago
|
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+
Assignee | ||
Comment 4•14 years ago
|
||
Yeah, I had this patch too on bug 588510.
Assignee | ||
Comment 5•14 years ago
|
||
This has been superseeded by bug 588690.
Updated•14 years ago
|
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.
Description
•