summaryrefslogtreecommitdiffstats
path: root/libs/hwui/thread
Commit message (Collapse)AuthorAgeFilesLines
* Properly account for created paths in the cacheRomain Guy2013-08-211-1/+1
| | | | Change-Id: I47b89b3085cefab6daac9194e7bfd3c140b37fa2
* Add an on-screen overdraw counterRomain Guy2013-05-031-1/+1
| | | | | | | | | The counter can be enabled by setting the system property called debug.hwui.overdraw to the string "count". If the string is set to "show", overdraw will be highlighted on screen instead of printing out a simple counter. Change-Id: I9a9c970d54bffab43138bbb7682f6c04bc2c40bd
* Stop worker threads on memory trim & fix bad pointer accessRomain Guy2013-03-202-0/+12
| | | | Change-Id: I6fe7e31aeb6dd41fa65ab952caed97bc2da510d7
* Add TaskManager APIRomain Guy2013-03-125-1/+354
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API can be used to run arbitrary tasks on a pool of worker threads. The number of threads is calculated based on the number of CPU cores available. The API is made of 3 classes: TaskManager Creates and manages the worker threads. Task Describes the work to be done and the type of the output. A task contains a future used to wait for the worker thread to be done computing the result of the task. TaskProcessor The processor dispatches tasks to the TaskManager and is responsible for performing the computation required by each task. A processor will only be asked to process tasks sent to the manager through the processor. A typical use case: class MyTask: Task<MyType> class MyProcessor: TaskProcessor<MyType> TaskManager m = new TaskManager(); MyProcessor p = new MyProcessor(m); MyTask t = new MyTask(); p.add(t); // Waits until the result is available MyType result = t->getResult(); Change-Id: I1fe845ba4c49bb0e1b0627ab147f9a861c8e0749
* Precache paths from a worker threadRomain Guy2013-03-113-0/+172
Change-Id: I3e7b53d67e0e03e403beaf55c39350ead7f1e309