summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unsafe use of SkRefCnt::getRefCnt() in ImagesManagerChris Craik2012-08-311-2/+10
| | | | | | | | | | | | | | | | | | The function isn't threadsafe, so races would occur and certain textures wouldn't be removed from ImagesManager's master list. The list would then be iterated over, all items dereferenced, and bad times would ensue. The SkRefCnt class uses atomic inc/dec to decide when to destroy an object, but reading such an integer non-atomically isn't safe. Instead use the real signal we're looking for - when the ImageTexture is deleted - to know when to remove the ImageTexture from ImagesManager's list. Mutual exclusion from editing the list is now maintained by only unref-ing the ImageTexture within releaseImage, which holds the ImagesManager's m_imagesLock (which we already do anyway). bug:6859278 Change-Id: I75ebf79f2617484e7df355d6539226ce64882369
* Fix memory leakNicolas Roard2012-05-241-2/+2
| | | | | bug:6535726 Change-Id: Id944448a9dbafa951fd3c7eab0f248380d0a5314
* Add tracing to interesting/potentially costly functionsChris Craik2012-05-231-0/+1
| | | | | | bug:6530473 bug:6344165 Change-Id: I40b190036af8c021134d5ac450e3217098ba2296
* Reorganize platform/graphics/androidNicolas Roard2012-04-061-0/+134
Change-Id: Idc67155cfa99784dcd931e705336bfa063ecae46