Commit Graph

152 Commits

Author SHA1 Message Date
Kartikaya Gupta
788bcace55 Bug 752539 - Pass in the AutoLocalJNIFrame to some methods that implicitly require it. r=blassey 2012-05-08 09:35:59 -04:00
Kartikaya Gupta
06aee064be Bug 748531 - Guard against exceptions in JNI. r=blassey 2012-05-04 11:08:47 -04:00
Kartikaya Gupta
60a1f57e8b Bug 748531 - Propagate the JNIEnv through DrawWindow*lay helpers instead of unnecessarily re-calling GetJNIForThread everywhere. r=blassey 2012-05-04 11:08:46 -04:00
Ed Morley
2d35fc9b56 Merge mozilla-central to mozilla-inbound 2012-05-03 20:13:41 +01:00
Ali Juma
fa7767fbca Bug 748048 - Part 2: Don't restrict invalidation to the widget's boundaries on Android. r=roc 2012-05-03 12:34:02 -04:00
James Willcox
22ddeff430 Bug 727116 - Draw Flash plugins with OpenGL during pan/zoom on legacy Android r=blassey 2012-04-27 16:04:47 -04:00
Jeff Muizelaar
0816fa076e Bug 748832. Remove dead paint supression code. r=kats
Bug 732564 disabled the painting suppression code in browser.js. This removes
the caller and the interface.

