Commit Graph

141 Commits

Author SHA1 Message Date
Chris Peterson
1941f9b710 Bug 706891 part 2 - Reduce PAN_THRESHOLD from 1/10" to 1/16" and change units to dps. r=kats 2012-02-14 11:43:45 -08:00
Kartikaya Gupta
7e7560b065 Bug 722439 - Fix compiler warnings using javac 1.7. r=Cwiiis 2012-02-14 15:28:27 -05:00
Brad Lassey
e2bbf28d0e bug 725538 - make creating GeckoEvents sane r=kats 2012-02-08 23:18:27 -08:00
Chris Lord
1defbc60ca 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
Wes Johnston
3c8bd2ea15 Bug 724030 - Pages with touch event listeners not preventing touch events should have a chance to fire clicks. r=mbrubeck 2012-02-06 14:15:35 -08:00
Chris Lord
583585821b 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
Kartikaya Gupta
c2b7cef474 Bug 724042 - back out 663892ff23e0 as we have a better solution. 2012-02-04 18:48:21 -05:00
Brad Lassey
e69c929581 bug 724042 - disable tile by tile rendering r=dougt 2012-02-03 13:58:02 -05:00
William Lachance
8dba831088 Bug 719570 Provide option to change checkerboard to flat color on fennec for eideticker automation r=pcwalton 2012-02-03 12:35:01 -08:00
Kartikaya Gupta
162e714671 Bug 720538 - Remove unused functions and variables. r=wesj 2012-02-02 09:16:25 -05:00
Chris Lord
926982757d Bug 717349 - Add optional render and checkerboarding profiling. r=kats
This adds checkerboard profiling to LayerRenderer, that can be enabled either
by enabling debug logging of the "GeckoLayerRendererProf" tag, or via
reflection using PanningPerfAPI.
2012-02-02 09:02:32 +00:00
Wes Johnston
7961ebb888 Bug 723200 - Enable multitouch by default on Android. r=mbrubeck 2012-02-01 17:08:04 -08:00
Wes Johnston
81e2ecb00d 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
27adb9fb63 Back out b35af982b085 (bug 721080) for android-xul bustage 2012-02-01 12:10:53 -08:00
Wes Johnston
0ab3731608 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
Wes Johnston
cbe4570b49 Bug 721076 - Set correct prevent panning mode on touchdown. r=kats 2012-02-01 10:33:33 -08:00
Brad Lassey
16a5bb5bd6 bug 721741 - Add support for Flash on Android 4.0+, follow up to use reflection and not require ICS SDK r=dougt 2012-02-01 01:29:09 -05:00
James Willcox
ced0347f0e Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Boris Zbarsky
403d51ce98 Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds. 2012-01-31 23:38:35 -05:00
James Willcox
9334322db3 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Ed Morley
388e7e6979 Backout b87113ff33ff (bug 721741) for Android build failures 2012-01-31 16:19:00 +00:00
James Willcox
fd3a41a585 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Chris Lord
c1e993df15 Bug 722068 - Fix invalidation during animations in MultiTileLayer. r=pcwalton
The buffer in MultiTileLayer is invalidated each time the origin or resolution
changes. MultiTileLayer was using the last updated origin/resolution instead of
the last set, so if Gecko was animating and locked the layer for long enough,
the buffer would be incorrectly invalidated due to the origin/resolution not
being updated.
2012-01-31 09:36:02 +00:00
Chris Lord
30f5d53aa8 Bug 720613 - Prevent resizing before the surface has been created. r=pcwalton
Prevent trying to resize the buffer before the surface has been created. At
that point, we wouldn't know our maximum texture size, so we would've thrown a
RuntimeException.
2012-01-31 09:36:00 +00:00
Kartikaya Gupta
023caa61db Bug 708687 - Snap the page when the page size changes and pushes it into overscroll. r=pcwalton 2012-01-30 23:43:36 -05:00
Kartikaya Gupta
67add8af20 Bug 720144 - Expose methods in robocop to grab the painted surface and to compare pixels. r=jmaher 2012-01-30 22:46:13 -05:00
Kartikaya Gupta
10db96c244 Bug 720144 - Allow listening for draw updates and obtaining a copy of the composited surface for robocop testing. r=Cwiiis 2012-01-30 22:45:38 -05:00
Chris Lord
a560f7f2c4 Bug 721070 - Checkerboarding at bottom after pinch zooming out. r=kats,pcwalton
Certain conditions would cause MultiTileLayer to incorrectly invalidate tiles,
or to reuse tiles incorrectly, which would cause checkerboarding (sometimes
permanent until a redraw occurs).

