summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/SurfaceBacking.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Determine maxZoomScale from bitmap/text drawingChris Craik2012-10-011-5/+5
| | | | | | bug:7247750 Change-Id: I8238acc2c20942ab2f42936d16a03226909aebcd
* SurfaceBackings are always zoomable once zoomableChris Craik2012-07-191-8/+20
| | | | | | | | | | Previously toggling hasText for the content of the SurfaceBacking was enough to cause it to change scale entirely each time the value was changed. Now the allowZoom flag is sticky to avoid unnecessary full-SurfaceBacking repaints. Additionally, changes from allowZoom true->false will not trigger delay. Change-Id: Ie6a13850f86d21f5a12a184c08b940aa2156ef07
* Use newest available SurfaceBacking scale when counting texture usageChris Craik2012-05-251-2/+2
| | | | | | | | Using m_scale would mean that while zooming out, the clipped area would get larger, but the scale would stay the same. bug:6561401 Change-Id: I0806ecb8f565c4d227a2be2b7a27a0af6aff7b46
* Use Surface areas to compute tile usageChris Craik2012-05-231-16/+17
| | | | | | | | Previously we used the surface's first layer's area, which is often incorrect in the case of significant layer merging. bug:6545187 Change-Id: Ied3e5e3cd894b145ed905f8ba83649b3c4f3b1dd
* Remove paint tile operations for stale paintersChris Craik2012-05-181-0/+7
| | | | | | | | bug:6516612 also adds ClassTracker to several classes Change-Id: I9a503084240d4935fba300a3256d266a2982dcc0
* Fix invalidations sent to frameworkNicolas Roard2012-05-171-4/+5
| | | | | bug:6479200 bug:6323847 bug:4124445 Change-Id: I1a4058ba6c69d3e285b6274d99a6eafcbf1cdc6f
* Unify the naming of rectangles used for draw.Teng-Hui Zhu2012-05-031-10/+10
| | | | | | | | | 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
* Rewrite PictureSet with TURBO!John Reck2012-05-021-2/+4
| | | | | | | | | | | | | | | | | | | | 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
* prevent double TileGrid preparationChris Craik2012-04-181-36/+50
| | | | | | | | bug:6346848 also renamed TileGrid* variables for clarity Change-Id: Ie0e56a6e1e85db426c4944b03125248cd6a647c0
* Separate prefetching TileGrid from front/backChris Craik2012-04-121-15/+26
| | | | | | | Can now draw all available tiles while preparing new zoom level bug:5690291 Change-Id: Ic08acc59e052d6b05d282329eed2cc526cb8f2f3
* Reorganize platform/graphics/androidNicolas Roard2012-04-061-0/+171
Change-Id: Idc67155cfa99784dcd931e705336bfa063ecae46