Closed Bug 480088 Opened 15 years ago Closed 15 years ago

Use a single cached surface for painting with image surfaces

Categories

(Core :: Widget: Win32, defect)

ARM
Windows CE
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: vlad)

Details

Attachments

(1 file)

Since we're using an image surface for painting, we should just allocate a large chunk of memory once, and then keep reusing that.  Allocating a screen-size buffer is probably fine for most devices with CE, since the browser is likely to be fullscreen anyway -- we'd end up having to allocate a surface this size during full-page repaints anyway, and we avoid having to hunt in memory for a large enough chunk later on.

Note that we allocate a large chunk of memory and create new surfaces use this buffer for actual painting -- there's no reason to pay the cache & bandwidth cost of always dealing with the large surface, or even with dealing with a large stride, if we just need a smaller chunk of it.
Attachment #364045 - Flags: review?(pavlov)
Attachment #364045 - Flags: review?(pavlov) → review+
Comment on attachment 364045 [details] [diff] [review]
use a cached chunk of memory for painting

This is probably ok.  I do worry about it having a negative impact on our perceived memory usage, but lets give it a try.
Flags: wanted-fennec1.0+
checked in.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #364045 - Flags: approval1.9.1?
Attachment #364045 - Flags: approval1.9.1? → approval1.9.1+
Comment on attachment 364045 [details] [diff] [review]
use a cached chunk of memory for painting

a191=beltzner
vlad, do you want to land this on 1.9.1?
Nudge (in case this has been forgotten).
Comment on attachment 364045 [details] [diff] [review]
use a cached chunk of memory for painting

Revoking approval. We're cutting back on potential churn here. We can try again for 3.5.1
Attachment #364045 - Flags: approval1.9.1+ → approval1.9.1-
Flags: wanted1.9.0.x?
Flags: wanted1.9.0.x?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: