Commit Graph

797 Commits

Author SHA1 Message Date
Kartikaya Gupta
0100d7eb89 Bug 781220 - Simplify initialization codepaths by having the LayerView create the GeckoLayerClient. r=sriram 2012-08-20 15:43:53 -04:00
Kartikaya Gupta
cc17ac9ac4 Bug 780650 - Clean up dynamic dependencies from robocop on fennec. r=cpeterson 2012-08-14 08:55:58 -04:00
Kartikaya Gupta
15a33bcf6e Bug 781676 - Fix possible NPE from a null mTouchEventHandler. r=sriram 2012-08-10 16:16:54 -04:00
Chris Peterson
82553df11c Bug 778468 - Part 9: Use EventDispatcher to remove ui dependency on GeckoAppShell event registration. r=blassey 2012-08-04 00:33:07 -07:00
Chris Peterson
32f71316ce Bug 778468 - Part 8: Add EventDispatcher to remove gfx dependency on GeckoAppShell event registration. r=blassey 2012-08-02 15:12:35 -07:00
Kartikaya Gupta
4f236aa54e Bug 780699 - Prevent possible deadlock by reducing the scope of a synchronized block in GLController. r=ajuma 2012-08-08 11:37:46 -04:00
Chris Peterson
c5e2d55e84 Bug 778468 - Part 7: Move GeckoEventListener to org.mozilla.gecko.util package. r=blassey
--HG--
extra : rebase_source : d0b2982b64126c046c5c974c7ec014992bef63b7
2012-08-02 17:13:40 -07:00
Chris Lord
7fdbd75bd8 Bug 780928 - Fix rawtypes usage in LayerView.java. r=kats
Fix unnecessary usage of raw Class type.
2012-08-07 18:57:19 +01:00
Kartikaya Gupta
ca979605e1 Bug 777351 - Scope down and inline some functions in the new GeckoLayerClient. r=sriram 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
69683b02fe Bug 777351 - Remove unnecessary getBitmap function that always returns null. r=sriram 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
0361af6b33 Bug 777351 - Fold LayerController into GeckoLayerClient. r=sriram 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
10678d4e7e Bug 777351 - Some minor cleanup in GeckoLayerClient.java. r=sriram 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
92539f028d Bug 777351 - Move the getDrawable functions from LayerController to LayerView. r=sriram 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
ca1c3e7c71 Bug 777075 - Remove notifyLayerClientOfGeometryChange from the PanZoomTarget interface by baking it into setViewportMetrics and setForceRedraw. r=mbrubeck 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
02cb9a10d2 Bug 777075 - Trim the PanZoomState interface by moving some LayerController functions into PanZoomController. r=mbrubeck 2012-08-07 10:39:04 -04:00
Kartikaya Gupta
d1785a10e7 Bug 777075 - Extract a PanZoomTarget interface for functions that PanZoomController depends upon. r=mbrubeck 2012-08-07 10:39:03 -04:00
Kartikaya Gupta
81b7f838d9 Bug 777075 - Eliminate the getViewport and getZoomFactor methods in LayerController to further reduce exposed surface area. r=mbrubeck 2012-08-07 10:39:03 -04:00
Kartikaya Gupta
ac74fe9dd6 Bug 777075 - Extract a ZoomConstraints class to carry around the pieces of data that are otherwise floating around Tab and LayerController. r=mbrubeck 2012-08-07 10:39:03 -04:00
Kartikaya Gupta
8297193b5c Bug 777075 - Refactor PanZoomController to consolidate code that gets the viewport metrics from the LayerController. r=mbrubeck 2012-08-07 10:39:03 -04:00
Chris Peterson
058219de38 Bug 778468 - Part 6: Inject LayerView's InputConnectionHandler to remove GeckoInputConnection dependency. r=blassey
--HG--
extra : rebase_source : 7422a54c7c360ef8712c75d865e5e545d922aad1
2012-08-02 11:56:52 -07:00
Vladimir Vukicevic
ea47a3f189 b=780213; don't call glDeleteTextures when len == 0 in TextureReaper, because Adreno; r=snorp 2012-08-03 13:40:41 -04:00
Vladimir Vukicevic
b1586e9a47 b=779936; can't use TextureView without android hardware accelerated windows (S3 bustage); r=snorp 2012-08-03 13:40:33 -04:00
Chris Peterson
393e18eb9b Bug 779366 - Part 2b: Remove ViewportMetrics' dependency on GeckoApp by passing DisplayMetrics. r=sriram 2012-08-01 14:51:28 -07:00
Chris Peterson
ceaa1e5e80 Backout bcb8b2b5a310 (bug 779366 - Part 2). r=me 2012-08-01 14:42:11 -07:00
Chris Peterson
f1e7ec6bd4 Bug 779366 - Part 3: Move direct buffer allocation to DirectBufferAllocator. r=kats 2012-07-31 15:54:29 -07:00
Chris Peterson
84fdc2c235 Bug 779366 - Part 2: Move DisplayMetrics to ConfigurationUtils. r=sriram 2012-07-30 16:05:44 -07:00
Chris Peterson
4251f0fb5a Bug 779366 - Part 1: Move FloatUtils to org.mozilla.gecko.util package. r=kats
--HG--
rename : mobile/android/base/FloatUtils.java => mobile/android/base/util/FloatUtils.java
2012-07-27 21:57:47 -07:00
Chris Peterson
f554e798e4 Bug 778472 - Part 3: Standardize order of import statements: org.mozilla, com, net, org, android, java. r=mfinkle 2012-07-27 17:53:54 -07:00
Ed Morley
535a8bc1c3 Backout d2ee4c12c0b3 (bug 777351), 5aa6f94160dd (bug 777351), b47c470168fc (bug 777351), 5fb303ba52f7 (bug 777351), be81e4c3d928 (bug 777351), abc5b9a922dc (bug 777075), 8f1fc980f1f1 (bug 777075), 0b194a7f47d4 (bug 777075), d10df9bfef60 (bug 777075), 65393fe32cce (bug 777075), b52dc1df2fde (bug 777075), 8aeda525c094 (bug 777075) for Android native R1 failures on a CLOSED TREE 2012-08-01 18:42:05 +01:00
Kartikaya Gupta
d42c0f97fa Bug 777351 - Scope down and inline some functions in the new GeckoLayerClient. r=sriram 2012-08-01 10:48:19 -04:00
Kartikaya Gupta
11cea9019d Bug 777351 - Remove unnecessary getBitmap function that always returns null. r=sriram 2012-08-01 10:48:19 -04:00
Kartikaya Gupta
a031059e87 Bug 777351 - Fold LayerController into GeckoLayerClient. r=sriram 2012-08-01 10:48:19 -04:00
Kartikaya Gupta
07a08a1361 Bug 777351 - Some minor cleanup in GeckoLayerClient.java. r=sriram 2012-08-01 10:48:19 -04:00
Kartikaya Gupta
3b4606beb7 Bug 777351 - Move the getDrawable functions from LayerController to LayerView. r=sriram 2012-08-01 10:48:19 -04:00
Kartikaya Gupta
f24402c6c9 Bug 777075 - Remove notifyLayerClientOfGeometryChange from the PanZoomTarget interface by baking it into setViewportMetrics and setForceRedraw. r=mbrubeck 2012-08-01 10:38:30 -04:00
Kartikaya Gupta
4099824309 Bug 777075 - Trim the PanZoomState interface by moving some LayerController functions into PanZoomController. r=mbrubeck 2012-08-01 10:38:30 -04:00
Kartikaya Gupta
8a269c8752 Bug 777075 - Extract a PanZoomTarget interface for functions that PanZoomController depends upon. r=mbrubeck 2012-08-01 10:38:30 -04:00
Kartikaya Gupta
fd0f91ea80 Bug 777075 - Eliminate the getViewport and getZoomFactor methods in LayerController to further reduce exposed surface area. r=mbrubeck 2012-08-01 10:38:30 -04:00
Kartikaya Gupta
072cb58af2 Bug 777075 - Extract a ZoomConstraints class to carry around the pieces of data that are otherwise floating around Tab and LayerController. r=mbrubeck 2012-08-01 10:38:30 -04:00
Kartikaya Gupta
2bd15c9b96 Bug 777075 - Refactor PanZoomController to consolidate code that gets the viewport metrics from the LayerController. r=mbrubeck 2012-08-01 10:38:29 -04:00
James Willcox
b5966430df Bug 779152 - Render into a TextureView on Android where available r=kats 2012-07-31 13:30:46 -04:00
Chris Peterson
dfd0007214 Bug 778472 - Part 1: Remove unused and redundant import statements. r=mfinkle 2012-07-27 17:54:41 -07:00
Kartikaya Gupta
3fb3feda6c Bug 770047 - Add the LayerView directly to the XML layout rather than creating it later, so that we don't get a black flash on startup on JellyBean devices. r=sriram 2012-07-28 10:33:51 -04:00
Sriram Ramasubramanian
5bc1a73c63 Bug 778247: mAppContext cleanup: Tabs can avoid it. [r=mbrubeck]
--HG--
extra : rebase_source : 1a5ed5ec5dbfdd72c81877196e3a3f10764e3d07
2012-07-27 23:31:54 -07:00
Sriram Ramasubramanian
230cffc0be Bug 778247: mAppContext cleanup: display metrics can be obtained from context. [r=mbrubeck]
--HG--
extra : rebase_source : a36329385979ffd0312fdba19b17798f0e62b3ad
2012-07-27 23:13:34 -07:00
Sriram Ramasubramanian
52c9be9650 Bug 761785: Background shown during overscroll disappeared. [r=kats] 2012-07-26 23:54:48 -07:00
Kartikaya Gupta
bf1ea7a837 Bug 775722 - Reposition the text selection handles during pan/zoom operations. r=blassey 2012-07-26 10:13:48 -04:00
Benoit Jacob
e617a93343 Bug 763805 - make GL error messages more explicit about lack of OpenGL ES2 support - r=kats 2012-07-25 12:13:45 -04:00
Geoff Brown
960a950edb Bug 773667 - Remove unused code from ScreenshotLayer; r=blassey 2012-07-23 13:34:16 -06:00
Kartikaya Gupta
eb67617fdf Bug 772855 - Log exception stack traces when logging errors. r=cpeterson 2012-07-23 15:04:28 -04:00
James Willcox
80029db926 Bug 687267 - Initial support for Flash on Honeycomb r=bgirard,vlad,jgilbert,blassey 2012-07-20 15:20:51 -04:00
Ed Morley
69ac41ee19 Backout 4987ffd173a4 (bug 687267) for bustage 2012-07-23 14:47:54 +01:00
James Willcox
9c75650095 Bug 687267 - Initial support for Flash on Honeycomb r=bgirard,vlad,jgilbert,blassey
--HG--
extra : rebase_source : 450055ae3e71ea84f74252d3bf100fe970d29d14
2012-07-20 15:20:51 -04:00
Ms2ger
0a56bc3482 Bug 776142 - Back out bug 687267 / changeset 8571114112b2 on a CLOSED TREE. 2012-07-22 14:02:18 +02:00
James Willcox
f0d7883166 Bug 687267 - Initial support for Flash on Honeycomb r=bgirard,vlad,jgilbert 2012-07-20 15:20:51 -04:00
Matt Brubeck
52519ba041 Bug 766858 - When tab menu is open, intercept all touch events on about:home or web content [r=kats] 2012-07-20 10:06:01 -07:00
Steve Fink
f20c2ef916 Backed out changeset afd9e75374e8 from a CLOSED TREE for breaking Windows builds 2012-07-19 14:55:48 -07:00
Margaret Leibovic
11834842a6 Bug 774938 - Native text selection handles. r=mfinkle,kats 2012-07-19 13:16:44 -07:00
James Willcox
67949244f1 Bug 687267 - Initial support for Flash on Honeycomb r=benwa,vlad 2012-07-19 16:15:40 -04:00
Kartikaya Gupta
c3712183db Bug 766647 - Do a better job of coalescing the low-res screenshots. r=blassey 2012-07-18 11:23:16 -04:00
Chris Peterson
eb5ec13a62 Backout 554503c436a3 (Bug 709230 Part 2) for possible test bustage. r=me 2012-07-17 22:39:46 -07:00
Chris Peterson
0ae5b05768 Backout 844444ca8feb (Bug 709230) r=bustage 2012-07-17 17:54:54 -07:00
Chris Peterson
7cc0a9ac2f Bug 709230 - Part 4: Remove unused imports. r=blassey 2012-07-15 13:20:43 -07:00
Chris Peterson
949e399cad Bug 709230 - Part 3: Mark classes final and reduce class visibility public->package->private to aid ProGuard optimizations. r=blassey 2012-07-15 13:20:43 -07:00
Chris Peterson
62c816bf9b Bug 709230 - Part 2: Add missing access modifiers for Java methods accessed from JNI. r=blassey 2012-07-15 00:07:58 -07:00
Kartikaya Gupta
90cac38916 Bug 769269 - Update the graphics code to be able to deal with blowing away the layer controller, client, and view and creating them afresh. r=ajuma 2012-07-13 10:19:46 -04:00
Kartikaya Gupta
21e056832b Bug 769269 - Update a bunch of fields in GeckoApp to not be static any more. r=mfinkle 2012-07-13 10:17:03 -04:00
Kartikaya Gupta
b48cafa3c6 Bug 772890 - Guard against ArrayIndexOutOfBoundsException in GfxInfoThread. r=bjacob 2012-07-11 14:19:58 -04:00
Kartikaya Gupta
adb88262d7 Bug 772890 - Update package for GfxInfoThread. r=bjacob 2012-07-11 14:13:49 -04:00
Kartikaya Gupta
6bb3d29a22 Bug 771757 - Fix subdocument scrolling so that it works again. r=wesj 2012-07-10 12:46:49 -04:00
Ali Juma
8a8dd37f9c Bug 771189 - Don't try to pause/resume a non-existent compositor. r=kats 2012-07-06 09:48:25 -04:00
Jeff Muizelaar
a10b5f716e Bug 765725 - Ensure we are binding to the correct texture unit. r=chrislord 2012-07-05 21:08:02 -04:00
Benoit Jacob
052d6b6480 Bug 766251 - 1/5 - GfxInfo on Android: the Java and AndroidBridge parts - r=kats,jrmuizel 2012-07-05 10:12:10 -04:00
Ehsan Akhgari
197fdca966 Backout changeset cd6d52bdf2d8 (bug 539356) because of performance and correctness regressions 2012-07-03 20:07:55 -04:00
Matt Woodrow
da4ca28895 Bug 539356 - Part 29 - Handle OOM exception gracefully during java snapshots. r=jrmuizel 2012-06-30 15:06:14 +12:00
Kartikaya Gupta
9cfb150be6 Bug 765463 - Fix indexes when copying the screenshot buffer to the screenshot layer image buffer. r=blassey 2012-06-27 07:52:11 -07:00
Matt Brubeck
719d2fb98e Bug 756474 - Harden the SimpleScaleGestureDectector against missed events [r=kats] 2012-06-19 12:01:44 -07:00
Matt Brubeck
950e01ee8a Bug 765407 - Don't setOnDoubleTapListener(null); fixes crash in GestureDetector [r=kats] 2012-06-18 09:54:48 -07:00
Eitan Isaacson
284278e3c4 Bug 763613 - Make hover events mousemove events. r=wesj 2012-06-15 15:34:22 -07:00
Matt Brubeck
d422bda154 Back out bug 764621, bug 762717, bug 764638, and bug 764622 for mochitest failures 2012-06-14 20:12:06 -07:00
Sriram Ramasubramanian
4628dfe782 Bug 764621: FormAssistant doesn't need to be static. [r=margaret]
--HG--
extra : rebase_source : acd7d1b0a2ce7825b4ba8c150d43ef9a98dc48fd
2012-06-14 11:54:05 -07:00
Brad Lassey
d571f01e38 bug 755070 - Scrolling causes after paint notifications which causes screenshotting which causes checkerboarding r=kats,cjones 2012-06-14 09:08:51 -07:00
Kartikaya Gupta
de50e0ad31 Bug 764467 - Add a separate event for notifying browser.js of resize events, to avoid weird re-entrancy issues. r=Cwiiis 2012-06-14 10:59:28 -04:00
Kartikaya Gupta
6435bb7e6d Bug 753444 - Remove device-space page rect from setPageRect as it is not needed. r=jrmuizel 2012-06-13 13:49:40 -04:00
Wes Johnston
12fa09abc1 Bug 753102 - Remove BrowserToolbar from GeckoApp. r=mfinkle 2012-06-11 15:18:40 -07:00
Wes Johnston
e2b086ca89 backout 2d1268c57588 2012-06-12 09:53:44 -07:00
Wes Johnston
c1931479f2 Bug 753102 - Remove BrowserToolbar from GeckoApp. r=mfinkle 2012-06-11 15:18:40 -07:00
Matt Brubeck
72defcb15e Bug 760087 - Don't steal focus from the findbar when Gecko IME state changes [r=cpeterson]
--HG--
extra : rebase_source : 49a6582ff2c13b3a40963f430c7d9a5da5ac8141
2012-06-08 11:43:17 -07:00
Kartikaya Gupta
607cced343 Bug 745250 - Prevent crash from NPE in TouchEventHandler. r=wesj 2012-06-06 13:50:01 -04:00
Kartikaya Gupta
bead8cd737 Bug 759775 - Update checkerboard telemetry code to handle RTL pages. r=Cwiiis 2012-06-06 09:56:48 -04:00
Brad Lassey
3c13cc7973 backing out bug 755070 for potential talos panning regression 2012-06-05 22:55:18 -04:00
Brad Lassey
822c3827ab bug 755070 - Scrolling causes after paint notifications which causes screenshotting which causes checkerboarding, only copy the region that was painted r=kats
--HG--
extra : rebase_source : 0f85abfedf36fb51e3632ba63ae1f194ff0a87ac
2012-06-05 14:59:01 -04:00
Brad Lassey
9dea03bf32 bug 755070 - Scrolling causes after paint notifications which causes screenshotting which causes checkerboarding, only update dirty rects, reuse a single bytebuffer and stop using java bitmaps r=kats
--HG--
extra : rebase_source : a8eb542ef7a9f6c86e9766db7276a76dd8f038ee
2012-06-04 11:56:31 -04:00
Kartikaya Gupta
8c47b05bd3 Bug 758635 - Move a call to resizeView so that we don't send two resize events to gecko when the keyboard comes up. r=jrmuizel 2012-06-03 17:50:00 -04:00
Kartikaya Gupta
2afc430f06 Bug 758635 - LayerRenderer doesn't need to implement GLSurfaceView.Renderer. r=jrmuizel 2012-06-03 17:49:50 -04:00
Matt Brubeck
8f0eb7c918 Back out bug 760342 for Windows build error, bug 755070 for Android crashes, and bug 760458 because it depends on 755070 2012-06-01 17:45:02 -07:00
Brad Lassey
356eca4294 bug 755070 - Scrolling causes after paint notifications which causes screenshotting which causes checkerboarding, only update dirty rects, reuse a single bytebuffer and stop using java bitmaps r=kats
--HG--
extra : rebase_source : 2a7c299c7133da06638d9ef1d27d4b4653072dce
2012-06-01 18:54:48 -04:00
Jeff Muizelaar
93ea1dd03b Bug 760226. Remove unneeded EGLContext creation in GLController.java. r=ajuma
This is old and causing some sadness on platforms with a limited number of
contexts.

