Commit Graph

1071 Commits

Author SHA1 Message Date
Patrick Walton
c18e9e380e Stub untested gralloc support, disabled for now 2012-02-17 23:53:21 -08:00
Doug Turner
fb206c408e 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
c84e375054 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
2c6eb0985e 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
e0a80d3736 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
64de5a1bc3 Bug 728379 - [maple] Use setCSSViewport to set the layout viewport [r=ehsan] 2012-02-17 13:15:12 -08:00
Chris Lord
56eedf55bb 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
b990b3c180 Don't call updateViewport two times in a row 2012-02-17 11:58:36 -05:00
Kartikaya Gupta
1e521b419a (Part 5) Move overrides and abstract/interface implementations up from GeckoGLLayerClient into GeckoLayerClient 2012-02-17 10:33:23 -05:00
Kartikaya Gupta
abd5e1faa7 (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
614fed1c73 (Part 3) Collapse LayerClient into GeckoLayerClient, the only subclass 2012-02-17 10:03:28 -05:00
Kartikaya Gupta
9aa1e892f6 (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
79bfcbfa4e (Part 1) Get rid of LayerController.getLayerClient() 2012-02-17 09:32:24 -05:00
Kartikaya Gupta
357cb8e480 Also remove dangling entrails of the layer client type 2012-02-17 09:16:14 -05:00
Kartikaya Gupta
7ae132d853 Rip out unused GeckoSoftwareLayerClient since we've committed to GL layers. 2012-02-17 09:04:50 -05:00
Kartikaya Gupta
54ec96eba6 Put back some things left out of dougt's merge 2012-02-17 01:36:49 -05:00
Doug Turner
3f133bfdd1 Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Kartikaya Gupta
a2fbc5a933 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
017fdd22f9 Bug 727565 - Fix new compiler warnings for javac 1.7. r=bnicholson 2012-02-15 22:55:47 -05:00
Sriram Ramasubramanian
21174befc5 Bug 727610: Supporting fullscreen on ICS. [r=mfinkle] 2012-02-15 16:14:02 -08:00
Brad Lassey
ccbe98dba8 bug 726930 - speed up tab thumbnails r=mfinkle 2012-02-17 10:52:26 -08:00
Patrick Walton
33a9ad9c0a Don't render while pinching. Reduces jank and makes zooming easier to debug. 2012-02-13 22:48:00 -08:00
Patrick Walton
97d18e40e9 Scale the displayport by the zoom factor 2012-02-13 22:32:31 -08:00
Patrick Walton
2f48494641 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
68f70683a6 Guard against OOMing in GeckoGLLayerClient.getBitmap like we were doing in GeckoSoftwareLayerClient 2012-02-13 18:15:27 -05:00
Patrick Walton
9192420dcd Expose ActivateProgram() and DeactivateProgram() to widget 2012-02-13 13:55:10 -08:00
Kartikaya Gupta
b840a72049 Reduce diff against m-c; remove unrelated change in AboutHomeContent 2012-02-13 17:43:08 -05:00
Patrick Walton
60ed20fee4 Split out Java compositor shader program activation and deactivation into separate functions 2012-02-13 12:27:09 -08:00
Ali Juma
f5ab6719f2 Enable zooming. 2012-02-12 15:06:34 -05:00
Patrick Walton
18ca020f2d Deactivate vertex attribute arrays and the program. Seems to fix the crashes on PowerVR. 2012-02-10 23:50:13 -08:00
Patrick Walton
6701f65a25 Uncomment the Java compositor integration, except for the part that causes PowerVR crashes 2012-02-10 23:03:02 -08:00
Patrick Walton
c0749c492c Fix browser.js ReferenceError 2012-02-10 16:17:15 -08:00
Ali Juma
d86e8c7c2a Fix race conditions when updating view transform, by switching to an absolute transform. 2012-02-10 16:08:24 -05:00
Ali Juma
1938bda689 Merge heads. 2012-02-10 10:31:31 -05:00
Patrick Walton
f87504cb9a Expose the necessary Java routines to render decorations through JNI 2012-02-09 22:58:18 -08:00
Richard Newman
2f575791aa Bug 727725 - Incorrect assertion in GlobalSession. 2012-02-16 14:58:31 -08:00
Richard Newman
e326003e43 Bug 726194 - Sync pairing succeeds, but is OFF. 2012-02-16 14:28:04 -08:00
Matt Brubeck
bb813207bf Bug 728005 - Crash when entering full screen mode on Android 2.3 [r=sriram] 2012-02-16 14:22:27 -08:00
Mark Finkle
34b729110d Bug 726399 - Robotium: Add simple test for 'Open Link' context menu r=gbrown 2012-02-16 14:32:33 -05:00
Mark Finkle
3dbcdd7bc9 Backout eb9c17efd1e4, wrong patch 2012-02-16 14:21:52 -05:00
Mark Finkle
530ec79420 Bug 727730 - Add support for Share Link context menu r=mbrubeck 2012-02-16 14:07:12 -05:00
Mark Finkle
cf594fa163 Bug 726399 - Robotium: Add simple test for 'Open Link' context menu r=gbrown 2012-02-16 14:06:58 -05:00
Justin Lebar
6363384c43 Bug 727381 - On Android Fennec, send haptic feedback while a vibration is playing, so as not to clobber it. r=blassey 2012-02-15 13:56:00 -05:00
Ali Juma
7d3fe66eb2 Code cleanup. 2012-02-09 17:39:04 -05:00
Mike Hommey
cb6956df37 Bug 728872 - NULL-check mSoftwareLayerClient in GeckoApp$SessionSnapshotRunnable.run. r=mfinkle 2012-02-21 08:11:37 +01:00
Lucas Rocha
89f960d81b Bug 723841 - Add a foreign key to bookmarks table and sanitize special folders (r=rnewman) 2012-02-20 19:28:27 +00:00
Lucas Rocha
df024d5068 Bug 723841 - Define a constant for the predefined root id for bookmarks (r=rnewman) 2012-02-20 19:28:27 +00:00
Lucas Rocha
5cbbe8f7fa Bug 723841 - Generalize code to create or update special folders (r=rnewman) 2012-02-20 19:28:27 +00:00
Lucas Rocha
4f5adf4bdd Bug 723841 - Factor out methods to create each part of the database (r=rnewman) 2012-02-20 19:28:27 +00:00
Chris Lord
be296c04dd Bug 709813 - Fix full-screen mode in native android fennec. r=mbrubeck
The style rule that gets set for full-screen mode was conflicting with how we
size the browser element for viewport/displayport support. Size the browser
using min-width/height to work around this.
2012-02-20 17:21:56 +00:00
Patrick Walton
403348031e Split up the LayerRenderer's drawing logic in preparation for exposing it to JNI 2012-02-08 22:27:01 -08:00
Patrick Walton
235ae92665 Bug 723036 - Port the Java compositor to OpenGL ES 2.0 2012-02-08 21:13:08 -08:00
Benoit Girard
2fd24c9367 Merge viewport with tip 2012-02-08 20:42:17 -05:00
Benoit Girard
08dc021a3b Merge working on Nexus S 2012-02-08 20:23:27 -05:00
Ali Juma
8114ce0a00 Merge. 2012-02-08 19:55:13 -05:00
Benoit Girard
45f236563b Merge fixes 2012-02-08 19:01:21 -05:00
Benoit Girard
f470edbef2 Merge m-c into maple 2012-02-08 16:43:22 -05:00
Patrick Walton
23db7f4c8f Remove CSS transforms as they're basically incompatible with displayports 2012-02-08 13:12:12 -08:00
Ali Juma
d98ba3a3a9 Fix incorrect rendering after orientation change. 2012-02-08 16:09:10 -05:00
Benoit Girard
2bd8ddd4c2 Merge working head with display port head 2012-02-08 12:18:27 -05:00
Benoit Girard
f7adf36a2d Remove RemoveAbstractView, pushing new head 2012-02-08 10:46:26 -05:00
Patrick Walton
25d8e0c03b Allow redraw while a finger is down. Make this logic work properly later. 2012-02-07 23:37:29 -08:00
Patrick Walton
369bc595fa Lower the minimum viewport change delay to 25 for now 2012-02-07 23:10:58 -08:00
Patrick Walton
3fc8c47300 Use a display port in browser.js. Disable zooming and CSS viewport adjustment for now. 2012-02-07 22:45:41 -08:00
Ali Juma
0e90b797ea Move surface ownership to GLContextProviderEGL.
--HG--
extra : rebase_source : a3f83d279de5087a521a938d66c4e7b5dee79d74
2012-02-06 16:53:09 -05:00
Ali Juma
32e4aa0206 Pause/resume composition on surface destruction/creation. 2012-02-06 13:57:06 -05:00
Ali Juma
375d4d84d8 Add support for pausing/resuming composition from Java. 2012-02-05 13:33:38 -05:00
Patrick Walton
a57b590b7d Stand up async panning and zooming 2012-02-03 23:31:05 -08:00
Patrick Walton
1e1b06f118 Poke the compositor to composite on a pan or zoom; stub AndroidBridge::GetViewTransform() 2012-02-03 18:35:58 -08:00
Patrick Walton
0adcd70047 Stub ViewTransform code; unbork the viewport size a bit 2012-02-03 16:39:15 -08:00
Patrick Walton
85f93648a7 Add a virtual layer and GL layer client implementation 2012-02-03 15:48:26 -08:00
Benoit Girard
b83792f8f8 Change delay to 15ms 2012-02-03 14:18:48 -05:00
Benoit Girard
196b19d9ea Remove deadcode 2012-02-03 10:26:54 -05:00
Patrick Walton
08a46d3640 Eliminate coupling between the software layer client and the rest of Fennec 2012-02-02 23:30:41 -08:00
Patrick Walton
93b70fee0c Pull parts of GeckoSoftwareLayerClient that will be used for GL layers into a generic GeckoLayerClient class 2012-02-02 22:07:05 -08:00
Patrick Walton
3e30acd53d Partial removal of tiling, stub callouts 2012-02-02 19:28:22 -08:00
Benoit Girard
302a7b77e6 Fix problems with Nexus S init 2012-02-02 13:57:38 -05:00
Patrick Walton
be8bdd69ce Turn on OMTC by default; fix crash when acquiring EGL surface 2012-02-01 23:54:01 -08:00
Benoit Girard
a1415e44f6 Progress on omtc integration 2012-02-01 16:18:35 -05:00
Benoit Girard
d415e80071 Move registerCxxCompositor to FlexView 2012-02-01 14:15:52 -05:00
Ali Juma
0629ed7359 Merge m-c to kiwifox 2012-02-01 12:07:14 -05:00
Patrick Walton
29a2c8dcf0 Initial import of the flexible GL surface view 2012-01-31 21:35:52 -08:00
Benoit Girard
eb9974e490 Android build fixes 2012-01-31 14:28:37 -05:00
Benoit Girard
7f54a91188 merge mc into kiwifox 2012-01-31 13:55:51 -05:00
Doug Turner
130cfff68a Bug 720092 - java.lang.IndexOutOfBoundsException: getChars (0 ... 88168) ends beyond length 0. We do not know why this is happening yet. This patch catches the throw and logs what values we have for start and end. r=alexp 2012-01-31 09:24:31 -08:00
Kartikaya Gupta
4f628e8540 Bug 721125 - Prevent the edge resistance from being negative, which can wreak havoc on the viewport. r=pcwalton 2012-01-31 00:42:40 -05:00
Benoit Girard
25a5299d7e Merge fixes 2012-01-30 15:57:30 -05:00
Chris Lord
e8f8b8671a 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
254af0e4a9 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
Benoit Girard
e0bcc5a6d2 Mergi mc to kiwifox, lots of conflicts so may not build 2012-01-30 13:38:20 -05:00
Wes Johnston
c47d8bb602 Bug 718959 - Use data uri for homescreen shortcuts. r=blassey 2012-01-28 18:24:51 +01:00
Wes Johnston
5c1eb4cd4a Bug 711071 - Check for scrollable in velocity calculations. r=pcwalton 2012-01-28 18:23:45 +01:00
Brian Nicholson
852d8048cb Bug 701092 - Limit session restore attempts. r=mfinkle 2012-01-27 22:04:54 -08:00
Kartikaya Gupta
6240ed07e1 Bug 721888 - Fix compiler warnings. r=blassey 2012-01-27 21:00:03 -05:00
Benoit Girard
ac4cd6008e Add missing files 2012-01-27 13:32:37 -05:00
Brian Nicholson
077b327c1e Bug 716681 - Tabs are being duplicated when going back into Fennec. r=blassey 2012-01-27 17:33:02 -08:00
Brian Nicholson
0bd6883939 Bug 721577 - Race condition in about:home for tabs from last time. r=mfinkle 2012-01-27 17:28:47 -08:00
Brian Nicholson
054c5e8fc4 Bug 719195 - about:Home displayed briefly before session restore. r=mfinkle 2012-01-27 17:28:30 -08:00
Margaret Leibovic
c40ebd5017 Bug 719868 - Progress throbber still shows when we load about:home on startup. r=mfinkle 2012-01-26 15:07:38 -08:00
Wes Johnston
825ed8027d Bug 721079 - Report pages with touch event listeners to Java. r=mfinkle 2012-01-30 20:47:23 -08:00