Commit Graph

63 Commits

Author SHA1 Message Date
Kartikaya Gupta
3aa2e96ea3 Bug 1180295 - Remove the margins information from ImmutableViewportMetrics. r=rbarker 2015-08-18 14:27:20 -04:00
Jeff Muizelaar
5301fca959 Bug 1127005. Rename CairoImage to BufferedImage. r=kats
try: -b do -p android-api-9,android-api-11,android-x86 -u all -t none
2015-01-28 17:04:50 -05:00
Chris Lord
ed41276fbb Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-25 18:47:08 +01:00
Ryan VanderMeulen
e376b2bb54 Backed out changeset 684a5ca2efb7 (bug 858969) for Android M3 failures.
CLOSED TREE
2013-04-25 10:56:54 -04:00
Chris Lord
ac2dc65ab2 Bug 858969 - Refactor dynamic toolbar so page is offset and not overlapped. r=kats,nrc
Refactor the dynamic toolbar code so that the ownership of various properties
is clearer, and the page is offset by the toolbar instead of being overlapped.
This fixes problems with the scroll origin of the page not corresponding to
the visible origin on the screen.
2013-04-24 17:06:23 +01:00
Chris Peterson
f7eecfb60e Bug 828594 - Part 2: Remove unused Java imports. r=kats 2013-01-09 10:32:50 -08:00
Kartikaya Gupta
3351ae3f3c Bug 820556 - Remove unused function. r=snorp 2012-12-11 17:33:09 -05:00
Kartikaya Gupta
cc923ac5a4 Bug 820556 - Kill mUsesDefaultProgram which is always true. r=snorp 2012-12-11 17:33:09 -05:00
Kartikaya Gupta
57184aa058 Bug 760229 - Factor out a fillRectCoordBuffer function. r=Cwiiis 2012-09-06 14:34:38 -04:00
Chris Peterson
d0804fd1e7 Bug 779366 - Part 1: Move FloatUtils to org.mozilla.gecko.util package. r=kats 2012-07-27 21:57:47 -07:00
Chris Peterson
885e571e16 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
Chris Peterson
a953be5776 Backout 844444ca8feb (Bug 709230) r=bustage 2012-07-17 17:54:54 -07:00
Chris Peterson
6cb6900e58 Bug 709230 - Part 4: Remove unused imports. r=blassey 2012-07-15 13:20:43 -07:00
Chris Peterson
0f30d9cedd 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
James Willcox
67f080ac0f Bug 753458 - Remove unnecessary fields in RenderContext r=kats 2012-05-24 11:02:49 -04:00
Kartikaya Gupta
d1301d2c52 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
1f792eccbc Bug 748384 - Back out 330e9c52f9ac, 9ba1078559fe, 2ed39c12d792, f53f05ecacd5 for build bustage. r=bustage 2012-05-23 11:08:19 -04:00
Kartikaya Gupta
a0e56378ab 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
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
James Willcox
8570d3faad Bug 746633 - Don't use placeholder for full page plugins on Android r=blassey 2012-05-07 14:18:46 -04:00
James Willcox
307974778f Bug 727116 - Draw Flash plugins with OpenGL during pan/zoom on legacy Android r=blassey 2012-04-27 16:04:47 -04:00
Jeff Muizelaar
e02f61e239 Bug 742731. Remove performUpdates return value. r=kats
No need to have a return value if it's always going to be true.
2012-04-05 11:32:16 -04:00
Kartikaya Gupta
3f7e787fc5 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
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
25e0b6a0e2 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
30b4f71d11 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
8c2a09d3b4 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
b13e4e65c8 Backed out changeset c8451607557b 2012-02-23 11:04:11 -05:00
Kartikaya Gupta
bab6389720 Take out the empty GeckoLayerClient.dimensionsChanged method and the unneeded support architecture for it 2012-02-23 10:09:38 -05:00
Jeff Muizelaar
4c95e9f487 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
Jeff Muizelaar
3b1a803ad4 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
Patrick Walton
f3f54a453a Bug 723036 - Port the Java compositor to OpenGL ES 2.0 2012-02-08 21:13:08 -08:00
Benoit Girard
db6e6f7a54 Merge m-c into maple 2012-02-08 16:43:22 -05:00
Benoit Girard
01146aa565 Remove RemoveAbstractView, pushing new head 2012-02-08 10:46:26 -05:00
Patrick Walton
26896c5103 Add a virtual layer and GL layer client implementation 2012-02-03 15:48:26 -08:00
Benoit Girard
981d4a4fc2 Mergi mc to kiwifox, lots of conflicts so may not build 2012-01-30 13:38:20 -05:00
Benoit Girard
e0c3dbcb3c Partial work for android OGLSurfaceView 2012-01-26 14:23:13 -05:00
Chris Lord
625f77354d Bug 709120 - Update non-visible tiles asynchronously. r=pcwalton
Only update tiles that intersect with the screen, and asynchronously update
invisible tiles over multiple subsequent frames. This has the effect of
spreading out non-critical texture-upload over time and removes some juddering
on devices that don't support gralloc.
2012-01-06 11:22:52 +00:00
Chris Lord
688c49a9b4 Bug 724230 - Backout ondemand tiling. r=blassey, kats
This backs out changes d8fc13006aa4, ddde7a49f6f7, 34b1cc9454d2 and
8919c54229e1, leaving in some initialisation fixes that were introduced when
rebasing.

This work may be re-applied at a later date.
2012-02-04 18:49:59 -05:00
Chris Lord
89a7a23266 Bug 717349 - Add optional render and checkerboarding profiling. r=kats
This adds checkerboard profiling to LayerRenderer, that can be enabled either
by enabling debug logging of the "GeckoLayerRendererProf" tag, or via
reflection using PanningPerfAPI.
2012-02-02 09:02:32 +00:00
James Willcox
d28ecb7432 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Boris Zbarsky
a9bce75e95 Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds. 2012-01-31 23:38:35 -05:00
James Willcox
40223c10aa Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Ed Morley
dfab7c7328 Backout b87113ff33ff (bug 721741) for Android build failures 2012-01-31 16:19:00 +00:00
James Willcox
f9e5262935 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Chris Lord
0438500908 Bug 717283 - Use tiles on-demand. r=pcwalton, snorp
Instead of tying the tile-buffer in MultiTileLayer directly to the back-buffer
of the page, make sure rendering is always aligned to the tile grid and use
tiles on-demand. This makes better use of tiles when panning/zooming, and opens
up the route for further optimisations.
2012-01-24 15:39:53 +00:00
Ed Morley
e54b557a28 Backout 91eebc6bdb59 & 7d776b291014 (bug 717283) for Android native reftest crashes 2012-01-22 11:55:18 +00:00
Chris Lord
20e0d69d60 Bug 717283 - Use tiles on-demand. r=pcwalton, snorp
Instead of tying the tile-buffer in MultiTileLayer directly to the back-buffer
of the page, make sure rendering is always aligned to the tile grid and use
tiles on-demand. This makes better use of tiles when panning/zooming, and opens
up the route for further optimisations.
2012-01-22 09:40:37 +00:00