--HG--
extra : rebase_source : 236f81abcf980c41ffdb6c29dc4290a6a7671d14
2012-04-25 12:49:43 -04:00
Eitan Isaacson
346ee076d0 Bug 748590 - Map KEYCODE_DPAD_CENTER to DOM_VK_ENTER. r=cpeterson 2012-04-25 17:09:12 -07:00
Masayuki Nakano
116dbd00b1 Bug 166240 part.5 Add support KeyboardEvent.location on Android r=cpeterson 2012-05-03 17:35:02 +09:00
Matt Brubeck
2702248b0c Bug 748473 - Back button is no longer mapped to escape key [r=cpeterson] 2012-04-24 20:47:46 -07:00
Masayuki Nakano
e089b336f8 Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
James Willcox
4e5222e0f7 Bug 707353 - Implement ANPWindow::showKeyboard() for Android plugins. r=snorp a=blocking-fennec
--HG--
extra : rebase_source : ca2da8fe9689fa702444cd6da7b4841d9ef12ec4
2012-04-20 09:49:50 -07:00
Ali Juma
c40c713688 Bug 733596 - Tell the compositor about the new surface size on surface change. r=bgirard a=blocking-fennec 2012-04-20 11:46:30 -04:00
Jeff Muizelaar
36817c47c9 Backout c048eb7cc728 for checkerboarding regresions
http://graphs.mozilla.org/graph.html#tests=[[175,63,20]]&sel=none&displayrange=7&datatype=running
http://graphs.mozilla.org/graph.html#tests=[[201,63,20]]&sel=none&displayrange=7&datatype=running
2012-04-20 00:50:07 -04:00
Chris Peterson
5c13ad58f8 Bug 742036 - Part 3: Pass Android's native keycodes to Flash plugin using nsGUIEvent::pluginEvent. r=masayuki,blassey a=blocking-fennec
--HG--
extra : rebase_source : c5cd6ba353970c1ba2f3315c55730957d1a306b9
2012-04-19 10:49:31 -07:00
Chris Peterson
51967b09ef Bug 742036 - Part 1: Convert Android keycodes to DOM/NS_VK keycodes. r=masayuki a=blocking-fennec
--HG--
extra : rebase_source : 58b581eb97d82bea46f238213599b7bea2f6a78f
2012-04-19 13:34:03 -07:00
Jeff Muizelaar
6dd88cabce Bug 745315. Draw as soon as we get a Viewport:Changed r=kats a=joe
This should reduce some unpredictibility from our drawing
code and I don't see any negative concequences.
2012-04-17 20:23:35 -04:00
Ed Morley
e5e627a993 Backout 4e26b559d215, d74da7b4bf10 & d91d3787a3ef (bug 742036) for xul android failures; a=backout 2012-04-19 12:50:46 -07:00
Chris Peterson
92cf464bf4 Bug 742036 - Part 3: Pass Android's native keycodes to Flash plugin using nsGUIEvent::pluginEvent. r=masayuki,blassey a=blocking-fennec
--HG--
extra : rebase_source : 0cedf764055dba59a8c55a468b5a6dc60e20dbae
2012-04-19 10:49:31 -07:00
Chris Peterson
af050bf07c Bug 742036 - Part 1: Convert Android keycodes to DOM/NS_VK keycodes. r=masayuki a=blocking-fennec
--HG--
extra : rebase_source : 8c8e8fbf4dd6bd0bfc67e621a1f24788d93ec5b1
2012-04-18 10:15:15 -07:00
Eitan Isaacson
9c4cdab930 Bug 739493 - Add "Accessibility:IsEnabled" message for Android 2012-03-15 10:38:27 -04:00
Kartikaya Gupta
5ed6f42383 Bug 742019 - Rewrite how we handle touch events so we don't break panning, and don't introduce unnecessary latency. r=wesj 2012-04-07 03:09:26 -04:00
Veeraya Pupatwibul
26e9a6a204 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Ali Juma
e7e968bb4b Bug 735230 - Part 2: Add compositor pause/resume events to Gecko. r=kats 2012-03-28 18:00:32 -04:00
Eitan Isaacson
ac7baec75e Bug 738741 - Map Android's KEYCODE_DPAD_CENTER to DOM_VK_ENTER. r=mbrubeck 2012-03-28 22:11:55 +02:00
Kartikaya Gupta
8476d96552 Bug 731603 - Save the display port and resolution in the VirtualLayer's mPosition and mResolution fields. r=Cwiiis 2012-03-20 00:07:42 -04:00
Kartikaya Gupta
c243707faf Bug 727966 - Remove an unnecessary paint on rotation. r=blassey 2012-03-19 10:06:24 -04:00
Kartikaya Gupta
32769189d0 Bug 725095 - Address review comments in the widget code. r=blassey
- Rip out a lot of unused code in AndroidFlexViewWrapper.*
- Simplify the GetViewTransform JNI code
- Move the references to CompositorParent and CompositorThread from AndroidBridge to nsWindow
- Remove a bunch of logging and add some assertions and comments
2012-03-14 00:15:11 -04:00
Benoit Girard
8461970bfc Bug 733184 - Remove more logging from widget. r=pcwalton 2012-03-05 19:58:18 -05:00
Kartikaya Gupta
d5c3b7e98b Merge m-c again to pick up 75deec1f1a7b 2012-02-28 14:37:26 -05:00
Benoit Girard
5582ac1cee More render trace. r=debug_only
--HG--
extra : rebase_source : b20e2e6e7469433ee6148c8fa0a7dd0c0ca21009
2012-02-28 11:24:24 -05:00
Kartikaya Gupta
4720c13486 Merge heads 2012-02-27 15:59:56 -05:00
Kartikaya Gupta
134e9fec76 Merge m-c 2012-02-27 15:06:35 -05:00
Benoit Girard
a9a9772362 Added more rendertrace breakdowns 2012-02-27 14:31:29 -05:00
Josh Dhaliwal
5eca462914 Bug 727905 - Zero width window handling in nsWindow.cpp crash. r=dougt 2012-02-26 19:59:22 -08:00
Kartikaya Gupta
e37885a6c7 Take out the code that allows Java to further clip the invalid rect based on visible area.
This code is never used because the invalid rect we pass to DrawTo is ignored;
the nsLayoutUtils::PaintFrame uses the display port as the visible region to
paint instead. (http://mxr.mozilla.org/mozilla-central/source/layout/base/nsLayoutUtils.cpp#1603)
2012-02-26 10:47:45 -05:00
Benoit Girard
986b769ef1 Bug 730521 - Fix memory leak and needless memory allocation. r=ajuma 2012-02-24 21:51:14 -05:00
Kartikaya Gupta
0c8abc000c We were allocating and re-allocating a view-sized buffer and then claiming it was 32x32. Cut that down to stop wastage. Also drop unused method. 2012-02-24 12:11:32 -05:00
Kartikaya Gupta
9969c98db4 Remove unused parameters passed to endDrawing 2012-02-24 12:11:29 -05:00
Kartikaya Gupta
fa940eb49b Pull out tile dimensions being passed around uselessly 2012-02-24 10:51:41 -05:00
Kartikaya Gupta
5857681738 Bug 730033 - Rip out WidgetTileLayer and associated gunk. r=snorp 2012-02-23 14:55:15 -05:00
Kartikaya Gupta
53a439cccc Completely collapse GeckoGLLayerClient into GeckoLayerClient. 2012-02-22 14:45:44 -05:00
Chris Lord
dd4aacfc79 Fix screen/window size change events.
Window size was being treated as equivalent to screen size, which it isn't.
Make sure to send the size-changed event when either the window size or the
screen size change, and to properly differentiate between the two.
2012-02-17 17:25:52 +00:00
Ehsan Akhgari
2d00d4d7a8 Stop asserting the reverse of what we mean 2012-02-17 11:50:14 -05:00
Kartikaya Gupta
6e72a9570d Also remove dangling entrails of the layer client type 2012-02-17 09:16:14 -05:00
Kartikaya Gupta
5ec5bd703f Rip out unused GeckoSoftwareLayerClient since we've committed to GL layers. 2012-02-17 09:04:50 -05:00
Kartikaya Gupta
f3c1b6a928 Put back some things left out of dougt's merge 2012-02-17 01:36:49 -05:00
Doug Turner
b66a0f8126 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Benoit Girard
567f149d32 Fix one shutdown crash
--HG--
extra : rebase_source : dd71617cbabf7848565ab609362964037fbac01a
2012-02-15 11:29:14 -05:00
Patrick Walton
1b46184a8f Fix scissor rect and use the Java compositor's cached viewport metrics when drawing decorations 2012-02-13 20:20:38 -08:00
Patrick Walton
5081278876 Integrate the Java compositor. Scroll bars now appear. 2012-02-13 14:52:30 -08:00
Benoit Girard
5ec8cb5563 Make OMTC changes not effect desktop 2012-02-13 17:17:12 -05:00
Patrick Walton
d698580c18 Uncomment the Java compositor integration, except for the part that causes PowerVR crashes 2012-02-10 23:03:02 -08:00
Patrick Walton
9ff00d7ac5 Implement the rendering hooks for Java compositor integration. Currently segfaulting, so ifdef'd out. 2012-02-09 23:55:13 -08:00
Patrick Walton
492b9f6acc Add a DrawWindowUnderlay() to match DrawWindowOverlay() 2012-02-09 19:47:50 -08:00
Benoit Girard
2430a6b71c Merge fixes 2012-02-08 19:01:21 -05:00
Benoit Girard
7dc71cdb8d Merge m-c into maple 2012-02-08 16:43:22 -05:00
Josh Dhaliwal
f6eaae518a Bug 727905 - Zero width window handling in nsWindow.cpp crash. r=dougt 2012-02-27 18:57:28 -05:00
Patrick Walton
e9d5b35c01 Shrink the surface size to speed up painting 2012-02-06 15:25:18 -08:00
Patrick Walton
acf57d7d37 Poke the compositor to composite on a pan or zoom; stub AndroidBridge::GetViewTransform() 2012-02-03 18:35:58 -08:00
Patrick Walton
d6e3afde17 Add a virtual layer and GL layer client implementation 2012-02-03 15:48:26 -08:00
Patrick Walton
13458c16d5 Eliminate coupling between the software layer client and the rest of Fennec 2012-02-02 23:30:41 -08:00
Patrick Walton
96bf34ae0e Clean up nsWindow::Draw() a bit 2012-02-02 20:24:49 -08:00
Patrick Walton
f15ef916a3 Partial removal of tiling, stub callouts 2012-02-02 19:28:22 -08:00
Benoit Girard
ad52ff772a Hack the real window dimensions 2012-02-02 18:03:55 -05:00
Benoit Girard
d4c038b718 Fix GetLayerManager logic 2012-02-02 14:16:59 -05:00
Patrick Walton
df5fc9e46d Turn on OMTC by default; fix crash when acquiring EGL surface 2012-02-01 23:54:01 -08:00
Benoit Girard
106b0e77a3 Move registerCxxCompositor to FlexView 2012-02-01 14:15:52 -05:00
Ali Juma
150a69c9a2 Disable direct textures because of crashes. 2012-01-31 15:53:54 -05:00
Benoit Girard
506188e13c Mergi mc to kiwifox, lots of conflicts so may not build 2012-01-30 13:38:20 -05:00
Benoit Girard
7f35e49cdf Partial work for android OGLSurfaceView
--HG--
extra : rebase_source : 2c6ce362dd859e9f81a5b4490e2451826259a651
2012-01-26 14:23:13 -05:00
Benoit Girard
e647509077 Disable sHasDirectTexture because of crash in Nexus S
--HG--
extra : rebase_source : 03daaf6a9b7a562d95bf42c34b997ba234eed022
2012-01-26 14:22:26 -05:00
Alex Pakhotin
66ced43dbc Bug 721393 - Virtual keyboard enter key doesn't work correctly in designMode document. r=blassey 2012-02-14 17:08:47 -08:00
Doug Turner
ab812201ed Bug 713803 - Rationalize JNI access accross android widget. r=blassey 2012-01-29 12:39:30 -08:00
Phil Ringnalda
eab130eacc Back out 59d8d92f9f3c (bug 713803) for Android C1 permaorange 2012-01-29 00:49:02 -08:00
Doug Turner
775c1f6fc2 Bug 713803 - Rationalize JNI access accross android widget. r=blassey 2012-01-28 22:38:02 -08:00
James Willcox
7df90dda44 Bug 716190 - Retry graphic buffer locks if we get -EBUSY r=pcwalton
--HG--
extra : rebase_source : 969aee231df4ac7ac70086fa2fa836c26a090b8e
2012-01-17 15:00:56 -05:00
Chris Lord
6d06b90bbe Bug 724230 - Backout ondemand tiling. r=blassey, kats
This backs out changes d8fc13006aa4, ddde7a49f6f7, 34b1cc9454d2 and
8919c54229e1, leaving in some initialisation fixes that were introduced when
rebasing.

This work may be re-applied at a later date.
2012-02-04 18:49:59 -05:00
Matt Brubeck
859a650b87 Bug 723772 - Mousemove events broken in XUL fennec [r=wesj] 2012-02-02 17:40:25 -08:00
Wes Johnston
88926ea8a3 Bug 721080 - Pages with touch event listeners that don't call preventDefault should not hold up panning. r=dougt 2012-02-01 15:01:47 -08:00
Phil Ringnalda
4c969ca5d1 Back out b35af982b085 (bug 721080) for android-xul bustage 2012-02-01 12:10:53 -08:00
Wes Johnston
20f467edbf Bug 721080 - Pages with touch event listeners that don't call preventDefault should not hold up panning. r=dougt 2012-02-01 10:33:40 -08:00
James Willcox
2c9bdd0776 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Boris Zbarsky
ba7cdb3f07 Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds. 2012-01-31 23:38:35 -05:00
James Willcox
fefd8c5bca Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Ed Morley
e835f7000f Backout b87113ff33ff (bug 721741) for Android build failures 2012-01-31 16:19:00 +00:00
James Willcox
dce57d4892 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Wes Johnston
93c69a88ea Bug 603008 - Android widget multitouch implementation. r=blassey,kats 2012-01-25 01:31:33 +01:00
Chris Lord
9a81bc09ee Bug 717283 - Use tiles on-demand. r=pcwalton, snorp
Instead of tying the tile-buffer in MultiTileLayer directly to the back-buffer
of the page, make sure rendering is always aligned to the tile grid and use
tiles on-demand. This makes better use of tiles when panning/zooming, and opens
up the route for further optimisations.
2012-01-24 15:39:53 +00:00
Ed Morley
c1585c7af3 Backout 91eebc6bdb59 & 7d776b291014 (bug 717283) for Android native reftest crashes 2012-01-22 11:55:18 +00:00
Chris Lord
d994084581 Bug 717283 - Use tiles on-demand. r=pcwalton, snorp
Instead of tying the tile-buffer in MultiTileLayer directly to the back-buffer
of the page, make sure rendering is always aligned to the tile grid and use
tiles on-demand. This makes better use of tiles when panning/zooming, and opens
up the route for further optimisations.
2012-01-22 09:40:37 +00:00
Matt Brubeck
3017d8c4c6 Back out 47584f117727 and e05a8743389a (bug 717283) because of native Android startup crashes 2012-01-20 11:42:34 -08:00
Chris Lord
94b277a126 Bug 717283 - Use tiles on-demand. r=pcwalton, snorp
Instead of tying the tile-buffer in MultiTileLayer directly to the back-buffer
of the page, make sure rendering is always aligned to the tile grid and use
tiles on-demand. This makes better use of tiles when panning/zooming, and opens
up the route for further optimisations.
2012-01-20 17:36:56 +00:00
James Willcox
43d0cd88c2 Bug 719233 - Only use direct texturing on whitelisted devices r=blassey 2012-01-18 20:41:28 -05:00
James Willcox
4e566ea4f6 Bug 718014 - Restrict dirty rect to subrect of tile texture
--HG--
extra : rebase_source : bbe56fd271b08e908eb301b5b0839a80bce139fb
2012-01-18 10:41:30 -05:00
Chris Lord
5e69f80ec8 Bug 724928 - Tell Gecko not to draw areas we aren't interested in. r=kats
Alter GeckoSoftwareLayerClient.beginDrawing so that it can return a rectangle
of the buffer that it's interested in. Gecko then uses this to clip the dirty
region, which often saves on unnecessary drawing during flings.
2012-02-09 17:28:10 +00:00
Markus Stange
11a49c8991 Bug 598482 part 3 - Remove synchronous painting APIs from nsIWidget. r=roc 2011-12-23 22:52:21 -05:00
James Willcox
9a700e8d8f Bug 715894 - Only draw dirty rect when using gralloc textures r=clord
--HG--
extra : rebase_source : 432da0c53ce697b6bbc8009c615e9bfb81f0778f
2012-01-06 12:25:05 -05:00
Chris Lord
94788dd323 Bug 709120 - Add tiled buffer support for Android/native. r=pcwalton
This adds support for rendering to a tiled software buffer when using the
Java compositor. Tiles are assumed to be packed tight and stored sequentially,
by row.
2012-01-06 11:22:11 +00:00
James Willcox
9b0d6c0c33 Bug 713774 - Fix crasher when changing orientation on Android r=blassey 2012-01-04 21:53:09 -05:00