Commit Graph

291 Commits

Author SHA1 Message Date
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