summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/ImageTexture.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid unsafe use of SkRefCnt::getRefCnt() in ImagesManagerChris Craik2012-08-311-0/+1
| | | | | | | | | | | | | | | | | | 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
* Null check to fix crashBart Sears2012-07-231-1/+3
| | | | | | | Need to make sure that img is not zero. bug: 6864545 Change-Id: I2a2c5440347681b462abaa5ac9101ddb6137c8c4
* Crash fix by checking null pointerTeng-Hui Zhu2012-06-121-1/+1
| | | | | | | bug:6579681 Regression from https://android-git.corp.google.com/g/#/c/197452/ Change-Id: If185faec6bb2d014c304afbb8ff752ebfc6e4b51
* Add fast drawing path for repeat background image.Teng-Hui Zhu2012-06-071-0/+6
| | | | | | | | | In the slow draw path, we are drawing the small background image one by one. Now in the fast path, we can use the GL shader to repeat the iamges. bug:6579681 Change-Id: I8ab413bdd073cb867002b77b36d4a1361290ecb2
* Account for image scaling in calculating ImageTexture visible areaChris Craik2012-05-151-3/+32
| | | | | bug:6494473 Change-Id: I03e72faa0815337b46930dbaeb9062c057aa1e2a
* Complete implementation fixed backgroundNicolas Roard2012-05-081-2/+6
| | | | | | | | | | - extract image for body background (a lot more memory-friendly) - implement tiling / repeat - handles background color bug:1352305 Change-Id: I0efa27e09416e3c3848a4a53ced650cbb3d9f7ce
* Fix visible area calculation.Mangesh Ghiware2012-05-081-1/+2
| | | | | | | | | | | Use the inverse of draw tranform to convert from content to layers coordinate space. Also, if the draw transform isn't limited to 2D space, return the entire content area. Above conversion doesn't preserve 3D. Bug: 6077575 Change-Id: I8393de0597ae5cd739b3df10c087cedd234ac9f0
* Unify the naming of rectangles used for draw.Teng-Hui Zhu2012-05-031-7/+7
| | | | | | | | | The rects are referring to the same rect under different coordinates, so we just prefix the coordinates' name to differentiate the rects. This is pure refactor, no functional change. bug:6338456 Change-Id: Ic072a4f5aa56a25751e0151a697c0e31bca94ef5
* prevent double TileGrid preparationChris Craik2012-04-181-13/+13
| | | | | | | | bug:6346848 also renamed TileGrid* variables for clarity Change-Id: Ie0e56a6e1e85db426c4944b03125248cd6a647c0
* remove several unneeded variables/parametersChris Craik2012-04-131-2/+2
| | | | Change-Id: I862487e8700a408e9e2f7f4dc7d034674ac454d0
* Treat image texture TileGrids as non-base surfacesChris Craik2012-04-101-4/+2
| | | | | | | Was ignoring transform calculation bug:6317028 Change-Id: I9d5d491ef9eb853535e18a8ad10ab387d77e2d80
* Reorganize platform/graphics/androidNicolas Roard2012-04-061-0/+256
Change-Id: Idc67155cfa99784dcd931e705336bfa063ecae46