This is retired content. This content is outdated and is no
longer being maintained. It is provided as a courtesy for
individuals who are still using these technologies. This content
may contain URLs that were valid when originally published, but now
link to sites or pages that no longer exist.
When the
SurfaceHeapclass is created, the constructor allocates a
heap starting from an address that you specify. Initially, drivers
should create a
SurfaceHeapobject, giving it the total memory size available
for graphics. Thereafter, that
SurfaceHeapobject can be used to request smaller blocks of
data.
When a
SurfaceHeapobject is destroyed, memory that has been
allocated for it, and all of its subheaps, is marked for reuse. If
the top-level heap is destroyed, all memory is deallocated.