Commit Graph

290 Commits

Author SHA1 Message Date
Chris Lord
dcd3986f0b Bug 748718 - Make ScreenshotLayer use SingleTileLayer's draw function. r=kats
ScreenshotLayer overrides SingleTileLayer's draw function to simplify the
drawing process. Unfortunately, this doesn't respect the layer mask, and can
cause the layer to appear incorrectly stretched.

Change the screenshot process so that whole-page screenshots pass parameters
that are pre-scaled (to avoid mismatches when the viewport changes), and set
the page size on the ScreenShotLayer so it draws in the correct place.

This also alters the masking slightly to avoid visible seams around masks in
the centre of the page, and to avoid unnnecessary drawing at the edges of the
page.

This change fixes the frame-rate issues with the screenshot layer, as it
removes unnecessary over-draw.
2012-04-26 13:45:31 -04:00
Brad Lassey
d1c25e9164 bug 746016 - Cache low res version of the page in the java ui for use instead of checkerboarding r=kats 2012-04-24 15:13:36 -04:00
Joe Drew
2a5ca8741b Bug 744916 - Make the Java viewport keep track of its size in both CSS pixels and device pixels. r=kats 2012-04-12 16:00:56 -04:00
Eitan Isaacson
467fa86445 Bug 739493 - Add "Accessibility:IsEnabled" message for Android 2012-03-15 10:38:27 -04:00
Eitan Isaacson
27c8cd796c Bug 739493 - Add "Accessibility:Event" message for Android 2012-03-09 15:06:50 -08:00
James Willcox
9e4b725c81 backout 022be5c50732 for xul bustage 2012-04-11 12:56:00 -04:00
James Willcox
102c4acb1e Bug 730890 - Set up an Android Looper on the main Gecko thread r=cjones 2012-04-11 11:43:08 -04:00
Brad Lassey
3749b7ad18 bug 738198 - crash in nsPluginInstanceOwner::~nsPluginInstanceOwner r=snorp 2012-03-27 01:31:57 -04:00
Kartikaya Gupta
bc371e9e38 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
Jeff Muizelaar
926e51ef1e Bug 740898. Merge LayerView and GLSurfaceView. r=pcwalton
Once, GLThread is gone we don't have any need to support both styles of GL
rendering. Merging LayerView and FlexibleGLSurfaceView makes it clearer what's
going on, and I expect we'll also be able to take out some dead code from the
resulting LayerView.

This patch is mostly uninteresting. The interesting bits are that
implementations of requestRender and the constructors are merged. Everything
else is mostly copying over methods and renaming FlexibleGLSurfaceView's
mController to mGLController.
2012-04-05 11:28:50 -04:00
Jeff Muizelaar
098c50caf5 Backed out changeset 0f8439284834
The bug number was wrong.
2012-04-05 11:27:02 -04:00
Jeff Muizelaar
966117f7f3 Bug 730898. Merge LayerView and GLSurfaceView. r=pcwalton
Once, GLThread is gone we don't have any need to support both styles of GL
rendering. Merging LayerView and FlexibleGLSurfaceView makes it clearer what's
going on, and I expect we'll also be able to take out some dead code from the
resulting LayerView.