This addresses said issues:

- Removes manual invalidation on Document:Shown and Tab:Selected. This is
  unnecessary, as the entire buffer will be invalidated when this happens
  anyway. Sometimes Document:Shown happens *after* drawing has occurred,
  which caused the entire screen to checkerboard incorrectly.
- Fix re-using off-screen tiles with the incorrect resolution. Tiles are stored
  in a hash-map based on their unscaled position. As only tiles that intersect
  with the update region in tile-space are invalidated, sometimes tiles that
  were off-screen, but whose unscaled tile origin appears on-screen would be
  incorrectly re-used. Fix this by checking that a tile's resolution matches the
  current resolution before reusing it.
2012-01-26 20:19:35 +00:00
Chris Lord
8750f68b59 Bug 721100 - After panning, tap area is offset at wrong place. r=pcwalton
When rendering with an offset for MultiTileLayer, the tile origin was moved
to compensate, but this lead to there being a mismatch between Gecko's
displayport origin and the one recorded on the Java side.

Instead of altering the origin, allow setting a render offset on MultiTileLayer
instead, so the origin remains correct.
2012-01-26 20:18:47 +00:00
Brad Lassey
0cb5691661 bug 711201 - instrument when we paint for performance testing r=dougt 2012-01-24 15:53:49 -05:00
Margaret Leibovic
361cb84d37 Bug 721220 - Send message back to java after tab selection is complete. r=mbrubeck 2012-01-25 20:06:08 -08:00
Kartikaya Gupta
fbd9e4aea1 Bug 718270 - When hiding the VKB on small pages, increase page size to prevent zoom-in. r=pcwalton 2012-01-25 17:16:03 -05:00
Wes Johnston
2fd2e86804 Bug 719309 - Follow up. Rename a variable. r=mfinkle 2012-01-25 01:41:02 +01:00
Wes Johnston
8cf1ffe8b1 Bug 719309 - Hook up touch events pref and disable them for now. r=mfinkle 2012-01-25 01:31:33 +01:00
Wes Johnston
b4f82372f4 Bug 719240 - Delay sending touchmove events until touches have moved a minimum distance. r=mfinkle 2012-01-25 01:31:33 +01:00
Wes Johnston
38ab14764c Bug 603008 - Only delay panning on pages with touch listeners. r=mfinkle 2012-01-25 01:31:33 +01:00
Wes Johnston
a02904d162 Bug 603008 - Android widget multitouch implementation. r=blassey,kats 2012-01-25 01:31:33 +01:00
Patrick Walton
918dd9c009 Bug 710533 - Tint the checkerboard with the background color of the page. r=Cwiiis 2012-01-23 20:10:24 -08:00
Chris Lord
cef8ea399b 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
Chris Lord
baf63d1e38 Bug 717283 - Store sub-tile metrics on the tile object. r=pcwalton
Instead of deriving sub-tile metrics on each iteration, create a SingleTileLayer
sub-class and store them there.
2012-01-24 15:38:29 +00:00
Phil Ringnalda
68bc9fb0e8 Backed out changeset b77c0c621163 (bug 710533) for native ts bustage 2012-01-23 23:33:05 -08:00
Phil Ringnalda
1d1f061673 Back out 420d7b8ed59d for being a bad backout 2012-01-23 23:32:11 -08:00
Phil Ringnalda
4d92a24459 Backed out changeset b77c0c621163 (bug 710533) for native ts bustage 2012-01-23 22:53:07 -08:00
Patrick Walton
9120d78e9d Bug 710533 - Tint the checkerboard with the background color of the page. r=Cwiiis 2012-01-23 20:10:24 -08:00
Patrick Walton
29365a4489 Bug 706684 - Implement a simpler scale gesture listener on Android. r=Cwiiis 2012-01-23 19:18:24 -08:00
Ed Morley
c4c32df0c4 Backout 91eebc6bdb59 & 7d776b291014 (bug 717283) for Android native reftest crashes 2012-01-22 11:55:18 +00:00
Chris Lord
d70b23ac39 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
Chris Lord
9426018c8c Bug 717283 - Store sub-tile metrics on the tile object. r=pcwalton
Instead of deriving sub-tile metrics on each iteration, create a SingleTileLayer
sub-class and store them there.
2012-01-22 09:40:26 +00:00
Patrick Walton
6ba521126c Bug 707956 - Restore original zoom scale on double rotation. r=kats 2012-01-20 21:14:03 -08:00
Matt Brubeck
4a1a0d545b Back out 47584f117727 and e05a8743389a (bug 717283) because of native Android startup crashes 2012-01-20 11:42:34 -08:00