Commit Graph

4881 Commits

Author SHA1 Message Date
Brad Lassey
95697a85f1 backing out e45688c8531c because it broke the build 2012-02-18 14:21:48 -05:00
Patrick Walton
ce3f178378 Stub untested gralloc support, disabled for now 2012-02-17 23:53:21 -08:00
Doug Turner
b376c8db03 Bug 727140 - OOM due to zoom of background tabs going to zero. This prevents viewport resizing happening on background tabs which should be a bit faster. r=pcwalton
--HG--
extra : rebase_source : b0922946f42996f1f0454c58cb6bbdb7a5243653
2012-02-17 23:08:47 -08:00
Chris Lord
1c3a4da33d Bug 726817 - Use nsIFrameLoaderOwner.clampScrollPosition to fix clip on zoom.
Zooming in caused the right and bottom edges of the page to be clipped. This
was because we would try to scroll to coordinates that, untransformed, would be
invalid. The document has no knowledge of the zoom, and so the scroll position
needs to be forced somehow.

Java compositor accomplished this using a CSS translation transformation, this
accomplishes it by turning off scroll position clamping (a technique that the
Java compositor should also employ, if the patch this relies on passes review).
2012-02-17 23:44:47 +00:00
Chris Lord
d3e2a70ed1 Backout 87134:1c1c22bd0291 and 87135:a4af71f1bc1f
Realised I made a mistake with the nsIFrameLoaderOwner.clampScrollPosition
patch and I want this to go in as a single commit and not break building of
Maple.
2012-02-18 00:46:23 +00:00
Chris Lord
f5bd1688ff Bug 726817 - Use nsIFrameLoaderOwner.clampScrollPosition to fix clip on zoom.
Zooming in caused the right and bottom edges of the page to be clipped. This
was because we would try to scroll to coordinates that, untransformed, would be
invalid. The document has no knowledge of the zoom, and so the scroll position
needs to be forced somehow.

Java compositor accomplished this using a CSS translation transformation, this
accomplishes it by turning off scroll position clamping (a technique that the
Java compositor should also employ, if the patch this relies on passes review).

--HG--
extra : rebase_source : a13403d53fed39e1f042da3611147da1c0420cf0
2012-02-17 23:44:47 +00:00
Matt Brubeck
9bd972b678 Bug 728379 - [maple] Use setCSSViewport to set the layout viewport [r=ehsan] 2012-02-17 13:15:12 -08: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
58f6991fe8 Don't call updateViewport two times in a row 2012-02-17 11:58:36 -05:00
Kartikaya Gupta
c0bede0671 (Part 5) Move overrides and abstract/interface implementations up from GeckoGLLayerClient into GeckoLayerClient 2012-02-17 10:33:23 -05:00
Kartikaya Gupta
61b3014dc0 (Part 4) Mark all gfx functions invoked by JNI so I don't shoot myself in the foot shortly 2012-02-17 10:13:56 -05:00
Kartikaya Gupta
fb6b8d0de1 (Part 3) Collapse LayerClient into GeckoLayerClient, the only subclass 2012-02-17 10:03:28 -05:00
Kartikaya Gupta
248ea83b06 (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
18f2df4c4b (Part 1) Get rid of LayerController.getLayerClient() 2012-02-17 09:32:24 -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
Kartikaya Gupta
067aec74dc Cache the checkberboard color so that we don't redo a bunch of work uselessly 2012-02-16 12:04:37 -05:00
Kartikaya Gupta
5bf0a60702 Bug 727565 - Fix new compiler warnings for javac 1.7. r=bnicholson 2012-02-15 22:55:47 -05:00
Sriram Ramasubramanian
ebf002141f Bug 727610: Supporting fullscreen on ICS. [r=mfinkle] 2012-02-15 16:14:02 -08:00
Patrick Walton
0a26b4f1af Don't render while pinching. Reduces jank and makes zooming easier to debug. 2012-02-13 22:48:00 -08:00
Patrick Walton
56de51a1ef Scale the displayport by the zoom factor 2012-02-13 22:32:31 -08: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
Kartikaya Gupta
678c1602f3 Guard against OOMing in GeckoGLLayerClient.getBitmap like we were doing in GeckoSoftwareLayerClient 2012-02-13 18:15:27 -05:00
Patrick Walton
ec85569a69 Expose ActivateProgram() and DeactivateProgram() to widget 2012-02-13 13:55:10 -08:00
Kartikaya Gupta
4cb6d472a6 Reduce diff against m-c; remove unrelated change in AboutHomeContent 2012-02-13 17:43:08 -05:00
Kyle Machulis
326642dc74 Bug 711601 - Bluetooth Implementation on B2G - patch 1: Boilerplate code for creating navigator.mozBluetooth object. r=bent 2012-02-15 13:37:13 -08:00
Kyle Machulis
1e21da06e6 Bug 711601 - Bluetooth Implementation on B2G - patch 1: Boilerplate code for creating navigator.mozBluetooth object. r=bent 2012-02-14 17:51:52 -08:00
Patrick Walton
9e0e8cfe4a Split out Java compositor shader program activation and deactivation into separate functions 2012-02-13 12:27:09 -08:00
Ali Juma
68ad1b725b Enable zooming. 2012-02-12 15:06:34 -05:00
Patrick Walton
6676ba0403 Deactivate vertex attribute arrays and the program. Seems to fix the crashes on PowerVR. 2012-02-10 23:50:13 -08: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
0c0424a446 Fix browser.js ReferenceError 2012-02-10 16:17:15 -08:00
Ali Juma
77cc2a2579 Fix race conditions when updating view transform, by switching to an absolute transform. 2012-02-10 16:08:24 -05:00
Ali Juma
302758e203 Merge heads. 2012-02-10 10:31:31 -05:00
Patrick Walton
76fcf64d4a Expose the necessary Java routines to render decorations through JNI 2012-02-09 22:58:18 -08:00
Ali Juma
c1890c2bfc Code cleanup. 2012-02-09 17:39:04 -05:00
Patrick Walton
fdf11e0c13 Split up the LayerRenderer's drawing logic in preparation for exposing it to JNI 2012-02-08 22:27:01 -08:00
Patrick Walton
2acc9c16c8 Bug 723036 - Port the Java compositor to OpenGL ES 2.0 2012-02-08 21:13:08 -08:00
Benoit Girard
b18a77e427 Merge viewport with tip 2012-02-08 20:42:17 -05:00
Benoit Girard
3f101c071a Merge working on Nexus S 2012-02-08 20:23:27 -05:00
Ali Juma
dc7ca971bd Merge. 2012-02-08 19:55:13 -05: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
Patrick Walton
0003ee017b Remove CSS transforms as they're basically incompatible with displayports 2012-02-08 13:12:12 -08:00
Ali Juma
979559567f Fix incorrect rendering after orientation change. 2012-02-08 16:09:10 -05:00
Benoit Girard
45a2fe6612 Merge working head with display port head 2012-02-08 12:18:27 -05:00
Benoit Girard
1ef0dddb81 Remove RemoveAbstractView, pushing new head 2012-02-08 10:46:26 -05:00
Patrick Walton
d0bfe2e578 Allow redraw while a finger is down. Make this logic work properly later. 2012-02-07 23:37:29 -08:00