summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Unify the naming of rectangles used for draw." into jb-devTeng-Hui Zhu2012-05-0422-251/+282
|\
| * Unify the naming of rectangles used for draw.Teng-Hui Zhu2012-05-0322-251/+282
| | | | | | | | | | | | | | | | | | 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
* | Merge "Fixed single-surface rendering with fixed-background elements" into ↵Nicolas Roard2012-05-031-5/+7
|\ \ | | | | | | | | | jb-dev
| * | Fixed single-surface rendering with fixed-background elementsNicolas Roard2012-05-031-5/+7
| |/ | | | | | | | | | | | | | | In single-surface rendering, we did not paint the surface collection correctly if there was more than one child on the base surface (which is the case with fixed-background elements). Change-Id: I6e8d34630060414159b5f13cd302c1dc2165a048
* | Respect clipping for CanvasLayerJohn Reck2012-05-031-2/+2
|/ | | | | | Bug: 6422177 Change-Id: I04bb713bd217f1c8776b2aa46f329ef413b7d36b
* Rewrite PictureSet with TURBO!John Reck2012-05-0228-236/+338
| | | | | | | | | | | | | | | | | | | | 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
* Merge "Fix max texture setup" into jb-devTeng-Hui Zhu2012-05-023-62/+58
|\
| * Fix max texture setupTeng-Hui Zhu2012-05-013-62/+58
| | | | | | | | | | | | bug:5698410 Change-Id: Idff9cb52cabd4cc87427f975fee4968e779139bf
* | Merge "Fix the clipping issue when webview has offset on X axis." into jb-devTeng-Hui Zhu2012-05-011-7/+40
|\ \
| * | Fix the clipping issue when webview has offset on X axis.Teng-Hui Zhu2012-05-011-7/+40
| |/ | | | | | | | | | | | | | | Add more comments to clarify the coordinate system. bug:6338952 Change-Id: Ia257c287040e638c3fa644a83ca1e97847bca70a
* | Merge "Don't crash on bad scale - DO NOT MERGE" into jb-devJohn Reck2012-04-271-1/+1
|\ \ | |/ |/|
| * Don't crash on bad scale - DO NOT MERGEChris Craik2012-04-271-1/+1
| | | | | | | | | | | | bug:5367327 bug:5826464 Change-Id: Ic15b3c28d610ba688f8c41e0782b3d0896b61fe2
* | Merge "Support partial draw in terms of a rect." into jb-devTeng-Hui Zhu2012-04-268-27/+49
|\ \
| * | Support partial draw in terms of a rect.Teng-Hui Zhu2012-04-268-27/+49
| |/ | | | | | | | | | | | | | | In this way, we can cover any internal rect area of the tiles. bug:6338952 Change-Id: If236a7f6ad82a3f9126a692ca5b08240a3631f88
* | DO NOT MERGE: Fix clipping issue due to webview animation(scaling)Teng-Hui Zhu2012-04-253-27/+13
|/ | | | | | | | | | | | | Our visibleRect didn't respect the webview animation scaling before. Get rid of the old code about scaling for ortho projection, we don't need it any more since we moved onto the clip info. Rename the viewport to visibleRect which is used more often. bug:5684832 Change-Id: I8f49cbfd776a95073414ecc31e2fb40642e1ae0d cherry-pick the master change: https://android-git.corp.google.com/g/#/c/183080/
* Merge "CSS Background image implementation"Nicolas Roard2012-04-2412-36/+299
|\
| * CSS Background image implementationNicolas Roard2012-04-2412-36/+299
| | | | | | | | | | | | bug:1352305 Change-Id: Id9caaae9b9442729110b52c75004f634d8284db4
* | Merge "Don't overdraw TileGrids"Teng-Hui Zhu2012-04-249-28/+56
|\ \
| * | Don't overdraw TileGridsChris Craik2012-04-249-28/+56
| |/ | | | | | | | | | | | | Given the visible area info, we can just tune the shader and matrix to draw partial tile at the edge of TileGrids. This could save a lot of GPU time. Change-Id: I1a45aa9a3a76ab5894096828bfff83057b1c9272
* | Merge "Revert "Revert "Turn on Fence sync for transfer queue."""Teng-Hui Zhu2012-04-241-1/+1
|\ \
| * | Revert "Revert "Turn on Fence sync for transfer queue.""Teng-Hui Zhu2012-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | So it turns out the fence sync is not the cause of ANR. bug:6325463 This reverts commit 389739d3808edb3bc97ad75d2ea5e37e281ca411.
* | | signal framework to unregister functorChris Craik2012-04-231-5/+0
| |/ |/| | | | | Change-Id: Ia503e508a13c40c29f18db924dce4ac711b03c68
* | Temporarily disable functor use of kProcessModeChris Craik2012-04-201-0/+5
| | | | | | | | | | bug:6365056 Change-Id: Icd0c6b4741159f5413bd697be30b244c8c701ec6
* | Better handle the EGL context lost situation.Teng-Hui Zhu2012-04-2010-75/+106
|/ | | | | | | | | 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
* Merge "fix minor warnings and style issues"Chris Craik2012-04-191-5/+3
|\
| * fix minor warnings and style issuesChris Craik2012-04-191-5/+3
| | | | | | | | Change-Id: Iaa4b1abeca17df54a4ddd169a3828695b8dcc776
* | prevent double TileGrid preparationChris Craik2012-04-187-90/+100
|/ | | | | | | | bug:6346848 also renamed TileGrid* variables for clarity Change-Id: Ie0e56a6e1e85db426c4944b03125248cd6a647c0
* Merge "Enable point sample when the texel and pixel is 1:1 mapping."Teng-Hui Zhu2012-04-177-9/+48
|\
| * Enable point sample when the texel and pixel is 1:1 mapping.Teng-Hui Zhu2012-04-177-9/+48
| | | | | | | | Change-Id: I532ad6b038d3b141bd212c8c408533fec0e9616e
* | add basic webview tracingChris Craik2012-04-161-0/+2
| | | | | | | | Change-Id: Id97ce1efab5918802cff5b90c0122b4cc2d7e73d
* | Merge "Revert "Turn on Fence sync for transfer queue.""Chris Craik2012-04-161-1/+1
|\ \ | |/ |/|
| * Revert "Turn on Fence sync for transfer queue."Chris Craik2012-04-161-1/+1
| | | | | | | | | | | | | | Was causing ANRs bug:6325463 This reverts commit 79620b0826fdbb2f0d125042f1414391b51fc5fa
* | Merge "Move the common matrix computation to higher level"Teng-Hui Zhu2012-04-162-16/+32
|\ \
| * | Move the common matrix computation to higher levelTeng-Hui Zhu2012-04-162-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | Now we don't need to compute the same thing for each tile any more. bug:6338456 Change-Id: I68e744ab7af2bb55a67047bc16aeb8659b26daf2
* | | Merge "Move the matrix support to rely on the new framework clip info"Teng-Hui Zhu2012-04-165-89/+124
|\ \ \ | |/ /
| * | Move the matrix support to rely on the new framework clip infoTeng-Hui Zhu2012-04-135-89/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this new way, we don't need to worry about the animation offset, b/c it is in the clip rect. Also add the matrix support for video layer. bug:5684832 Change-Id: I08e22ca042e425f8f7af935b60e04f2a4dbc52df
* | | Merge "Fix Gradient & Pattern handling"John Reck2012-04-133-145/+44
|\ \ \
| * | | Fix Gradient & Pattern handlingJohn Reck2012-04-133-145/+44
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6300357 Switch to GradientSkia (fixes the crash) Fix GraphicsContextAndroid to delay setting the fill & stroke shaders until immediately before they are needed, as they can be updated between when they are set and when they are used, which SkShader doesn't support. Change-Id: I85c81ad5764495f45547d2cef08bcf7ed7a885c1
* | | Merge "only profile drawing frames"Chris Craik2012-04-131-3/+4
|\ \ \
| * | | only profile drawing framesChris Craik2012-04-131-3/+4
| |/ / | | | | | | | | | Change-Id: I743a0bf1989572a7c48ebf9f0691c9cec9bef098
* | | Merge "remove several unneeded variables/parameters"Chris Craik2012-04-1313-33/+16
|\ \ \
| * | | remove several unneeded variables/parametersChris Craik2012-04-1313-33/+16
| |/ / | | | | | | | | | Change-Id: I862487e8700a408e9e2f7f4dc7d034674ac454d0
* | | Separate prefetching TileGrid from front/backChris Craik2012-04-122-16/+29
|/ / | | | | | | | | | | | | Can now draw all available tiles while preparing new zoom level bug:5690291 Change-Id: Ic08acc59e052d6b05d282329eed2cc526cb8f2f3
* | Merge "Skip drawing the background (glClear) if the tiles cover it."Chris Craik2012-04-126-14/+43
|\ \
| * | Skip drawing the background (glClear) if the tiles cover it.Chris Craik2012-04-126-14/+43
| | | | | | | | | | | | | | | | | | bug:5631590 Change-Id: Ic7dc0dac0d7f98fb94eb2b111b3e59a0a7010caf
* | | Merge "Fix ImageTexture drawing in software path"Chris Craik2012-04-121-1/+2
|\ \ \
| * | | Fix ImageTexture drawing in software pathChris Craik2012-04-111-1/+2
| |/ / | | | | | | | | | | | | bug:6317028 Change-Id: Ibec896f64371c29a25aaae2490a4e5cf97b5b54a
* | | Merge "Log tiles correctly for the base surface"Chris Craik2012-04-121-3/+4
|\ \ \
| * | | Log tiles correctly for the base surfaceChris Craik2012-04-111-3/+4
| |/ / | | | | | | | | | | | | bug:6324663 Change-Id: I8dae021b98a1f721d2282bdb7490668a12eb0cf3
* | | Merge "We shall restore the FBO id instead of setting it back to 0."Teng-Hui Zhu2012-04-123-12/+3
|\ \ \