summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Clip nodes to the visible rect."Patrick Scott2011-02-161-3/+1
|\
| * Clip nodes to the visible rect.Patrick Scott2011-02-161-3/+1
| | | | | | | | | | | | | | | | Do not build scrollable layers if the layer does not draw. No need to ask for a sync since the rebuild happens during a sync. Bug: 3429982 Change-Id: I7740cd4de4e1658e760da7391de708cbdf05cd44
* | Merge "match UI text selection background color"Cary Clark2011-02-161-3/+9
|\ \ | |/ |/|
| * match UI text selection background colorCary Clark2011-02-161-3/+9
| | | | | | | | | | bug:3451973 Change-Id: Ie334c54ebb6b5b1083616739f9a90b8e8f3b6693
* | Merge "Improve layers repaint speed. Computing the layers texture size is ↵Nicolas Roard2011-02-154-15/+20
|\ \ | | | | | | | | | heavy; we delay this computation if one was done recently."
| * | Improve layers repaint speed.Nicolas Roard2011-02-154-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | Computing the layers texture size is heavy; we delay this computation if one was done recently. bug:3375416 Change-Id: I0ce79cdfcaa15cd1521370a1d5b8df5a5e5ea2c5
* | | Merge "Set correct max texture allocations."Shimeng (Simon) Wang2011-02-153-5/+10
|\ \ \ | |_|/ |/| |
| * | Set correct max texture allocations.Shimeng (Simon) Wang2011-02-153-5/+10
| | | | | | | | | | | | | | | | | | This fixes core dump or dead lock in GL code when rotating screen. Change-Id: I5da2e5a41dfdb18f98f126d2a2fac999210ce7c7
* | | Merge "fix buttons in GL"Cary Clark2011-02-154-11/+17
|\ \ \ | |/ / |/| |
| * | fix buttons in GLCary Clark2011-02-154-11/+17
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Buttons failed to draw when selected with the keyboard, and sometimes when selected by touch, for three reasons: 1) GL short-circuits if the last extra rectangle and the curent extra rectangle match. When buttons change color, the rectangles do match, but the picture still needs to be redrawn. 2) Buttons do not have cursor rings, so the button's bounds was not passed to GL. 3) The timeout logic to switch from a focused state to a normal state was incorrect. This adds a flag to GLWebViewState::setExtra that can skip the equal rectangle case. Note that the equal rectangle test hides a more serious bug where the setExtra is called repeatedly -- so it would be worthwhile to examine this further. The logic that determines if the cursor is a button was split out so that the cursor ring can be associated with a button even if the cursor is hidden. bug:3364248 Change-Id: I75944cb045486c128743aa13922d20758ccf783f
* | A couple of fixes for scrolling layers.Patrick Scott2011-02-152-31/+102
|/ | | | | | | | | | | | | | | Update the layer structure during compositing sync. Make sure to turn off scrolling if it changes. Since I replace the content layer with a different structure, append the children to the foreground layer so they move with the content. Remove the clipping layer in the compositor for scrollable layers. For children of scrollable layers, add back in the content scroll offset so that layers are positioned relative to 0,0. Bug: 3416512 Change-Id: I74de90aac2dcf67bd969d0b85f440343123ecab9
* Fix GL_BLEND problem.Nicolas Roard2011-02-112-11/+16
| | | | | | | | glBindAttribLocation() will only work after a shader has been linked; This was working previously due to the way the nvidia driver work when using blending (it generates another shader). Change-Id: Ia8bf578e214a02c7a7b3ad47600fca87fce73ac8
* Clip layers if the texture size is too large for the GPUNicolas Roard2011-02-111-1/+3
| | | | | bug:3436987 Change-Id: I180b9f54b9db5d190ca2832bea8b9ff210a0619a
* Fix ANR in the browserNicolas Roard2011-02-109-25/+87
| | | | | | | | | | | Sometimes we were not releasing textures as they were busy; they could still be deleted when swapping the layers trees, and as they were also still present in the LayerTexture Hashmap this was causing an ANR (at best -- the texture was already deallocated, the LayerTexture dtor was then trying to release() them...) bug:3398660 Change-Id: I2747dd4630a2a7dc18eae4c5fde36fd14c461747
* Improve the fixed element position calculationTeng-Hui Zhu2011-02-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | In the previous WAR, we get the screen size from UI thread at every draw call. That is awkward. Now with Java side fix, we can get the screen size from setSize call now. However, forcing a full re-layout seems like an expensive operation. What we need to make the webkit to know the update can be done by just updating the fixed position elements only. So I have done these: 1. Take away the WAR by forcing the update at the convertToLayerCoord. 2. Get rid of the UI thread stuff used to tell WebViewCore the screen size. And get rid of the redundant variables, too. 3. update the fixed element at the setSize time. BTW, I also rename the PlatformBridge functions name. bug: 3397602 Change-Id: I0c422ecdb570de89aecb6e568d5067acf18ecfc6
* am b50b0e16: am 4a181ab9: Merge "Fix 3366514 (again): browser emulator ↵Russell Brenner2011-02-072-6/+8
|\ | | | | | | | | | | | | crash" into honeycomb * commit 'b50b0e165c9c308b9a4a1824db6ef52a00acadf5': Fix 3366514 (again): browser emulator crash
| * Merge "Fix 3366514 (again): browser emulator crash" into honeycombRussell Brenner2011-02-072-6/+8
| |\
| | * Fix 3366514 (again): browser emulator crashRussell Brenner2011-02-012-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added TilesManager::hardwareAccelerationEnabled() to check internal gInstance without the side-effect of creating it, if null. Used by BaseLayerAndroid to avoid creating an instance during a destructor. Emulator will have a null gInstance, so this provides a runtime solution that distinguishes the emulator from the device. Change-Id: I023849d0bb405deef588d7fc272f0e303577fddf
* | | am ad1398b8: am 79f07c99: Fix to post an inval when plugins request a native ↵Derek Sollenberger2011-02-071-1/+16
|\ \ \ | |/ / | | | | | | | | | | | | | | | video surface. * commit 'ad1398b85d7cef3bd7c3dc833921fcdb3c7f06f6': Fix to post an inval when plugins request a native video surface.
| * | Fix to post an inval when plugins request a native video surface.Derek Sollenberger2011-02-051-1/+16
| | | | | | | | | | | | Change-Id: If9295a37ae19e7cb913e4cfa75b2a021bcda988f
* | | am 4fff0b9f: am 2bac1e45: Only invalidate the webview when the plugin has ↵Derek Sollenberger2011-02-074-9/+68
|\ \ \ | |/ / | | | | | | | | | | | | | | | new content. * commit '4fff0b9fdd23cd60b036e2ea48190e7a7d8dbf13': Only invalidate the webview when the plugin has new content.
| * | Only invalidate the webview when the plugin has new content.Derek Sollenberger2011-02-044-9/+68
| | | | | | | | | | | | | | | bug: 3424551 Change-Id: I07beef845bb41980144222c3c5d076db8120037c
* | | Use ListBoxPopupMenuClient for listboxes.Leon Scroggins2011-02-033-78/+38
|/ / | | | | | | | | | | | | | | Bug:2754767 Enables us to remove some layering violations. Change-Id: Iea184c7946bca9d840c708918f545a9d9b436254
* | Get layers showing againBen Murdoch2011-02-023-22/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lazily get the maximum texture size from GL when we first need it. This avoids calling GL functions before GL has been set up and ensures it is done on the correct (ie. UI) thread. Also move the tiles expansion setting from WC thread to UI thread as TilesManager is not thread safe when creating the singleton instance. This makes change 4596782e unnecessary so we remove it. Bug: 3412928 Change-Id: I740974d8cc0ef4f66956cd6a07b058bfa7ca767f
* | Merge "Initialize correctly the maximum texture size in case it was not." ↵Nicolas Roard2011-02-013-0/+13
|\ \ | | | | | | | | | into honeycomb
| * | Initialize correctly the maximum texture size inNicolas Roard2011-02-013-0/+13
| |/ | | | | | | | | | | | | | | case it was not. fix regression bug:3412928 Change-Id: Ie83dd50163ef4435cd88471127869114e41068cc
* | Merge "Fix updates on scrolling layers." into honeycombPatrick Scott2011-02-011-2/+4
|\ \ | |/ |/|
| * Fix updates on scrolling layers.Patrick Scott2011-02-011-2/+4
| | | | | | | | | | | | | | | | Compare the drawing texture with the new reserved texture to ensure that m_reservedTexture will be updated properly. Bug: 3381482 Change-Id: I4877842438376c00b65bdb10fb4feb1e8c50b2dc
* | Merge "Implement automatic texture size allocation for layers This fix ↵Bart Sears2011-02-015-10/+99
|\ \ | | | | | | | | | several issues (3d transforms, etc.) and in general makes websites using layers snappier (gmail, etc.)" into honeycomb
| * | Implement automatic texture size allocation for layersNicolas Roard2011-02-015-10/+99
| |/ | | | | | | | | | | | | | | This fix several issues (3d transforms, etc.) and in general makes websites using layers snappier (gmail, etc.) bug:3367038 bug:3367048 Change-Id: Ib178416209c3636c7700296978a1f35a7a54ee22
* | Smoother scrolling by preparing offscreen tiles (credit: Ben Murdoch)Dave Burke2011-02-014-33/+44
|/ | | | Change-Id: I80c7757bfb85f0b45726f2fa2f18644d2493fced
* Merge "Implement dynamic allocation of base tiles. This way, a webview will ↵Nicolas Roard2011-02-0110-72/+102
|\ | | | | | | only consume as much GPU memory as needed, depending on its size, to a maximum of 256 tiles per TiledPage." into honeycomb
| * Implement dynamic allocation of base tiles.Nicolas Roard2011-01-3110-72/+102
| | | | | | | | | | | | | | | | | | | | This way, a webview will only consume as much GPU memory as needed, depending on its size, to a maximum of 256 tiles per TiledPage. bug:3376517 Change-Id: Icc1e47623297cf1c01d40aa9e123c1a05373e7e5
* | Fix for bug:3410888Nicolas Roard2011-02-011-2/+2
|/ | | | Change-Id: Ic147e43f0a70bf7da70812e4383000d560b0dcbd
* Merge "Fix 3366514, browser emulator no longer crashes" into honeycombRussell Brenner2011-01-311-0/+2
|\
| * Fix 3366514, browser emulator no longer crashesRussell Brenner2011-01-311-0/+2
| | | | | | | | | | | | | | | | Following recent update that added HARDWARE_ACCELERATION flag, it now is disabled for emulator builds, removing incompatible calls to TilesManager. Change-Id: Iffbb57aebc3c2f22262ebf14ff7013d602c05c12
* | Remove unnecessary scissor call (framework does that for us)Nicolas Roard2011-01-311-4/+0
| | | | | | | | Change-Id: Ic6e610df98b055dafb63dd0afddb13a8f9abbe44
* | Merge "Simple fix for bug:3365709" into honeycombNicolas Roard2011-01-311-2/+0
|\ \
| * | Simple fix for bug:3365709Nicolas Roard2011-01-311-2/+0
| | | | | | | | | | | | Change-Id: Id4757935bda7b688bec9448c842072cd8316d76b
* | | Add new vertex shader to support video transforms.Derek Sollenberger2011-01-313-4/+23
|/ / | | | | | | | | bug: 3072603 Change-Id: I59e52cc9672c653760351b835c63d0496e6ff6ff
* | Merge "Fix video inversion and avoid extra matrix copies." into honeycombDerek Sollenberger2011-01-313-12/+11
|\ \
| * | Fix video inversion and avoid extra matrix copies.Derek Sollenberger2011-01-313-12/+11
| |/ | | | | | | | | bug: 3072603 Change-Id: I46737fe52b1571834efaa6b8250645790205ff1a
* | Fix to ensure that plugin layer's are synced to the UI thread.Derek Sollenberger2011-01-311-0/+16
|/ | | | | bug: 3394773 Change-Id: I1eb3e3c0239546493a7bff2e954581cf18a4606c
* Fix repaint bug when changing viewportNicolas Roard2011-01-301-3/+4
| | | | | bug:3405986 Change-Id: I5ef5d9bc1041fabe5319e93180f94b521b07e93b
* Fix GL error when initializing the browserNicolas Roard2011-01-303-6/+24
| | | | | | | | bug:3355704 may also fix bug:3383599 Change-Id: I77892c2e90c4edf054513de92b0c6bfba3152819
* Fix temporary memory leakNicolas Roard2011-01-302-1/+5
| | | | | bug:3376517 Change-Id: If64b9385bc8e4d915597bd3f27b22c3d23f74a73
* Add a ClassTracker class to more easily track leaksNicolas Roard2011-01-3018-93/+177
| | | | | bug:3376517 Change-Id: Ieb419bc3140963ccbda3e2f130778ec53b2920aa
* Merge "Allocate bitmaps on the fly for layers" into honeycombNicolas Roard2011-01-302-6/+27
|\
| * Allocate bitmaps on the fly for layersNicolas Roard2011-01-302-6/+27
| | | | | | | | | | bug:3376517 Change-Id: I68cab08949302dd938b9c4753f9dfebd6c08e298
* | Merge "Fixed element positioning fix" into honeycombTeng-Hui Zhu2011-01-301-0/+3
|\ \ | |/ |/|