This patch is mostly uninteresting. The interesting bits are that
implementations of requestRender and the constructors are merged. Everything
else is mostly copying over methods and renaming FlexibleGLSurfaceView's
mController to mGLController.
2012-03-30 14:21:59 -04:00
Brad Lassey
95e9d4b7b6 bug 741284 - add async file request method r=kats 2012-04-05 01:50:06 -04:00
Mounir Lamouri
776c2cfd87 Bug 740190 - Screen Orientation API: implement locking in Android. r=dougt 2012-03-29 23:31:12 -07:00
Ali Juma
ee6e4e172a Bug 735230 - Part 2: Add compositor pause/resume events to Gecko. r=kats 2012-03-28 18:00:32 -04:00
Josh Dhaliwal
b96bed3346 Bug 735011 - geolocation - support enableHighAccuracy position option. r=dougt 2012-03-21 10:52:35 -07:00
Doug Turner
652e44a263 Bug 735330 - move device motion from dom/system to hal. r=jdm
* * *
Bug 735330 - move device motion from dom/system to hal. cocoa bits. r=jdm
* * *
Bug 735330 - move device motion from dom/system to hal. window/qt/linux bits. r=jdm
* * *
Bug 735330 - move device motion from dom/system to hal. move accuracy into sensor data.  support compassneedscalibration. r=jdm
2012-03-20 23:36:17 -07:00
Matt Brubeck
7c4b6228e2 Back out bug 735330, bug 737462, bug 734854 because they broke XUL Fennec 2012-03-20 16:59:24 -07:00
Doug Turner
763d8ec79d Bug 735330 - move device motion from dom/system to hal. r=jdm
* * *
Bug 735330 - move device motion from dom/system to hal. cocoa bits. r=jdm
* * *
Bug 735330 - move device motion from dom/system to hal. window/qt/linux bits. r=jdm
* * *
Bug 735330 - move device motion from dom/system to hal. move accuracy into sensor data.  support compassneedscalibration. r=jdm
2012-03-20 14:46:14 -07:00
Mounir Lamouri
de96081e47 Bug 720795 - Screen Orientation API reading and event implementation in Android. r=dougt 2012-03-20 14:09:45 +01:00
Kartikaya Gupta
add569747b Bug 731603 - Propagate a layersUpdated flag to Java for robocop use. r=ajuma 2012-03-20 00:06:56 -04:00
Kartikaya Gupta
05b0f73e37 Bug 731603 - Propagate the resolution of the painted content into syncViewportInfo as well. r=Cwiiis 2012-03-20 00:05:45 -04:00
Mounir Lamouri
3f5c4187e2 Bug 730289 - Filepicker on Android should allow picking or capturing media instead of having a specific button for capture. r=dougt,wesj ui-r=madhava 2012-03-18 17:15:56 +01:00
Mark Finkle
335c2f59ce Backout 7e28d1a2c648, 330b210f503d, 2421d39e0ab3, aa978ffa44bc, 38a71ae7e06d, b94319584a7a, 7e8278f5e814, 0b4e3c7608ab, 329c07609ca8, 0d61a0d8dba4, Due to Ts regression on Android 2012-03-17 21:51:39 -04:00
Mounir Lamouri
83cc88b3ca Bug 730289 - Filepicker on Android should allow picking or capturing media instead of having a specific button for capture. r=dougt,wesj ui-r=madhava 2012-03-16 22:44:00 +01:00
Mounir Lamouri
6ae5197cf9 Bug 720795 - Screen Orientation API reading and event implementation in Android. r=dougt 2012-03-16 19:43:10 +01:00
Chris Lord
d84dae1cac Bug 732756 - Fix overdrawing of checkerboard. r=kats
Fix overdrawing of the checkerboard layer by letting layers have a concept of
a display-port, and keeping the root layer's display port in track with
Gecko's.
2012-03-17 15:08:22 +00:00
Ryan VanderMeulen
485a3a7c47 Backout d5b66e64cf44 (bug 732756) to see if it fixes Android crashtests. 2012-03-16 17:17:22 -04:00
Chris Lord
f8d4e5d838 Bug 732756 - Fix overdrawing of checkerboard. r=kats
Fix overdrawing of the checkerboard layer by letting layers have a concept of
a display-port, and keeping the root layer's display port in track with
Gecko's.
2012-03-16 16:30:23 +00:00
Kartikaya Gupta
8b3253f630 Bug 725095 - Merge off-main-thread compositor from Maple. IGNORE BAD COMMIT MESSAGES 2012-03-14 11:18:15 -04:00
Kartikaya Gupta
a47d6f09d0 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
bbefdec4f2 Merge mc->Maple 2012-03-13 11:05:28 -04:00
Kartikaya Gupta
7e287d9a19 Bug 732091 - Part 4: Add JNI-exposed functions on GeckoLayerClient to allow the compositor to update various properties. r=Cwiiis 2012-03-12 11:50:21 -04:00
Benoit Girard
17b9033e00 Merge mc->Maple 2012-03-08 10:22:42 -05:00
Eitan Isaacson
b2fbf33b59 Bug 729237 - Fixed AndroidBridge emit a11y event function, added java string class as class member. r=blassey 2012-03-07 19:24:38 -05:00
Brad Lassey
8ded1f80e4 merge from mozilla-central 2012-02-18 17:29:33 -05:00
Kartikaya Gupta
0a466af8b4 Also remove dangling entrails of the layer client type 2012-02-17 09:16:14 -05:00
Kartikaya Gupta
d82e6e4e91 Rip out unused GeckoSoftwareLayerClient since we've committed to GL layers. 2012-02-17 09:04:50 -05:00
Doug Turner
33f900dc57 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Brad Lassey
cff653877d bug 726930 - speed up tab thumbnails r=mfinkle 2012-02-17 10:52:26 -08:00
Benoit Girard
51b1b7a371 remove dead code 2012-02-14 18:36:33 -05:00
Benoit Girard
db6e6f7a54 Merge m-c into maple 2012-02-08 16:43:22 -05:00
Ali Juma
5c47a7502a Move surface ownership to GLContextProviderEGL. 2012-02-06 16:53:09 -05:00
Ali Juma
2bde4e095d Add support for pausing/resuming composition from Java. 2012-02-05 13:33:38 -05:00
Patrick Walton
99dac3d363 Stand up async panning and zooming 2012-02-03 23:31:05 -08:00
Patrick Walton
ba5b63cde0 Poke the compositor to composite on a pan or zoom; stub AndroidBridge::GetViewTransform() 2012-02-03 18:35:58 -08:00
Patrick Walton
39225caccc Eliminate coupling between the software layer client and the rest of Fennec 2012-02-02 23:30:41 -08:00
Patrick Walton
7d31d7d639 Partial removal of tiling, stub callouts 2012-02-02 19:28:22 -08:00
Benoit Girard
8f47dc19cd Progress on omtc integration 2012-02-01 16:18:35 -05:00
Benoit Girard
72d5341c9d Move registerCxxCompositor to FlexView 2012-02-01 14:15:52 -05:00