summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/PictureSet.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implements a recording GraphicsContextNicolas Roard2012-04-061-2/+36
| | | | Change-Id: I41feadb23dce25af321331c459eb159c6141831b
* replace XLOGC/XLOG with ALOGD/ALOGVChris Craik2012-03-121-89/+70
| | | | | | | Started using ALOGW/E for indicating warnings/errors Also delete the unused TilesTracker.h Change-Id: I1986a3057efd4c8e260dbc020e21c02d4d646cf3
* Minor cleanup in PictureSetJohn Reck2012-03-011-74/+52
| | | | | | | | | | Remove unused variable from add() Switch mArea from SkRegion to SkIRect (we only ever used the region's bounds) Restrict draw's inval checking to within content rect - prevents an issue where after scaling/transforms the canvas clip can end up slightly negative, which results in drawing all the pictures in the list even if we only need to draw a partial inval Change-Id: Ie6e06437af2e326ee7d9286db65858d8886ec15d
* Delete navcache nativeJohn Reck2012-02-271-3/+3
| | | | | | Will clean up the JNI in a later CL Change-Id: I448fe5592026c325c3b2fa1c90f174674bf358b1
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-12/+12
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I35a9fa5e53a83a9c9a920333a3752dd151fbd3b8
* Removing ANDROID_INSTRUMENTATION codeKristian Monsen2011-11-171-1/+16
| | | | | | | | | | | | | | This has not been used for years, and due to WebKit merges the results are not accurate anymore. The resulting code is cleaner, less likely to create merge conflicts, and does not give the impression that this can be turned on and it will still work. Needs CL: https://android-git.corp.google.com/g/#/c/148912/ Change-Id: I617ad00c103ab72038371a3203452d2ccec0e50c
* Merge "Fine-tune the number of buckets in PictureSet add some clearing logic ↵Nicolas Roard2011-09-301-1/+33
|\ | | | | | | as well"
| * Fine-tune the number of buckets in PictureSetNicolas Roard2011-09-301-1/+33
| | | | | | | | | | | | | | add some clearing logic as well bug:5145259 bug:5255262 Change-Id: I764e2b67ff15893e853e36185cd610e7293d0129
* | Initialize to BUCKET_SIZE instead of 0Russell Brenner2011-09-301-7/+25
|/ | | | | | | | | | Some execution path appears to be leaving mBucketSizeX and/or Y set to 0, causing a divide-by-zero exception. This should only be feasible when mWidth and mHeight are also 0, but, to keep things safe, we'll initialize to BUCKET_SIZE instead. Bug: 5391435 Change-Id: I4e01f980731619e6a6fb70a6eb315c44dd677c7b
* Make bucket sizes in increments of 256Russell Brenner2011-09-271-7/+39
| | | | | | | | | As pages grow, limit the number of bucket refills by making them in chunks of 256 (BUCKET_SIZE). This also fixes a divide-by-zero error in the earlier update to limit the bucket brigade. Bug: 5382243 Change-Id: I4ee6eb86c5934175b7cf0f7b69bcfb416d68b967
* Limit the number of buckets in a PictureSetRussell Brenner2011-09-261-32/+40
| | | | | | | | | | | | | Added MAX_BUCKET_COUNT_X and _Y so that absurdly large pages, such as those in LayoutTests, don't run out of memory due to millions of buckets. Renamed checkDimensions() to setDimensions() and made inval an optional parameter so that it can be used more generally within PictureSet to adjust settings. Bug: 5300146 Change-Id: Ic6c2dc97085ef38d5782aa005b71a6797d165e24
* Fix invalidation rect sizesBen Murdoch2011-09-161-17/+4
| | | | | | | | | | | | When splitting the invalidation rect over the tiles that it invalidates, we need to use the tile's offset to calculate the top/left co-ordinate in the case that the inval rect only covers part of the tile. (See change Ie3b4be68 for the regression) Bug: 4965594 Change-Id: I6a18f1d3d223f5389b0f4f35fab9e579f499e9da
* Implement PictureSet(SkPicture*) ctor in FAST_PICTURESET caseJohn Reck2011-09-071-0/+21
| | | | | | Bug: 5270617 Change-Id: I5bcdf551a028588aa34956f98039d893d646b362
* Enable double buffering via base tilesChris Craik2011-09-021-1/+16
| | | | | | | | | | | | bug:2522049 allocate textures and tiles using the gldraw count when they were most recently prepared remaining issues: -layers still flicker (presumably from texture stealing) -layers aren't double buffered yet Change-Id: Iccdf68326d7d476269d4e3a13903aaab249ee92d
* Enable the FAST_PICTURESET codepathNicolas Roard2011-08-311-1/+1
| | | | | bug:5218173 bug:5145259 Change-Id: I4518185eb8501dffeef99c08c4ae703c63326e91
* Implement a faster picturesetNicolas Roard2011-08-311-18/+358
| | | | | | | | Cluster the invalidations in regular buckets bug:5218173 bug:5145259 Change-Id: Ie3b4be6848b51ca0306bd163803635f9481ace9b
* Fix PictureSet invlidation rectangle bugBen Murdoch2011-08-261-2/+2
| | | | | | | | | | | | | Set the height of the invalidation rectangle correctly. The last parameter to SkRect::set should be the bottom of the rectangle, not the desited height. Also, clear the content when we navigate between pages to avoid showing any stale content. Bug: 5213749 Change-Id: Ic75b9e9d8632750a15a03ebfbd4291fad03fca6a
* Fix compiler error when DEBUG is turned onTeng-Hui Zhu2011-06-211-1/+1
| | | | Change-Id: I1a9d8eab3e5259eade94fc9e825ec4d162a1e392
* Fix issues with setting viewstate before initializingJohn Reck2011-06-041-2/+8
| | | | | | | | | Allow drawing without a CachedRoot (just skip drawing extras in that case) Initialize PictureSet correctly when using the SkPicture ctor If delay-setting a layer on glWebViewState, set isAfterFirstLayout to true to force the baseLayer update. Change-Id: I9b24fd2e8450acf0138433edce8700c9ec227e52
* Initial support for serializing the view stateJohn Reck2011-06-031-0/+16
| | | | | | Serializes only the base layer currently Change-Id: I5cff216a4fc1b08efe3a7955c616b91114f6bf0b
* Fix the way we maintain the list of Pictures in PictureSet.Nicolas Roard2011-05-241-85/+170
| | | | | | | This improves drawing performances on the base surface by a decent amount. Change-Id: I59b63c0e5748eed2c729024c11a5da390faefda7
* Merge WebKit at r75993: Move WebKit/android files to SourceBen Murdoch2011-05-161-0/+676
Change-Id: Ifa871f8320bdb3a09fe189fffecc23f702c394b9