summaryrefslogtreecommitdiffstats
path: root/libs/hwui/ResourceCache.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unnecessary copy when invoking drawBitmap(int[])Romain Guy2012-05-151-2/+2
| | | | | | Bug #6483390 Change-Id: I4d2d725ef50c9401b4bd998b6160128102b40745
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-3/+3
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* Reduce the amount of data cached by the gradients cache.Romain Guy2011-08-011-6/+0
| | | | Change-Id: I8546f5a5ecf38031c9a40bdcc434d4c7f22da63d
* Fix another memory leak in OpenGLRendererRomain Guy2011-06-221-19/+8
| | | | Change-Id: I23ed56891452a05cf3ca13f6919c4fef90d5ff4e
* Skia Merge (revision 808)Derek Sollenberger2011-02-221-8/+8
| | | | | | This is a companion CL to the one found in /external/skia Change-Id: If81748545435cab20a5d8479329ab333cb973e16
* Fix crash when Paths are GCd in hw accelerated appsChet Haase2011-02-041-0/+35
| | | | | | | | | | | | | | | | | | A recent change to optimize path rendering didn't account for the destruction of native objects by the VM finalizer. We may be done with the Java level version before we're done with the native structure that's used by the display list. For example, a drawing method on a View that creates a temporary path to render into the canvas will implicitly create a native structure that is put onto the GL display list. That temporary path may go away, but the native version should stick around as long as the display list does. The fix is to refcount the original native version of the path and only delete it when the refcoutn reaches zero (which means that it is no longer needed by any display list). This is a similar mechanism used for bitmaps and shaders. Change-Id: I4de1047415066d425d1c689aa60827f97729b470
* Don't crash Launcher on config change.Romain Guy2011-01-141-5/+5
| | | | Change-Id: Ibbbd7146c5ff69e9639b433f39041053654d808c
* Ensure bitmaps aren't freed while referenced from a display listPatrick Dubroy2010-12-201-6/+2
| | | | | Also removes the reference queue finalizers. They aren't necessary anymore now that Bitmaps are allocated in the heap.
* Allocate bitmap backing buffers in the Java heap.Patrick Dubroy2010-12-141-2/+6
| | | Change-Id: I60f6ccff13357c1c518e9d56b02fe0171637edd1
* Fix hang in native bitmap recycling due to nested mutex locksChet Haase2010-11-231-5/+0
| | | | Change-Id: Ic37d5408ddb3f68aba6520fb0c78ffde91dfbe62
* make ResourceCache for display lists thread-safeChet Haase2010-11-111-0/+13
| | | | Change-Id: I41885b4ae249d7d7c000bab17bf32340ba85ab3a
* Free resources only from the GL context thread.Romain Guy2010-11-111-4/+4
| | | | | | | | | | Bug #3179882 Resources were freed following garbage collections on a worker thread. This worker thread had no EGL context, which would cause the renderer to incorrectly assume that the memory was liberated. Change-Id: Ifdb51f94ddf42641e8654522787bfac532976c7c
* Optimizing ColorFilter in display listsChet Haase2010-10-261-1/+33
| | | | Change-Id: Ie4d5e5b0bc45e0ce47bba144049303c270762e54
* DisplayList optimizations and fixes.Chet Haase2010-10-261-42/+0
| | | | | | | | We now use a copy of SkPaint objects to avoid having it changed from under us. We reuse copies that have not changed. We also copy the SkMatrix every time to avoid the same problem. Change-Id: If3fd80698f2d43ea16d23302063e0fd8d0549027
* Optimizing display lists by referencing pointers to resources instead of ↵Chet Haase2010-10-211-0/+219
copying them Change-Id: I81ad3551d74aa1e5bb64d69e33d2eb29a6c1eb6a