--HG--
extra : rebase_source : cb867c8d9dcfa145fc6b9e95cc7bfc9652c0bc2d
2012-05-31 16:14:56 -04:00
Benoit Girard
7e26e22dbd Bug 757944 - Remove GL calls made without a context. r=jrmuizelaar
--HG--
extra : rebase_source : aabc39ae9f9d4a5b66eadf87738af4ae38e1c889
2012-05-31 15:27:45 -04:00
Kartikaya Gupta
df2b2dc2eb Bug 759762 - Update screenshot code to take into account RTL pages. r=blassey 2012-05-30 11:27:05 -04:00
Jeff Muizelaar
31a4b4ed31 Bug 758205. Use highp in the fragment shader. r=joe
More precision makes the java screenshot look better on large pages.
2012-05-24 16:44:10 -04:00
Jeff Muizelaar
d6f895fc0d Bug 758205. Move the y-axis inversion out of the fragment shader. r=clord
Moves the inversion into the vertex shader. No point in doing this
operation per-pixel when we can do it per-vertex.
2012-05-28 11:35:20 -04:00
Phil Ringnalda
aeaff4f7eb Back out d22c4f57daaf and 6c27b32ad788 (bug 758635) on suspicion of causing reftest failures 2012-05-26 13:11:47 -07:00
Kartikaya Gupta
d831dad869 Bug 758635 - LayerRenderer doesn't need to implement GLSurfaceView.Renderer. r=Cwiiis 2012-05-26 11:03:27 -04:00
Kartikaya Gupta
2bf75481e7 Bug 758635 - Remove redundant code to set the viewport size. r=Cwiiis 2012-05-26 10:59:11 -04:00
Ed Morley
9b0c7d097c Backout 5f82df6b980e (bug 757944) on suspicion of reftest failures 2012-05-24 17:51:46 +01:00
Wes Johnston
672d294509 Bug 757893 - Reset max and min zoom when switching tabs. r=kats 2012-05-24 09:11:21 -07:00
Benoit Girard
2af89f7c9a Bug 757944 - Don't call onSurfaceCreated/onSurfaceChanged before a context is created. r=joe
--HG--
extra : rebase_source : 61ce6cb26a69ace210f2fb60eb4714dd5fed3eb9
2012-05-23 18:26:21 -04:00
James Willcox
462a3740e2 Bug 753458 - Remove unnecessary fields in RenderContext r=kats 2012-05-24 11:02:49 -04:00
Kartikaya Gupta
afd0d96e91 Bug 752709 - Extract a getDisplayMetrics function into GeckoApp. r=cpeterson 2012-05-23 21:53:39 -04:00
Kartikaya Gupta
8a9a864a95 Bug 748384 - Propagate page bounds and CSS page bounds in via compositor. r=Cwiiis,ajuma,mats 2012-05-23 10:51:39 -04:00
Kartikaya Gupta
cd7997a23d Bug 748384 - Propagate the page bounds in via browser.js. r=Cwiiis,mats 2012-05-23 10:49:59 -04:00
Kartikaya Gupta
78fc09d742 Bug 748384 - Update all Java code to keep a page rect and CSS page rect instead of just the page size. r=Cwiiis 2012-05-23 10:49:52 -04:00
Kartikaya Gupta
0f2c633486 Bug 748384 - Back out 330e9c52f9ac, 9ba1078559fe, 2ed39c12d792, f53f05ecacd5 for build bustage. r=bustage 2012-05-23 11:08:19 -04:00
Kartikaya Gupta
6ab5f951cd Bug 748384 - Propagate page bounds and CSS page bounds in via compositor. r=Cwiiis,ajuma,mats 2012-05-23 10:51:39 -04:00
Kartikaya Gupta
d6c0648ca9 Bug 748384 - Propagate the page bounds in via browser.js. r=Cwiiis,mats 2012-05-23 10:49:59 -04:00
Kartikaya Gupta
42c7a60dd5 Bug 748384 - Update all Java code to keep a page rect and CSS page rect instead of just the page size. r=Cwiiis 2012-05-23 10:49:52 -04:00
James Willcox
189b988091 Bug 731288 - Don't call methods on finalized SurfaceTexture, JNI housekeeping r=blassey 2012-05-21 21:35:29 -04:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matt Brubeck
447fca3d1d Bug 707571 (part 4) - Use mininum-scale and maximum-scale from <meta name="viewport"> [r=kats] 2012-05-18 08:24:27 -07:00
Matt Brubeck
cca10cf5df Bug 707571 (part 3) - Disable double-tap listener on pages with user-scalable=no [r=kats] 2012-05-18 08:24:27 -07:00
Matt Brubeck
d3c53ac15c Bug 707571 (part 2) - Disable zooming for pages with user-scalable=no [r=kats] 2012-05-18 08:24:27 -07:00
Ali Juma
20d39ad4c0 Bug 745243 - Wait for surfaceChanged before calling GLController.provideEGLSurface. r=kats 2012-05-18 15:58:46 -04:00
Matt Brubeck
bea1efeb46 Back out bug 707571 because of reftest failures 2012-05-18 09:31:27 -07:00
Matt Brubeck
4266b47e4a Bug 707571 (part 4) - Use mininum-scale and maximum-scale from <meta name="viewport"> [r=kats] 2012-05-18 08:24:27 -07:00
Matt Brubeck
8c8aa45c09 Bug 707571 (part 3) - Disable double-tap listener on pages with user-scalable=no [r=kats] 2012-05-18 08:24:27 -07:00
Matt Brubeck
ef76f07912 Bug 707571 (part 2) - Disable zooming for pages with user-scalable=no [r=kats] 2012-05-18 08:24:27 -07:00
Vladimir Vukicevic
0bbadb8659 b=752368; [android] random black screen when opening links from other apps; r=bgirard,ajuma,kats 2012-05-09 22:32:54 -04:00
Kartikaya Gupta
f596b8de96 Bug 749384 - Notify PZC of some events before the touchevent listeners deal with it so that we remain responsive. r=wesj 2012-05-15 13:22:26 -04:00
Kartikaya Gupta
ddd8ebeb16 Bug 749384 - Store the PZC instead of the LayerController. r=wesj 2012-05-15 13:21:53 -04:00
Kartikaya Gupta
b8a49761d8 Bug 749384 - Hardcode the touch event timeout to 200ms. r=wesj 2012-05-15 13:21:14 -04:00
James Willcox
d5dd933479 Small fixup to my last patch (no bug, r=blassey) 2012-05-11 11:05:37 -04:00
James Willcox
cf8bd24b8d Bug 750778 - Ensure PluginLayer is always present when plugin is visible r=blassey 2012-05-11 10:54:51 -04:00
Margaret Leibovic
7f2339b775 Bug 752759 - Get rid of excessive mFormAssistPopup.hide() calls in PanZoomController. r=kats 2012-05-10 12:09:00 -07:00
Kartikaya Gupta
8b2a37c104 Bug 753334 - Audit and clean up code that deals with allocating/freeing direct buffers. r=Cwiiis 2012-05-10 09:46:53 -04:00
Phil Ringnalda
528e055ee2 Back out 3502d9840d98 (bug 752368) for robo* failure 2012-05-09 22:26:52 -07:00
Vladimir Vukicevic
7eaf529b88 b=752368; [android] random black screen when opening links from other apps; r=bgirard,ajuma 2012-05-09 22:32:54 -04:00
Joe Drew
32d3e5df67 Bug 728026 - Leave the scissor bit enabled when we return from Java code. r=jrmuizel 2012-05-01 12:12:45 -04:00
Kartikaya Gupta
c4b85971ec Bug 752939 - Update the mGeckoViewport when switching tabs so that we map touch events to the right point. r=Cwiiis 2012-05-08 13:33:48 -04:00
James Willcox
7b6aaa5bb8 Bug 746633 - Don't use placeholder for full page plugins on Android r=blassey 2012-05-07 14:18:46 -04:00
Kartikaya Gupta
eff1661013 Bug 749429 - Increase displayport size multiplier default to 2000 for fixed-margin and velocity-bias. r=Cwiiis 2012-04-28 01:02:19 -04:00
Jeff Muizelaar
006b21ee67 Bug 743247. Ensure we don't have an array buffer bound when drawing PluginLayer. r=kats
This fixes the same problem in the newly added PluginLayer
2012-04-28 00:55:16 -04:00
Jeff Muizelaar
6868688876 Bug 743247. Ensure we don't have an array buffer bound when drawing. r=bas
Our C++ code was binding a buffer and leaving it bound. This
avoids that problem by making sure we unbind it before
calling VertexPointerAttrib.

