Commit Graph

73 Commits

Author SHA1 Message Date
Kartikaya Gupta
7968d9bc1e 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
e5c84b3aae Bug 736125 - Fix Java 7 compile warnings. r=sriram 2012-03-15 15:01:52 -04:00
Kartikaya Gupta
0435827509 Bug 735612 - Remove unneeded call to notifyLayerClientOfGeometryChange. r=Cwiiis 2012-03-15 10:43:32 -04:00
Kartikaya Gupta
f8a8d4a442 Bug 725095 - Various fixes to get maple ready to land on m-c. r=Cwiiis
- Disable fps layer.
- Add some comments to FlexibleGLSurfaceView.
- Get rid of getBufferSize and some other related cleanup.
- Add some comments to compositor-invoked functions in GeckoLayerClient.
- Take out unnecessary parameters to Rect constructor.
- Move class variable initialization to constructor.
- Take out kUsingGLLayers.
- Add a comment about changes in background color.
- Fix up convertViewPointToLayerPoint to be more correct.
- Add note in setPositionAndResolution about how it might be wrong.
- Modify provideEGLSurface to not store the surface in mEGLSurface.
- Remove some unneeded, commented out code in GLThread.
2012-03-12 16:20:19 -04:00
Kartikaya Gupta
75d5d024ed Bug 732564 - Align the rotation/resize codepath with The Grand Viewport Plan of 2012. r=Cwiiis 2012-03-12 12:03:38 -04:00
Kartikaya Gupta
64b509355a Bug 732564 - Make sure to update the display port when we get a viewport update. r=Cwiiis 2012-03-12 12:03:38 -04:00
Jeff Muizelaar
3e461e7948 Bug 732576. make getViewTransform fast. r=kats
This removes the logging, locking and allocations from getViewTransform.

This reduces the time spent from an median of 6.3ms to 0.061ms

