summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/ViewStateSerializer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite PictureSet with TURBO!John Reck2012-05-021-1/+0
| | | | | | | | | | | | | | | | | | | | 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
* On new content, attach functor directlyChris Craik2012-04-251-0/+4
| | | | | | | | bug:6323847 depends on frameworks/base change: https://android-git.corp.google.com/g/#/c/184313/ Change-Id: I8f21317af746d501c92e338ce678434a2479576c
* Rename several classesChris Craik2012-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | BaseTile,BaseTileTexture -> Tile,TileTexture Used in layers other than the base LayerGroup -> Surface Renamed to convey that it is a member of the SurfaceCollection, and that the layers grouped inside are painted together (if at all) DualTiledTexture -> SurfaceBacking Better conveys that this is the raster backing for a surface that can paint. It may be implemented with two tiled textures for now, but that isn't as important as its relationship to the surface. TiledTexture -> TileGrid Renamed to make it more clear that it was a container of tiles, and to be less similar to TileTexture Change-Id: I843f8603a2080cfe5a7313ba1c2eff10620f8aa2
* reimplement BaseLayerAndroid as a LayerAndroid subclassChris Craik2012-03-221-5/+4
| | | | | | Breaks low res tiling, and expanded rendering bounds. Change-Id: Iec3ba2adceb6bd95399594d29fd8c0b18c1122ce
* Fix layers ordering issue with Absolute positioned elementsNicolas Roard2012-03-131-1/+1
| | | | | | | | | - Promote absolute positioned elements to be composited - Reorder the elements as needed in LayerAndroid - Simplify fixed elements composition culling (don't do it anymore, we just promote everything and let the Layers sort things out) Change-Id: If76cf76a92410dec7e305a1a70c660d8597e399a
* replace XLOGC/XLOG with ALOGD/ALOGVChris Craik2012-03-121-20/+8
| | | | | | | Started using ALOGW/E for indicating warnings/errors Also delete the unused TilesTracker.h Change-Id: I1986a3057efd4c8e260dbc020e21c02d4d646cf3
* Introduce a LayerContent interfaceNicolas Roard2012-03-091-10/+16
| | | | | | | | | Layers can now use a LayerContent object to draw their content. We currently have two subclasses, one using an SkPicture (currently used for composited layers), the other using a PictureSet (that we use for the base layer). First step toward unification... Change-Id: I5e7fd06a653f02f8721613fd3a39d36fb64a8614
* Replace picture count with the SurfaceCollection countChris Craik2012-03-091-1/+0
| | | | | | Displays surface collection count on tiles when visual indicator is on. Change-Id: Ibe90792279849baff6f5bf0d71b80d9081471dc4
* Change the way we apply fixed position to layersNicolas Roard2012-03-081-29/+29
| | | | | | | | | With the latest refactoring we lost the possibility of having a layer other than LayerAndroid be fixed positioned. This CL remove the FixedLayerAndroid class (rename it into FixedPositioning) of the hierarchy, and use delegation to apply fixed position. Change-Id: Ib291fcaefe6a4431849ccfe2cf458fac6cac58aa
* Refactor LayerAndroid to add iframe subclassesNicolas Roard2012-03-071-7/+18
| | | | Change-Id: Ia3810e83a2d919ff5fa37b8fcd92e6cbbb63d569
* Refactor LayerAndroid and add a FixedLayerAndroid classNicolas Roard2012-03-061-35/+89
| | | | Change-Id: Ic94e67678e7f5783bf6690308d0a13ce2202d1f2
* Fix image layer codepathNicolas Roard2011-11-301-20/+4
| | | | | | | | | | | | | | - asynchronous loading - support for tiled content using TiledTexture - fix repaint/duplication bugs - share same textures as layers - disambiguate between images by computing a CRC code - added better debugging in TilesManager/ClassTracker to track memory usage bug:5661120 bug:5572134 bug:5521718 Change-Id: Id422fb991d6233bbe4dc6e5c3c7409468b7dca98
* Refactor the image sharing codeNicolas Roard2011-10-121-1/+2
| | | | | | | | | We add a separate Images Manager, working both in GL and software rendering. bug:5425148 Change-Id: Ib5bc88ad94d49c7f1eb969a716691ac98dc10b77
* Remove m_contentsImage usageJohn Reck2011-10-041-4/+28
| | | | | | Bug: 5410522 Change-Id: Id8457715665dbd51761900011beba57b7f634fff
* Clean up style and add some comments in LayerSteve Block2011-09-211-2/+2
| | | | | | | | | This is preparation for https://android-git.corp.google.com/g/#/c/134488/4 Refactoring only, no functional change. Bug: 5262656 Change-Id: I44e362cf35fc5080f7d9fba34183188d3a2a6331
* Refactoring: Moved 'SkLayer' to 'Layer' class in webkitChris Craik2011-06-301-3/+3
| | | | Change-Id: Ie1c24e5e402c539e0359810cfdf872178fa083c1
* Serialize LayerAndroidJohn Reck2011-06-071-1/+327
| | | | | | | For now skip other layer types Doesn't support animtations Change-Id: Id1ff75f3d4d213f56561fc5d9c01f7ffee05cc79
* Initial support for serializing the view stateJohn Reck2011-06-031-0/+97
Serializes only the base layer currently Change-Id: I5cff216a4fc1b08efe3a7955c616b91114f6bf0b