--HG--
extra : rebase_source : ec39fcf4a6a74c2f96765752b0ffb6e38b44f5de
2012-04-27 21:08:30 -04:00
James Willcox
4b0d6b0c67 Bug 727116 - Draw Flash plugins with OpenGL during pan/zoom on legacy Android r=blassey 2012-04-27 16:04:47 -04:00
Chris Lord
077e78ae9e Bug 749630 - Fix single-colour checkerboard and masking. r=kats
Bug 748718 tried to fix masking of the checkerboard layer, but incorrectly
calculated the values for the right and bottom sides of the page, causing
less masking to occur than should happen.

It also possibly broke single-colour layer drawing (though I'm not sure this
worked previously), which this fixes by clearing to the page colour instead of
generating and drawing a texture for it.
2012-04-27 12:54:18 -04:00
Kartikaya Gupta
c5f74999ce Bug 749164 - Fix viewport intersection with page rect and guard against zero screen area. r=jrmuizel 2012-04-26 14:23:28 -04:00
Chris Lord
6e7a025ac6 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.

--HG--
extra : rebase_source : 671c5a48d7bc08b3b452ed7eea228eb22843c1ce
2012-04-26 13:45:31 -04:00
Chris Lord
27218c111a Bug 748718 - Crash if the buffer size mismatches the layer size. r=kats
TileLayer.java always treats the buffer as if it's the same size as the texture.
Instead of crashing (or some other unintended effect), throw a RunTimeException.
Also include some commented out code that would work, but we likely don't ever
want to use (for reference when running into the exception).