We use a new scheme where the view transform is immutable and the member
variable containing it is atomically overwritten. So we may get a slightly old
view transform but this won't be a problem.
2012-03-02 14:31:27 -05:00
Benoit Girard
921124c30e Bug 733184 - Remove more logging from widget. r=pcwalton 2012-03-05 19:58:18 -05:00
Benoit Girard
3daa99ec38 Merge mc->maple 2012-03-01 10:44:44 -05:00
Kartikaya Gupta
3a1dd894f2 Bug 731619 - Fix race condition where flags are cleared before they are set. r=ehsan 2012-02-29 16:26:02 -05:00
Benoit Girard
475d958691 Bug 730967 - Don't recompute checkerboard color every frame. r=pwalton
--HG--
extra : rebase_source : 1c8251bb2e84e0039185ffe9f80d43f52d7c2bcf
2012-02-28 19:17:58 -05:00
Kartikaya Gupta
7fca225f10 Bug 730687 - Hook up the aboutToCheckerboard code again. r=Cwiiis 2012-02-28 16:14:14 -05:00
Kartikaya Gupta
b54adee8aa Merge the origin (Point) and size (IntSize) properties of Layers into a single position (Rect) property.
Not only does this reduce the amount of cruft needed while getting and setting these properties, it
makes the code more consistent because we don't have half of this stored in the Layer base class and
the other half provided by an abstract method implementation in subclasses. Furthermore, this
allows the VirtualLayer size to be updated based on the area painted by gecko rather than remaining
fixed at the view size when the virtual layer was created.
2012-02-26 10:47:47 -05:00
Ehsan Akhgari
21df951827 Bug 728614 - Fix the zoom level when the device rotates on pages with <meta viewport> information; r=kats 2012-02-22 13:13:16 -05:00
Benoit Girard
d55e42e1bd mCheckerboardShouldShowChecks should default to true. DONTBUILD 2012-02-21 16:19:23 -05:00
Chris Lord
1cd5a15deb Bug 728978 - Fix scrollToFocusedInput in browser.js. r=mfinkle
This fixes scrollToFocusedInput by doing the extra scrolling that scrollIntoView
can't do (due to the way we zoom), and by making sure the events land in the
right order.
2012-02-21 16:46:48 +00:00
Ehsan Akhgari
0699b06da9 Fix clicking 2012-02-20 17:47:32 -05:00
Kartikaya Gupta
ebc21570a5 (Part 2) Stop PlaceholderLayerClient from extending LayerClient since it has nothing in common with GeckoLayerClient and makes a mockery of OOP 2012-02-17 09:56:47 -05:00
Kartikaya Gupta
a5b438d771 (Part 1) Get rid of LayerController.getLayerClient() 2012-02-17 09:32:24 -05:00
Doug Turner
222fba130c Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Patrick Walton
fa07e9b633 Don't render while pinching. Reduces jank and makes zooming easier to debug. 2012-02-13 22:48:00 -08:00
Benoit Girard
2f35d690b6 Merge m-c into maple 2012-02-08 16:43:22 -05:00
Benoit Girard
9b2cd37240 Remove RemoveAbstractView, pushing new head 2012-02-08 10:46:26 -05:00
Benoit Girard
7768764c56 merge mc into kiwifox 2012-01-31 13:55:51 -05:00
Benoit Girard
cc153dc324 Mergi mc to kiwifox, lots of conflicts so may not build 2012-01-30 13:38:20 -05: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
Benoit Girard
2a3688a8df Partial work for android OGLSurfaceView
--HG--
extra : rebase_source : 2c6ce362dd859e9f81a5b4490e2451826259a651
2012-01-26 14:23:13 -05:00
Kartikaya Gupta
7a58e90d7c Bug 715836 - Ensure the UI is only modified from the UI thread. r=pcwalton 2012-01-13 07:03:22 -05:00
Kartikaya Gupta
8637bcee20 Bug 715836 - (Cleanup) Remove unused functions. r=pcwalton 2012-01-13 07:03:22 -05: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
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
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
Patrick Walton
6ba521126c Bug 707956 - Restore original zoom scale on double rotation. r=kats 2012-01-20 21:14:03 -08:00
Kartikaya Gupta
c2d9c05f1a Bug 703347 - Add a background image visible during overscroll. r=Cwiiis 2012-01-20 09:27:09 -05:00
Wes Johnston
45a0bdd0dc Bug 725458 - Start touch timeout during action_down. r=mbrubeck 2012-02-29 14:03:28 -08:00
Wes Johnston
b2a03999cb backout 107beeff501d 2012-02-29 13:37:13 -08:00
Wes Johnston
b8c10d6474 Bug 725458 - Start touch timeout during action_down. r=mbrubeck 2012-02-29 13:13:31 -08:00
Wes Johnston
119c643410 Bug 730952 - Update mayHaveTouchListeners correctly on tab changes. r=mleibovic 2012-02-29 09:09:43 -08:00
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
36b1a1f54b Bug 709817 - Ensure PZC is always accessed on the UI thread. r=pcwalton
Ensure that all public functions in PZC are always called from
the UI thread, so that internal variables are not mutated on
different threads. I also made animatedZoomTo private so that
it can't be inadvertently called from a non-UI thread outside
the class.
2011-12-20 16:53:39 -05:00
Kartikaya Gupta
c5f70b0a51 Bug 709817 - (Cleanup) Replace geometryChanged() with abortAnimation() and remove dead calls. r=pcwalton
Since the geometryChanged function does nothing if the parameter passed
in is false, better to rename the function to be more indicative of
what it actually does, and remove all the resulting dead code.
2011-12-20 16:53:39 -05:00
Kartikaya Gupta
e8312c4295 Bug 712037 - Add lots of logging to help diagnose viewport issues. r=Cwiiis 2011-12-19 22:32:41 -05:00
Chris Lord
c855fa8dbb Bug 708307 - Decouple texture size from tile size. r=pcwalton
This removes the hard-coded limit of 1024x2048 tile sizes, and allows for
arbitrary tile-sizes. It will still only allocate texture sizes in powers of
two, however. It replaces the tile size with a buffered-area size, which can be
re-allocated as the screen dimensions change.
2011-12-15 23:45:52 +00:00