summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/GLUtils.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve the CPU upload path.Teng-Hui Zhu2012-06-261-2/+2
| | | | | | Swap the SkBitmap instead of a copy to save the memory bandwidth. Change-Id: I0998248a9a87ce4058898e66a4739995da9c003c
* Fix visible area calculation.Mangesh Ghiware2012-05-081-0/+1
| | | | | | | | | | | 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
* Rewrite PictureSet with TURBO!John Reck2012-05-021-1/+5
| | | | | | | | | | | | | | | | | | | | This changes how partial invals are done by adding a hybrid mode. What we used to do is generate a SkPicture for the new area. This SkPicture would possibly be larger than the actual inval, depending on various merge rules (more SkPictures == slower to draw a tile) The new code rewrites PictureSet entirely, preserving many of the old rules but cleans up the code and adds the concept of a "PrerenderedInval". This is a partial inval that WebKit has rasterized. By having WebKit produce both a SkPicture and a SkBitmap, we avoid needing to play back the picture and avoid overdrawing. We take this SkBitmap, and simply update the front textures with it. This gives us full partial invals through the entire system without hitting any driver bugs, and with minimal copies. And while the SkPicture may be larger than the inval, the SkBitmap that is rasterized is not - it matches the area webkit has said is dirty. Change-Id: Ieb7ecc9db0d4f679102fda004a43399f9b319ebc
* Better handle the EGL context lost situation.Teng-Hui Zhu2012-04-201-1/+0
| | | | | | | | | Unless framework provide a better message, we can't avoid this EGL context issue totally if mis-match happen again. Clean up some obsolete code. Change-Id: Ica03daecd58f9757c8cad41e0f40d5d51b041748
* Reorganize platform/graphics/androidNicolas Roard2012-04-061-0/+98
Change-Id: Idc67155cfa99784dcd931e705336bfa063ecae46