--HG--
extra : rebase_source : 93b4c834c2a0dc0fab62341f779de9c7fcce5f87
2012-04-26 13:45:17 -04:00
Chris Lord
26258e2a6c Bug 748718 - Fix drawing in SingleTileLayer.java. r=kats
SingleTileLayer draws upside-down and doesn't handle non-repeating/stretched
layers correctly.

--HG--
extra : rebase_source : d33dcecc949b252826f557033e47311f885bd9b8
2012-04-26 13:45:06 -04:00
Kartikaya Gupta
9ee6956b0f Bug 747528 - Add a PredictionBiasStrategy that uses estimated draw time to paint ahead. r=Cwiiis 2012-04-25 09:53:38 -04:00
Jeff Muizelaar
d8ab26c2d8 Bug 748382. Don't count overscroll as checkerboard. r=kats
We currently check root layer position with the viewport.
During overscroll these won't match and we'll think we're
checkerboarding.

--HG--
extra : rebase_source : 27c93b524a539ad5851ff4ba5ee94f5321c24172
2012-04-24 11:26:21 -04:00
Brad Lassey
7209478fe4 bug 746016 - Cache low res version of the page in the java ui for use instead of checkerboarding r=kats
--HG--
extra : rebase_source : d6de0327a46393cd4cfc327dea5689364744a71d
2012-04-24 15:13:36 -04:00
Kartikaya Gupta
27d73b129b Bug 737510 - Expand the displayport to fill any partial tiles. r=Cwiiis 2012-04-23 23:53:44 -04:00
Kartikaya Gupta
c49b3b664f Bug 737510 - Print something useful when dumping an ImmutableViewportMetrics. r=Cwiiis 2012-04-23 23:52:58 -04:00
Joe Drew
0d5dda8fca Bug 744439 - Reset the checkerboard colour when we start loading a new page. r=kats a=blocker
--HG--
extra : rebase_source : ca294fc3dd36a0d0a299c8247aa72673e115d372
2012-04-23 10:29:14 -07:00
Joe Drew
5268da0002 Bug 745809 - Default to white for checkboard color. r=kats
--HG--
extra : rebase_source : a1b7f38fc97f0f0048df000aebc510cbff1b1801
2012-04-23 10:28:15 -07:00
Joe Drew
6885673109 Bug 744939 - Make animatedZoomTo operate in CSS pixels instead of device pixels. r=kats a=blocking-fennec 2012-04-14 13:18:10 -04:00
Joe Drew
5248a80c1d Bug 744916 - Make the Java viewport keep track of its size in both CSS pixels and device pixels. r=kats
--HG--
extra : rebase_source : f733c2a4eadaeaa9c845b83886af8ab335250f85
2012-04-12 16:00:56 -04:00
Ali Juma
45b0527065 Bug 733596 - Tell the compositor about the new surface size on surface change. r=bgirard a=blocking-fennec 2012-04-20 11:46:30 -04:00
Wes Johnston
6f7576993b Bug 746679 - Reset touch event dispatch state on each touch down. r=kats, a=blocking-fennec 2012-04-20 08:40:41 -07:00
Kartikaya Gupta
f4b524921e Bug 743800 - Ensure all metrics used during one frame of composition are consistent. r=jrmuizel a=blocking-fennec 2012-04-18 01:34:05 -04:00
Wes Johnston
99c82ed91c Backed out changeset a43a33ddd2b3 2012-04-17 09:29:18 -07:00
Kartikaya Gupta
019157b1fe Bug 745381 - Don't call GetFrameFromPoint for non touchstart touch events. r=smaug 2012-04-17 09:28:10 -07:00
Kartikaya Gupta
6756e736ea Bug 741693 - Move the Axis prefs from GeckoLayerClient into PanZoomController. r=Cwiiis 2012-04-17 11:33:42 -04:00
Kartikaya Gupta
606c739bdf Bug 741693 - Make the zoom animation frames preffable. r=Cwiiis 2012-04-17 11:33:19 -04:00
Jeff Muizelaar
3c7124b7f8 Bug 742743. Unify pageRect retrieval. r=kats
This ensures that we use the same pageRect for the whole
drawing process and avoids the overhead of recreating it.
2012-04-05 15:58:42 -04:00
Jeff Muizelaar
06f77c2dbc Bug 742743. Remove needless try/catch block. r=kats
This was needed before, but I've since removed
the code that would throw.
2012-04-05 11:42:49 -04:00
Jeff Muizelaar
307aeaae2d Bug 742731. Remove performUpdates return value. r=kats
No need to have a return value if it's always going to be true.

