Commit Graph

66 Commits

Author SHA1 Message Date
Benoit Girard
91127e368d Bug 733184 - Maple: Remove some Java logging. r=pcwalton 2012-03-05 18:50:00 -05:00
Chris Lord
1fdd807090 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
1c2a06b747 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
52546827ab 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
Kartikaya Gupta
067dac7bbe 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
Kartikaya Gupta
ab3d01ba8a 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
fbe94f983a 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
af5d11aaee 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
7ab9804cda Move the call to moveFrameRateLayer off the UI thread since it calls beginTransaction 2012-02-23 12:54:54 -05:00
Kartikaya Gupta
024374bb46 Convert tabs to spaces 2012-02-23 11:31:01 -05:00
Joe Drew
f392e297d3 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
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
Patrick Walton
9e0e8cfe4a Split out Java compositor shader program activation and deactivation into separate functions 2012-02-13 12:27:09 -08: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
76fcf64d4a Expose the necessary Java routines to render decorations through JNI 2012-02-09 22:58:18 -08: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
7dc71cdb8d Merge m-c into maple 2012-02-08 16:43:22 -05:00
Benoit Girard
1ef0dddb81 Remove RemoveAbstractView, pushing new head 2012-02-08 10:46:26 -05:00
Benoit Girard
0f54b200a0 Android build fixes 2012-01-31 14:28:37 -05:00
Benoit Girard
5ded8d48db merge mc into kiwifox 2012-01-31 13:55:51 -05:00
Benoit Girard
506188e13c Mergi mc to kiwifox, lots of conflicts so may not build 2012-01-30 13:38:20 -05:00
Kartikaya Gupta
c2137e83db Bug 720144 - Allow listening for draw updates and obtaining a copy of the composited surface for robocop testing. r=Cwiiis 2012-01-30 22:45:38 -05:00
Benoit Girard
7f35e49cdf Partial work for android OGLSurfaceView
--HG--
extra : rebase_source : 2c6ce362dd859e9f81a5b4490e2451826259a651
2012-01-26 14:23:13 -05:00
Chris Peterson
200596fe4c Bug 714874 - Fix Java warnings about redundant casts. r=pcwalton r=dougt a=dougt 2012-01-06 12:21:49 -08:00
Chris Lord
21e7ac3639 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
6d06b90bbe 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
William Lachance
fb3af1b9dd Bug 719570 Provide option to change checkerboard to flat color on fennec for eideticker automation r=pcwalton 2012-02-03 12:35:01 -08:00
Chris Lord
c77fe02e1b 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
2c9bdd0776 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Boris Zbarsky
ba7cdb3f07 Backed out changeset e57ddd9fdd5e (bug 721741) because it breaks Android builds. 2012-01-31 23:38:35 -05:00
James Willcox
fefd8c5bca Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Ed Morley
e835f7000f Backout b87113ff33ff (bug 721741) for Android build failures 2012-01-31 16:19:00 +00:00
James Willcox
dce57d4892 Bug 721741 - Add support for Flash on Android 4.0+ r=blassey 2012-01-31 09:40:58 -05:00
Patrick Walton
a91400a930 Bug 710533 - Tint the checkerboard with the background color of the page. r=Cwiiis 2012-01-23 20:10:24 -08:00
Chris Lord
9a81bc09ee 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
Phil Ringnalda
f9599dfc5a Backed out changeset b77c0c621163 (bug 710533) for native ts bustage 2012-01-23 23:33:05 -08:00
Phil Ringnalda
96279919ee Back out 420d7b8ed59d for being a bad backout 2012-01-23 23:32:11 -08:00
Phil Ringnalda
36ccde4b4b Backed out changeset b77c0c621163 (bug 710533) for native ts bustage 2012-01-23 22:53:07 -08:00
Patrick Walton
06b9c3c2f9 Bug 710533 - Tint the checkerboard with the background color of the page. r=Cwiiis 2012-01-23 20:10:24 -08:00
Ed Morley
c1585c7af3 Backout 91eebc6bdb59 & 7d776b291014 (bug 717283) for Android native reftest crashes 2012-01-22 11:55:18 +00:00
Chris Lord
d994084581 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
Matt Brubeck
3017d8c4c6 Back out 47584f117727 and e05a8743389a (bug 717283) because of native Android startup crashes 2012-01-20 11:42:34 -08:00
Chris Lord
94b277a126 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-20 17:36:56 +00:00
Kartikaya Gupta
cc6c4a1f65 Bug 703347 - Add a background image visible during overscroll. r=Cwiiis 2012-01-20 09:27:09 -05:00
Mark Finkle
c4249100b6 Bug 714710 - LayerRenderer.checkFrameRateMonitorEnabled should use start() instead of run() [r=dougt] 2012-01-03 00:57:06 -05:00
Kartikaya Gupta
4a72a73a37 Bug 709560 - Set blend function when enabling gl blending. r=pcwalton
The missing blend function was causing the default of GL_ONE,
GL_ZERO to take effect, making it look like alpha blending wasn't
working. It would start working once the 9-patch shadow was rendered
since that code sets the correct blend function. Fix this by
ensuring we set the blend function wherever we use blending.
2011-12-19 17:40:01 -05:00
Chris Lord
2962f7d02b Bug 708307 - Decouple texture size from tile size. r=pcwalton
This removes the hard-coded limit of 1024x2048 tile sizes, and allows for
arbitrary tile-sizes. It will still only allocate texture sizes in powers of
two, however. It replaces the tile size with a buffered-area size, which can be
re-allocated as the screen dimensions change.
2011-12-15 23:45:52 +00:00
Ehsan Akhgari
6d31dbe14a Backout changeset 3e972d3efc11 (bug 708307) because it breaks Android tests; a=me 2011-12-14 15:55:17 -05:00