platform_system_core/include/utils
Chet Haase b90c51a725 Use optimized display lists for all hwaccelerated rendering
Previously, display lists were used only if hardware acceleration
was enabled for an application (hardwareAccelerated=true) *and* if
setDrawingCacheEnabled(true) was called. This change makes the framework
use display lists for all views in an application if hardware acceleration
is enabled.

In addition, display list renderering has been optimized so that
any view's recreation of its own display list (which is necessary whenever
the visuals of that view change) will not cause any other display list
in its parent hierarchy to change. Instead, when there are any visual
changes in the hierarchy, only those views which need to have new
display list content will recreate their display lists.

This optimization works by caching display list references in each
parent display list (so the container of some child will refer to its
child's display list by a reference to the child's display list). Then when
a view needs to recreate its display list, it will do so inside the same
display list object. This will cause the content to get refreshed, but not
the reference to that content. Then when the view hierarchy is redrawn,
it will automatically pick up the new content from the old reference.

This optimization will not necessarily improve performance when applications
need to update the entire view hierarchy or redraw the entire screen, but it does
show significant improvements when redrawing only a portion of the screen,
especially when the regions that are not refreshed are complex and time-
consuming to redraw.

Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
2013-07-30 13:56:55 -07:00
..
ashmem.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
Asset.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
AssetDir.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
AssetManager.h More native work. 2013-07-30 13:56:54 -07:00
Atomic.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
BackupHelpers.h Only report "unknown metadata" once per restore helper 2013-07-30 13:56:51 -07:00
BitSet.h Add suuport for splitting touch events across windows. 2013-07-30 13:56:55 -07:00
BufferedTextOutput.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
ByteOrder.h Implement the C++ class to write the backed up file data. 2013-07-30 13:56:50 -07:00
CallStack.h dump callstack on Surface use error 2013-07-30 13:56:55 -07:00
Compat.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
Debug.h Support for marshalling pointers / intptr_t in Parcel. 2013-07-30 13:56:52 -07:00
Endian.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
Errors.h fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properly 2013-07-30 13:56:52 -07:00
FileMap.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
Flattenable.h remove a dependency of GraphicBuffer (libui) on Parcel (libbinder). 2013-07-30 13:56:52 -07:00
Functor.h Use optimized display lists for all hwaccelerated rendering 2013-07-30 13:56:55 -07:00
KeyedVector.h fix KeyedVector::replaceValueAt, which wouldn't even compile if used. 2013-07-30 13:56:49 -07:00
List.h Fix sim build. 2013-07-30 13:56:51 -07:00
Log.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
Looper.h Revert to using epoll_wait(). 2013-07-30 13:56:55 -07:00
misc.h get rid of utils.h 2013-07-30 13:56:50 -07:00
ObbFile.h OBB: use PBKDF2 for key generation. 2013-07-30 13:56:55 -07:00
Pool.h Native input dispatch rewrite work in progress. 2013-07-30 13:56:53 -07:00
PropertyMap.h Add initial support for cursor-based pointing devices. 2013-07-30 13:56:55 -07:00
RefBase.h Fix a bug in sp<> and wp<> which could cause memory corruptions 2013-07-30 13:56:53 -07:00
ResourceTypes.h Normalize output from aapt d 2013-07-30 13:56:55 -07:00
SharedBuffer.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
Singleton.h Purge Skia objects from GL caches as needed. 2013-07-30 13:56:54 -07:00
SortedVector.h improve Vector<> with types that can be trivially moved and remove some unused code. 2013-07-30 13:56:50 -07:00
StopWatch.h Native input dispatch rewrite work in progress. 2013-07-30 13:56:53 -07:00
StreamingZipInflater.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
String8.h Improve support for external keyboards. 2013-07-30 13:56:55 -07:00
String16.h Split UTF functions from String8/16 2013-07-30 13:56:55 -07:00
StringArray.h rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file. 2013-07-30 13:56:50 -07:00
SystemClock.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
TextOutput.h some work to try to reduce the code size of some native libraries 2013-07-30 13:56:50 -07:00
threads.h added RWLock C++ wrapper 2013-07-30 13:56:53 -07:00
Timers.h get rid of sleepForInterval() which didn't seem to be used anywhere in the source tree. Also get rid of ported.h which seem to be used only (possibly) in the sim. moved the implementation there. 2013-07-30 13:56:50 -07:00
Tokenizer.h Improve support for external keyboards. 2013-07-30 13:56:55 -07:00
TypeHelpers.h improve Vector<> with types that can be trivially moved and remove some unused code. 2013-07-30 13:56:50 -07:00
Unicode.h Split UTF functions from String8/16 2013-07-30 13:56:55 -07:00
Vector.h Even more native input dispatch work in progress. 2013-07-30 13:56:53 -07:00
VectorImpl.h Even more native input dispatch work in progress. 2013-07-30 13:56:53 -07:00
ZipFileCRO.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
ZipFileRO.h Change assets to use 64-bit API 2013-07-30 13:56:55 -07:00
ZipUtils.h auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00