--HG--
extra : rebase_source : 78b0ad28f320c84080bea6bd62cafe2cb33bdd5b
2012-04-05 11:32:16 -04:00
Kartikaya Gupta
8689475480 Bug 744390 - Add a configurable danger zone to the velocity-bias strategy. r=Cwiiis 2012-04-14 09:50:04 -04:00
Kartikaya Gupta
2bb28155e7 Bug 742115 - Make the java panning constants preffable; original patch stolen from :joe. r=Cwiiis 2012-04-13 10:29:14 -04:00
Kartikaya Gupta
e013f9aa91 Bug 744241 - Make the displayport strategy options preffable. r=Cwiiis 2012-04-13 10:28:10 -04:00
Kartikaya Gupta
4df62cf792 Bug 733041 - Switch to using the velocity-bias strategy by default. r=Cwiiis 2012-04-10 13:56:28 -05:00
Kartikaya Gupta
617cfd1a55 Bug 733041 - Adjust the velocity bias strategy to keep a small buffer in the opposite direction of the scroll. r=Cwiiis 2012-04-10 13:56:25 -05:00
Jeff Muizelaar
a713c834a5 Bug 740303. Make sure we update the checkerboard layer. r=kats.
Presumably this started happening after we stopped setting the
checkerboard color all of the time.

--HG--
extra : rebase_source : d9c76561256161335727d3e76c8a8aed37a36c97
2012-04-09 10:59:36 -04:00
Kartikaya Gupta
dec4c11b3e 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
92907fc375 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
7d1674c7e7 Backed out changeset 0f8439284834
The bug number was wrong.
2012-04-05 11:27:02 -04:00
Jeff Muizelaar
8e910730b7 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
Kartikaya Gupta
879f2209f2 Bug 741400 - Guard against NullPointerException, and also move some code so it shouldn't happen. r=mfinkle 2012-04-04 11:55:40 -04:00
Kartikaya Gupta
4074333e81 Bug 737577 - Set the display port before bouncing rather than after. r=Cwiiis 2012-04-02 17:14:33 -04:00
Joe Drew
83fd342954 Bug 741166 - Add clarifying comment. DONTBUILD
--HG--
extra : rebase_source : 4d2e524732e6a02d99f3c2b68d4ac066399b61b3
2012-04-02 15:57:53 -04:00
Joe Drew
c7294996b9 Bug 741166 - Restore waitForValidSurface, removed in error in bug 737949. r=ajuma 2012-04-02 15:43:21 -04:00
Geoff Brown
0cde955529 Bug 740146 - Remove unused screenshot code. r=blassey 2012-04-01 15:17:32 -04:00
Kartikaya Gupta
7eeadaf018 Bug 740539 - Account for possible mismatch in zoom levels when handling Viewport:PageSize. r=Cwiiis 2012-04-01 14:30:35 -04:00
Jeff Muizelaar
ac11a30e7e Bug 740061. Remove unused skip functionality. r=kats
mSkipTextureUpdate is never set to true.
2012-03-31 13:36:42 -04:00
Jeff Muizelaar
b8472ed40d Bug 740061. Remove support for subuploads. r=kats
Since, the dirtyRect is either the size of the buffer
or empty we don't need to support subuploads anymore.
2012-03-31 13:30:11 -04:00
Jeff Muizelaar
a20af99e95 Bug 740061. Remove unused isDirty. r=kats 2012-03-31 13:05:05 -04:00
Jeff Muizelaar
e2e0ee3b02 Bug 740061. Use set() instead of union(). r=kats
mBufferrRect is either new Rect(0, 0, bufferSize.width, bufferSize.height)
or Rect() so we can just set() instead of unioning. This is cheaper
and avoids an allocation.
2012-03-31 13:04:14 -04:00
Jeff Muizelaar
e24bb20a4b Bug 740061. Remove unused invalidate(rect). r=kats 2012-03-31 13:02:37 -04:00
Jeff Muizelaar
a218512f66 Bug 740983. Remove unneeded invalidate from scrollbar layers. r=kats
We used to fade the scrollbars by reuploading textures
rather than using a shader. Since the textures don't change anymore
the invalidate is unneeded.
2012-03-30 17:22:59 -04:00
Joe Drew
500b32e0e5 Bug 737949 - Don't initialize EGL from Fennec java code, and remove GLThread altogether. r=pcwalton,jrmuizel 2012-03-30 10:50:54 -07:00
Kartikaya Gupta
75e73b1e36 Bug 740569 - Make the display port strategy preffable. r=Cwiiis 2012-03-30 09:57:39 -04:00
Kartikaya Gupta
c57c560898 Bug 737553 - Refactor much of the code in DisplayPortCalculator and tune some of the behaviour. r=Cwiiis
Commonly reused pieces of code are pulled out into reusable functions in DisplayPortCalculator.
Reusing these functions makes the individual strategies' code much clearer and the similarities
between them more apparent. One actual bug was fixed, where the display port resolution was
incorrectly calculated in the DynamicResolutionStrategy. Prior to this change, it did not apply
the reshaping algorithm to the pre-velocity display port size, resulting in a different resolution
in some cases which would leave the content blurry. Additionally, the FixedMarginStrategy was
modified so that its margins are a multiple of the view size rather than constant pixel values.
2012-03-30 09:47:22 -04:00
Kartikaya Gupta
068ccaf6ce Bug 737553 - Fix null handling in DisplayPortCalculator. r=Cwiiis 2012-03-30 09:46:27 -04:00
Ali Juma
c76d5246fb Bug 735230 - Part 3: Use the new compositor pause/resume events. r=kats 2012-03-28 18:00:38 -04:00
Jeff Muizelaar
aa68f27a16 Bug 738188. Avoid crashing by disabling the screenshot drawing code. r=kats
The crashes seem to be caused by SurfaceChange breaking any future
onDrawFrame calls. We don't seem to handle renewing the context at all. I added
mController.disposeGLContext(); mController.initGLContext(); to the
SizeChange::run() but that doesn't seem to fix it.

