summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform
Commit message (Collapse)AuthorAgeFilesLines
* Deep copy animation keyframe namesChris Craik2012-10-081-1/+3
| | | | | | | | bug:7266561 this makes them safe for cross-thread usage Change-Id: Ib3a49999aa5c3e740127ba684f3d4887e1ad5cb9
* Merge "Prevent fixed background layers for iframes" into jb-mr1-devChris Craik2012-10-031-0/+2
|\
| * Prevent fixed background layers for iframesChris Craik2012-10-021-0/+2
| | | | | | | | | | | | | | | | bug:7271856 Path was untested/broken Change-Id: I053cb0255665b57b89524debbad9f78286ba9a37
* | Merge "Compensate for canvas-side vertical text translation in bounding box ↵Chris Craik2012-10-025-2/+14
|\ \ | | | | | | | | | computation" into jb-mr1-dev
| * | Compensate for canvas-side vertical text translation in bounding box computationChris Craik2012-10-025-2/+14
| |/ | | | | | | | | bug:7267294 Change-Id: Ia6de9264b6c3680707b8fb8833d69d7cc7e850e8
* | Determine maxZoomScale from bitmap/text drawingChris Craik2012-10-0113-29/+30
|/ | | | | | bug:7247750 Change-Id: I8238acc2c20942ab2f42936d16a03226909aebcd
* Fix opaque rect calculation to quickreject transparent shader drawn opsChris Craik2012-09-271-0/+1
| | | | | bug:7247486 Change-Id: Iba6b37d50985b51585e6e96a35705da54aae9878
* Force stroke style for radio drawingChris Craik2012-09-271-0/+2
| | | | | bug:7188900 Change-Id: I9cfc020be463b0441a3d718d44cc6c948781d7cf
* Merge "Paint into the right PicturePile" into jb-mr1-devJohn Reck2012-09-131-1/+1
|\
| * Paint into the right PicturePileJohn Reck2012-09-131-1/+1
| | | | | | | | | | | | | | Bug: 7163457 Oops Change-Id: I08d25259810faa3983e6f84165b5ae9f286ece3f
* | Merge "Remove broken RLE path" into jb-mr1-devJohn Reck2012-09-131-60/+10
|\ \ | |/ |/|
| * Remove broken RLE pathJohn Reck2012-09-101-60/+10
| | | | | | | | | | | | Bug: 6937596 Change-Id: I451e8c10eb2b3e5c2a8f46d3e7b278fa5810d27e
* | Merge "Disable clipping painter when painting 400+ operations" into jb-mr1-devChris Craik2012-09-101-1/+8
|\ \ | |/ |/|
| * Disable clipping painter when painting 400+ operationsChris Craik2012-09-101-1/+8
| | | | | | | | | | bug:7128794 Change-Id: Id36dbedcb7c8245fc6f37dbf938b085da3e0ae93
* | Fix crash if SVG tries to load a resourceJohn Reck2012-09-071-0/+3
|/ | | | | | | | | | Bug: 7089191 SVGImage is created with an EmptyFrameLoaderClient. This client returns a null networkingContext(), which will than cause ResourceHandleAndroid to crash. The fix is simple, return a load failure if we are given a null or invalid NetworkingContext Change-Id: Ib25c2449527ca7d3693b78425c0bc5f2e9a12f74
* Update RenderThemeAndroid drawingJohn Reck2012-09-061-56/+115
| | | | | | | | Bug: 7082715 Also fixes the glitch with drawing a disabled select leaving an alpha set on the context Change-Id: I8414ca4332f4828453e4f5b1e9186b13d319dfbb
* Avoid unsafe use of SkRefCnt::getRefCnt() in ImagesManagerChris Craik2012-08-313-2/+14
| | | | | | | | | | | | | | | | | | 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
* Don't track the opaque area of small drawing operationsChris Craik2012-08-241-1/+4
| | | | | | | Avoids region & matrix computation work for small ops. Area value of 750 determined empirically. Change-Id: Iffc041ff69cd47c152ae4f71a474f4f6ccdc0bc5
* Only use the clipping painter when painting to a bitmap.Chris Craik2012-08-231-18/+24
| | | | | | | | | bug:6389297 This improves performance in capturePicture, since it avoids all of the clipping and opaque region tracking logic. Change-Id: If1db553b2568573f94cdee7b801c67be0c47c056
* Merge "Exit fast tile swap mode immediately upon SurfaceCollection swap" ↵Chris Craik2012-08-201-0/+1
|\ | | | | | | into jb-mr1-dev
| * Exit fast tile swap mode immediately upon SurfaceCollection swapChris Craik2012-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | bug:7002755 This prevents the SurfaceCollectionManager from getting stuck in fast swap mode, where because swaps are occuring in process mode, and not in draw mode, which would previously have prevented the flag from being cleared. Change-Id: Ie888438c73aabeeff0534caad68b58e4acd2c440
* | Merge "DO NOT MERGE Text locale compatibility shim" into jb-mr1-devVictoria Lease2012-08-202-91/+100
|\ \
| * | DO NOT MERGE Text locale compatibility shimBilly Hewlett2012-08-202-91/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick I2a69f2834ca50c37302dcd4816edb630b1208a41 from master. This change allows WebView to continue to function as before, displaying text using the system default fallback font chain. Change-Id: Ibcb8924d270cc602295158684bd700cfcbb1ec46
* | | Fix opaque operation area calculationChris Craik2012-08-202-18/+25
|/ / | | | | | | | | | | | | | | bug:7003352 Correctly handle state pushing/manipulation, shaders, and transfer mode. Change-Id: I9f6591711b15ff99a182fc9956f7ef389320e9c3
* | Merge "Support partial invals on layers" into jb-mr1-devJohn Reck2012-08-172-33/+25
|\ \
| * | Support partial invals on layersJohn Reck2012-08-172-33/+25
| | | | | | | | | | | | Change-Id: Iab18e8b5e2f0e37c380c8a15e51255121c3b1966
* | | Merge "Early return from layer painting when fully clipped" into jb-mr1-devChris Craik2012-08-171-7/+8
|\ \ \ | |/ / |/| |
| * | Early return from layer painting when fully clippedChris Craik2012-08-161-7/+8
| |/ | | | | | | | | | | Fixes logspam due to merged layers unnecessarily painting when fully clipped. Change-Id: I0f2f1b851c9386dcebda58bf844fd68073338e1c
* | Fix SIGBUG due to misalignmentJohn Reck2012-08-161-3/+3
| | | | | | | | | | | | | | Bug: 7003956 Don't pack data Change-Id: I659a8b4cbf47ece9af16532949466f3fe2f6e61b
* | Merge "Increase max texture count to accommodate large screens" into jb-mr1-devChris Craik2012-08-161-5/+5
|\ \
| * | Increase max texture count to accommodate large screensChris Craik2012-08-161-5/+5
| |/ | | | | | | | | bug:6968485 Change-Id: I8691d34fc5d4da1d03f31fd45c2d6d6abc39c53b
* | Merge "Memory allocation changes" into jb-mr1-devJohn Reck2012-08-166-80/+125
|\ \ | |/ |/|
| * Memory allocation changesJohn Reck2012-08-166-80/+125
| | | | | | | | | | | | | | | | | | Move RecordingData to LinearAllocator Consolidate 4 heaps into 1 Minimize initial RAM usage Add page size growth Change-Id: I997ee6d88d0ae500ed85b9d20e6ed095069f2b04
* | Merge "Correctly handle preserve-3d layer ordering" into jb-mr1-devChris Craik2012-08-154-47/+86
|\ \ | |/ |/|
| * Correctly handle preserve-3d layer orderingChris Craik2012-08-154-47/+86
| | | | | | | | | | | | | | | | bug:6843244 Current implementation only works for HW acceleration. Change-Id: I009090132a8f3859ab9e57e609c1754f9021d4d7
* | Move text allocations to LinearAllocatorJohn Reck2012-08-143-17/+34
| | | | | | | | Change-Id: I3ef492679e94bdb452033ee3af3162b88d323d57
* | Memory usage improvementsJohn Reck2012-08-142-10/+49
| | | | | | | | | | | | Share SkPaints between drawPosText calls Change-Id: Idf25c937a70e2969a864c829e566688b977720c0
* | Merge "Null check" into jb-mr1-devJohn Reck2012-08-131-1/+1
|\ \ | |/ |/|
| * Null checkJohn Reck2012-08-131-1/+1
| | | | | | | | | | | | Bug: 6975836 Change-Id: I085e2099d016730ba1fdcce71e0452b2026c9617
* | Merge "Improve in-canvas pure color checking" into jb-mr1-devChris Craik2012-08-132-35/+49
|\ \ | |/ |/|
| * Improve in-canvas pure color checkingChris Craik2012-08-102-35/+49
| | | | | | | | | | | | | | Fast path for same-color rect drawing in InstrumentedPlatformCanvas Also minimize unnecessary clipping recording-side. Change-Id: I8e9ebcfce8d137ca0b27d17c42c5045a0d3b3a36
* | Merge "Clear mOperationState when calling popState" into jb-mr1-devJohn Reck2012-08-102-7/+14
|\ \ | |/ |/|
| * Clear mOperationState when calling popStateJohn Reck2012-08-102-7/+14
| | | | | | | | Change-Id: I96df41fc2b8e040e0e98b991c71b1d9bda40788e
* | Merge "Paint with requested size instead of layer size" into jb-mr1-devChris Craik2012-08-101-1/+1
|\ \ | |/ |/|
| * Paint with requested size instead of layer sizeChris Craik2012-08-091-1/+1
| | | | | | | | | | bug:6925835 Change-Id: Idaf37156cd0c42f59151dc2dca95acfef542d312
* | Merge "Clip out opaque regions to avoid double painting" into jb-mr1-devChris Craik2012-08-093-4/+154
|\ \
| * | Clip out opaque regions to avoid double paintingChris Craik2012-08-083-4/+154
| |/ | | | | | | | | | | | | | | | | | | | | Implementation is similar to PicturePile::drawWithClipRecursive. When an opaque paint operation (currently either a DrawBitmapRect/Pattern or FillRect) will cover up a section of the output, avoid painting things underneath it. Track this covered region by recursing backwards through paint operations, and clipping out opaque areas when operations beneath them paint. Change-Id: Id3ae7508aada27f90246feb689d9e7f53f03ae32
* | Fix memory leakJohn Reck2012-08-081-0/+6
|/ | | | | | | | | | | | | | Bug: 6952980 GraphicsContext::createOffscreenContext creates an instance of both PlatformGraphicsSkia and GraphicsContext for ImageBuffer. However, ImageBuffer will only call delete on the GraphicsContext. In normal GC usage, the PlatformGraphicsContext's lifecycle is longer than the GCs, and is cleaned up by itself. This will result in leaking the PlatformGraphicsSkia context, though. We need to make sure to call delete on the PlatformGraphicsSkia context if we were initialized with the deleteUs() flag, which is used to indicate just this scenario. Change-Id: I73aa623182a039bd75d378d198cc3bd2d4d185ef
* Merge "Reset cached opacity on shader swap" into jb-mr1-devChris Craik2012-08-071-0/+1
|\
| * Reset cached opacity on shader swapChris Craik2012-08-071-0/+1
| | | | | | | | | | | | | | | | | | bug:6947623 Multiple shaders share the opacity variable, so reset the cache when swapping programs. Change-Id: I752575d6089077aa8034c171c5c016e5e4e80606