Bug 739867 will add this support back.

--HG--
extra : rebase_source : a4f71b22f381756c4285311cd3288b3ef46d5543
2012-03-27 21:43:56 -04:00
Kartikaya Gupta
49319e3671 Bug 729528 - Delete some unneeded things. r=Cwiiis 2012-03-26 13:15:50 -04:00
Kartikaya Gupta
013f913f27 Bug 729528 - Add an alternate strategy with a margin that is a multiple of view-size and shifts it with velocity bias. r=Cwiiis 2012-03-26 13:15:50 -04:00
Kartikaya Gupta
f5a59a4781 Bug 729528 - Add an alternate strategy where we have no display port, to better isolate problems in layout/draw code. r=Cwiiis 2012-03-26 13:15:50 -04:00
Kartikaya Gupta
0d6885cc9e Bug 729528 - Add an alternate code path (selected at compile-time) to render low-res content while panning. r=Cwiiis 2012-03-26 13:15:50 -04:00
Kartikaya Gupta
b314281113 Bug 729528 - Move displayport calculation and comparison code into a DisplayPortCalculator class. No functional changes intended. r=Cwiiis 2012-03-26 13:15:50 -04:00
Kartikaya Gupta
11ef39eb64 Bug 729528 - Add a DisplayPortMetrics to track the requested display resolution along with the area. r=Cwiiis 2012-03-26 13:15:49 -04:00
Brian Nicholson
2407276a27 Bug 725428 - Draw white background in LayerView until Gecko has painted. r=kats 2012-03-22 15:07:00 -07:00
Brian Nicholson
89ae98ddcd Backout 017f6dd98dc0 for robocop failures 2012-03-22 17:28:13 -07:00
Brian Nicholson
0a128bef50 Bug 725428 - Draw white background in LayerView until Gecko has painted. r=kats 2012-03-22 15:07:00 -07:00
Geoff Brown
8dda642283 Bug 737411 - Robocop: update reflection references; r=kats 2012-03-22 13:35:19 -04:00
Chris Lord
ebc07011a5 Bug 736729 - Fix display-port on first paint and page-size changes. r=kats
Previously, we only set the display-port in response to a page scrolling itself,
or when we adjust the viewport. This meant that the display-port could be
incorrect if a viewport adjustment was sent after a page-size changed, but
before a render had completed.

Similarly, we were not updating the display-port when the viewport of a
foreground document that hadn't been displayed yet was changing. This would
cause the first-paint to have an incorrect (and often too small) display port,
which wouldn't be corrected until the page was scrolled.
2012-03-21 14:44:33 +00:00
Kartikaya Gupta
423c8d4298 Bug 737630 - Remove duplicated code from beginDrawing. r=pcwalton 2012-03-20 16:55:28 -04:00
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
f83cb46c1d Bug 731603 - Propagate a layersUpdated flag to Java for robocop use. r=ajuma 2012-03-20 00:06:56 -04:00
Kartikaya Gupta
3e34d0c2b0 Bug 731603 - Propagate the resolution of the painted content into syncViewportInfo as well. r=Cwiiis 2012-03-20 00:05:45 -04:00
Ali Juma
b47f9ac031 Bug 737031 - Add EGL error code to error messages in GLController. r=bgirard 2012-03-19 13:35:13 -04:00
William Lachance
7a7f1529a8 Bug 736610 - Code to set checkerboard to flat color broken with Maple merge. r=pwalton 2012-03-18 13:26:54 -04:00
William Lachance
4c1c7c0bae Bug 734003 - Using white as the base checkerboard color doesn't work. r=pwalton 2012-03-18 13:25:13 -04:00
Chris Lord
c456a36f39 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
2f1650c3ae Backout d5b66e64cf44 (bug 732756) to see if it fixes Android crashtests. 2012-03-16 17:17:22 -04:00
Chris Lord
7907635f98 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
Ali Juma
9b55f84e74 Bug 736205 - Make GLController.disposeGLContext actually destroy the context. r=bgirard 2012-03-15 15:58:32 -04:00
Ali Juma
7600a9a801 Bug 736099 - Prevent a null pointer dereference in GLController.disposeGLContext. r=kats 2012-03-15 15:57:54 -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
883f015b2b Bug 729646 - Allow Java to update the display port on background tabs as well, so that we draw the right thing upon switching to it. r=Cwiiis 2012-03-15 10:38:43 -04:00
Kartikaya Gupta
95c636bad1 Bug 729646 - Remove some annoying logging. r=Cwiiis 2012-03-15 10:38:43 -04:00
James Willcox
fb9607dbb7 Bug 728371 - Make Flash work with GLES 2.0 and GL layers r=pcwalton
--HG--
extra : rebase_source : 4b845e7dc4224bfd807fb757e7199c91655c0d69
2012-03-12 13:03:54 -04:00
Kartikaya Gupta
17908435d6 Back out 89833e1b3016 (bug 707571) as it is broken with the new maple rewrite. r=backout 2012-03-13 17:11:28 -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
27d3658b62 Bug 735180 - Remove max(0,..) clamps when calculating display port margins; negative margins are needed during overscroll. r=Cwiiis 2012-03-13 12:14:25 -04:00
Ehsan Akhgari
39bfe969ec Backout changeset d2340d74fc19 because of bug 735076 2012-03-12 18:51:44 -04:00
Chris Lord
812a652c60 Bug 732756 - Fix layers with a mask appearing squashed. r=pcwalton
If a mask was set on a layer, each sub-rectangle would end up drawing with the
full texture extents.
2012-03-12 18:49:01 +00:00
James Willcox
2edc6422b3 Bug 728371 - Make Flash work with GLES 2.0 and GL layers r=pcwalton
--HG--
extra : rebase_source : f7a9eb9dab84cb35ba17fb1551051dae2e744d00
2012-03-12 13:03:54 -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
Kartikaya Gupta
aae04c16b7 Bug 732564 - Move the display port trimming to Java so that we always have a copy of the display port being used. r=Cwiiis 2012-03-12 12:03:38 -04:00
Kartikaya Gupta
7c647e4eb6 Bug 732564 - Take out java-side draw suppression on rotation as it often prevents redrawing completely; we can put this back later if needed. r=Cwiiis 2012-03-12 12:03:38 -04:00
Kartikaya Gupta
49a8b558b5 Bug 732564 - Modify the Viewport:Update event to take a viewport and synchronously update Java with it. r=Cwiiis 2012-03-12 12:03:38 -04:00
Kartikaya Gupta
5c8a3ccb5c Bug 732564 - Merge the UpdateAndDraw and UpdateLater events into a single Update event since they do the same thing now. r=Cwiiis 2012-03-12 12:03:37 -04:00
Kartikaya Gupta
88c95aac77 Bug 732564 - Remove JS-driven redraw; gecko should be invalidating whenever we need it to, and we're not suppressing anything now. r=Cwiiis 2012-03-12 12:03:37 -04:00
Kartikaya Gupta
53ad75e612 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
83961041e7 Merge mc->Maple 2012-03-09 11:13:30 -05: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
a39be473cc Bug 733184 - Maple: Remove some Java logging. r=pcwalton 2012-03-05 18:50:00 -05:00
Chris Lord
ac32c9beee Bug 731570 - Don't re-upload scrollbar texture on opacity change. r=kats
Rather than re-render the scrollbar texture and re-upload it when the opacity
changes, just render/upload it once and use a shader to modify the opacity.
2012-03-02 12:12:08 +00:00
Chris Lord
f8ecc16e00 Bug 731570 - Rename and make default shaders public. r=pcwalton
Rename and make public the default shaders used in LayerRenderer, and make
loadShader a public, static method. This should make it easier for layers to
implement their own shader programs.
2012-03-02 12:12:08 +00:00
Chris Lord
e7376feda5 Bug 732013 - Fix overdraw in LayerRenderer. r=kats
Add an optional rectangular mask to SingleTileLayer so that we can reduce the
amount of overdraw when drawing the background and checkerboard layers.
2012-03-01 19:43:14 +00:00
Benoit Girard
3daa99ec38 Merge mc->maple 2012-03-01 10:44:44 -05:00
Kartikaya Gupta
c250ca21b7 Bug 730966 - Remove time-based throttling of viewport change events; the refresh driver does this in Gecko already. r=pcwalton 2012-02-29 16:42:53 -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
Kartikaya Gupta
e3d5756b24 Bug 731417 - Fix missing call to checkMonitoringEnabled for the LayerRenderer we use in OMTC, and make it frame rate layer wider so it doesn't get truncated. r=pcwalton 2012-02-29 14:08:23 -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
6d0f6c8ac5 Bug 730949 - Take the frame rate layer initialization out of the startup path. r=sriram 2012-02-28 18:08:43 -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
7026e92ffb Bug 730687 - Fold updateViewport into endDrawing. r=Cwiiis 2012-02-28 16:13:26 -05:00
Kartikaya Gupta
8c39c8a618 Bug 730687 - Move the display port margin amounts out of browser.js and into Java. r=Cwiiis 2012-02-28 16:13:20 -05:00
Kartikaya Gupta
b0bc59501b Take out a line I inadvertently left in in cset ce31a3b140a2 2012-02-26 17:27:58 -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
Kartikaya Gupta
4cae639063 Take out the code that allows Java to further clip the invalid rect based on visible area.
This code is never used because the invalid rect we pass to DrawTo is ignored;
the nsLayoutUtils::PaintFrame uses the display port as the visible region to
paint instead. (http://mxr.mozilla.org/mozilla-central/source/layout/base/nsLayoutUtils.cpp#1603)
2012-02-26 10:47:45 -05:00
Benoit Girard
b389f9539b Work around white not working as Cherckerboard color. r=kats
--HG--
extra : rebase_source : 768fe9d869c1aff743fbc69b5f537668eedf3298
2012-02-24 15:13:39 -05:00
Kartikaya Gupta
8a476c9e1c Remove unused parameters passed to endDrawing 2012-02-24 12:11:29 -05:00
Kartikaya Gupta
e955733a8b Pull out tile dimensions being passed around uselessly 2012-02-24 10:51:41 -05:00
Brad Lassey
132fb3275c bug 707571 - user-scalable property of viewport meta tag is ignored r=mbrubeck
--HG--
extra : rebase_source : a4a4d9fb6c61ff91ffb917c1e25b78a6266d7347
2012-03-08 11:55:19 -05:00
Kartikaya Gupta
60013ccab6 Extract a setOriginAndResolution method to VirtualLayer and drop the locking as it is not needed. 2012-02-23 16:29:22 -05:00
Kartikaya Gupta
1ee0b61340 Rename mTileLayer to mRootLayer since it's not a tile layer anymore. Also change the type to VirtualLayer 2012-02-23 16:21:45 -05:00
Kartikaya Gupta
400acd3392 Move transaction lock and synchronization from callers of updateViewport in to updateViewport itself 2012-02-23 15:31:40 -05:00
Kartikaya Gupta
5ec4799956 Move the beginTransaction from beginDrawing to endDrawing since we don't need to hold the lock during paint 2012-02-23 15:26:20 -05:00
Kartikaya Gupta
82bff0f17d Remove redundant getDisplayportOrigin method from ViewportMetrics; use getOrigin instead 2012-02-23 15:08:05 -05:00
Kartikaya Gupta
60d8dbfa9d Bug 730033 - Rip out WidgetTileLayer and associated gunk. r=snorp 2012-02-23 14:55:15 -05:00
Kartikaya Gupta
bdb76f0f9c Add a bunch of comments to trace which threads transaction-related things are happening on 2012-02-23 13:25:19 -05:00
Kartikaya Gupta
289a985c67 Move the call to moveFrameRateLayer off the UI thread since it calls beginTransaction 2012-02-23 12:54:54 -05:00
Kartikaya Gupta
2d25c1db47 Convert tabs to spaces 2012-02-23 11:31:01 -05:00
Kartikaya Gupta
775d2610b1 Re-land a fixed c8451607557b (Take out the empty GeckoLayerClient.dimensionsChanged method and the unneeded support architecture for it) 2012-02-23 10:09:38 -05:00
Benoit Girard
5db11a7118 Merge backout 2012-02-23 11:09:14 -05:00
Benoit Girard
dbfc4d8191 Backed out changeset c8451607557b 2012-02-23 11:04:11 -05:00
Kartikaya Gupta
cd3149cdd8 Take out unused MultiTileLayer 2012-02-23 10:11:16 -05:00
Kartikaya Gupta
59c802112d Take out the empty GeckoLayerClient.dimensionsChanged method and the unneeded support architecture for it 2012-02-23 10:09:38 -05:00
Ehsan Akhgari
a49ceaf19b Bug 728614 - Part 8: Remove the unneeded assignment from getViewTransform; r=kats 2012-02-22 21:27:36 -05:00
Ehsan Akhgari
f5fdc6357f Address the review comment, missed from the previous push 2012-02-22 17:15:53 -05:00
Ehsan Akhgari
0d41577b36 Bug 728614 - Part 7: Pause painting when the orientation changes in order to avoid getting intermediate frames painted; r=kats 2012-02-22 15:14:28 -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
Kartikaya Gupta
6cd2dcb55d Strip down GeckoLayerClient - scope down visibility of fields/methods, remove empty methods and dead code, and inline some one-liner methods. 2012-02-22 15:08:46 -05:00
Kartikaya Gupta
04fe7046ae Completely collapse GeckoGLLayerClient into GeckoLayerClient. 2012-02-22 14:45:44 -05:00
Kartikaya Gupta
c37b0d4191 Bug 729528 - Add logging to figure out how much viewport prediction will help us. r=Cwiiis 2012-02-22 12:02:38 -05:00
Kartikaya Gupta
2320513555 Rip out the unused viewport bias and optimum offset code 2012-02-22 10:22:31 -05:00
Kartikaya Gupta
c2af89696d Reduce some unnecessary logcat spew 2012-02-22 09:37:39 -05:00
Benoit Girard
a716a386a9 Don't do TexImage2D+TexSubImage2D 2012-02-21 16:44:59 -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
Jeff Muizelaar
c38da242ab Bug 728622. Remove dead code for dealing with view in Layer.java. r=clord
Now that bug 727939 has landed we don't seem to have any need to keep
the view around.
2012-02-21 11:05:09 -05:00
Brad Lassey
f92e6ed0ba bug 726827 - MAPLE: Black thumbnails r=jmuizelaar 2012-02-21 01:22:56 -05:00
Joe Drew
fd29de011a Bug 728631 - Don't disable blending inside our Java rendering code, because we rely on it remaining set from LayerManagerOGL. r=dougt
--HG--
extra : rebase_source : 9fe18ddb4582455fe428f14acb8a931e1b1e4661
2012-02-20 14:48:36 -08:00
Ehsan Akhgari
0699b06da9 Fix clicking 2012-02-20 17:47:32 -05:00
Ehsan Akhgari
71bd0669a9 Bug 728614 - Part 2: Remove viewport offsets 2012-02-20 16:51:37 -05:00
Jeff Muizelaar
3a93b5a4c5 Bug 727939. Avoid double painting after invalidation. r=bgirard
This reduces the paint rate on things like runfield
so that we only paint at the rate that we're invalidating.

We do so by not requesting render in endTransaction

It looks like endTransaction is only called by endDrawing
on the gecko thread and only on VirtualLayers. We don't
need the extra requestRender call because we've already
done the rendering.
2012-02-18 18:06:30 -05:00
Brad Lassey
e85e784817 backing out e45688c8531c because it broke the build 2012-02-18 14:21:48 -05:00
Patrick Walton
a93537390c Stub untested gralloc support, disabled for now 2012-02-17 23:53:21 -08:00
Chris Lord
78e424b0f7 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
Kartikaya Gupta
c4e060665c (Part 5) Move overrides and abstract/interface implementations up from GeckoGLLayerClient into GeckoLayerClient 2012-02-17 10:33:23 -05:00
Kartikaya Gupta
e51de4eecb (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
a9d7bc61fb (Part 3) Collapse LayerClient into GeckoLayerClient, the only subclass 2012-02-17 10:03:28 -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
Kartikaya Gupta
43b2051ae9 Also remove dangling entrails of the layer client type 2012-02-17 09:16:14 -05:00
Kartikaya Gupta
417e4428c0 Rip out unused GeckoSoftwareLayerClient since we've committed to GL layers. 2012-02-17 09:04:50 -05:00
Kartikaya Gupta
31c5b5c646 Put back some things left out of dougt's merge 2012-02-17 01:36:49 -05:00
Doug Turner
222fba130c Merge with mozilla-central 2012-02-16 18:06:54 -08:00
Kartikaya Gupta
64f4f0f8e3 Cache the checkberboard color so that we don't redo a bunch of work uselessly 2012-02-16 12:04:37 -05: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
Patrick Walton
dd0a3bbc18 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
daf42909cc Guard against OOMing in GeckoGLLayerClient.getBitmap like we were doing in GeckoSoftwareLayerClient 2012-02-13 18:15:27 -05:00
Patrick Walton
b4211fd4ba Expose ActivateProgram() and DeactivateProgram() to widget 2012-02-13 13:55:10 -08:00
Patrick Walton
09501a39aa Split out Java compositor shader program activation and deactivation into separate functions 2012-02-13 12:27:09 -08:00
Patrick Walton
8a076808c5 Deactivate vertex attribute arrays and the program. Seems to fix the crashes on PowerVR. 2012-02-10 23:50:13 -08:00
Patrick Walton
78cb81814f Uncomment the Java compositor integration, except for the part that causes PowerVR crashes 2012-02-10 23:03:02 -08:00
Ali Juma
64839a1fdf Fix race conditions when updating view transform, by switching to an absolute transform. 2012-02-10 16:08:24 -05:00
Ali Juma
96f267b56a Merge heads. 2012-02-10 10:31:31 -05:00
Patrick Walton
fdcd9a93f7 Expose the necessary Java routines to render decorations through JNI 2012-02-09 22:58:18 -08:00
Ali Juma
54af353fd7 Code cleanup. 2012-02-09 17:39:04 -05:00
Patrick Walton
efc1f6ee1d Split up the LayerRenderer's drawing logic in preparation for exposing it to JNI 2012-02-08 22:27:01 -08:00
Patrick Walton
83f031eba7 Bug 723036 - Port the Java compositor to OpenGL ES 2.0 2012-02-08 21:13:08 -08:00
Benoit Girard
beb2ae7df8 Merge viewport with tip 2012-02-08 20:42:17 -05:00
Benoit Girard
b262f4ad9d Merge working on Nexus S 2012-02-08 20:23:27 -05:00
Ali Juma
a2d1806910 Merge. 2012-02-08 19:55:13 -05:00
Benoit Girard
ea6c7d744f Merge fixes 2012-02-08 19:01:21 -05:00
Benoit Girard
2f35d690b6 Merge m-c into maple 2012-02-08 16:43:22 -05:00
Ali Juma
b0394626a2 Fix incorrect rendering after orientation change. 2012-02-08 16:09:10 -05:00
Benoit Girard
ad35e17cb4 Merge working head with display port head 2012-02-08 12:18:27 -05:00
Benoit Girard
9b2cd37240 Remove RemoveAbstractView, pushing new head 2012-02-08 10:46:26 -05:00
Patrick Walton
67c4b7f7be Allow redraw while a finger is down. Make this logic work properly later. 2012-02-07 23:37:29 -08:00
Patrick Walton
008db0822a Lower the minimum viewport change delay to 25 for now 2012-02-07 23:10:58 -08:00
Ali Juma
ac787b0863 Move surface ownership to GLContextProviderEGL.
--HG--
extra : rebase_source : a3f83d279de5087a521a938d66c4e7b5dee79d74
2012-02-06 16:53:09 -05:00
Ali Juma
f9ebf5ebe2 Pause/resume composition on surface destruction/creation. 2012-02-06 13:57:06 -05:00
Ali Juma
92e59fd959 Add support for pausing/resuming composition from Java. 2012-02-05 13:33:38 -05:00
Patrick Walton
402747340d Stand up async panning and zooming 2012-02-03 23:31:05 -08:00
Patrick Walton
50c7df015c Poke the compositor to composite on a pan or zoom; stub AndroidBridge::GetViewTransform() 2012-02-03 18:35:58 -08:00
Patrick Walton
9159739ff5 Stub ViewTransform code; unbork the viewport size a bit 2012-02-03 16:39:15 -08:00
Patrick Walton
0b4a53c433 Add a virtual layer and GL layer client implementation 2012-02-03 15:48:26 -08:00
Benoit Girard
8b06842a39 Change delay to 15ms 2012-02-03 14:18:48 -05:00
Benoit Girard
92aebc0551 Remove deadcode 2012-02-03 10:26:54 -05:00
Patrick Walton
cc6fa599ae Eliminate coupling between the software layer client and the rest of Fennec 2012-02-02 23:30:41 -08:00
Patrick Walton
c2c88cf60a 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
2b6bcfedfa Partial removal of tiling, stub callouts 2012-02-02 19:28:22 -08:00
Benoit Girard
8c2ddab43b Fix problems with Nexus S init 2012-02-02 13:57:38 -05:00
Benoit Girard
36780c8b69 Progress on omtc integration 2012-02-01 16:18:35 -05:00
Benoit Girard
7468656545 Move registerCxxCompositor to FlexView 2012-02-01 14:15:52 -05:00
Ali Juma
bc530734b9 Merge m-c to kiwifox 2012-02-01 12:07:14 -05:00
Patrick Walton
107405a6ee Initial import of the flexible GL surface view 2012-01-31 21:35:52 -08:00
Benoit Girard
a6b4978cad Android build fixes 2012-01-31 14:28:37 -05:00
Benoit Girard
7768764c56 merge mc into kiwifox 2012-01-31 13:55:51 -05:00
Benoit Girard
8b421129d7 Merge fixes 2012-01-30 15:57:30 -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