Commit Graph

84 Commits

Author SHA1 Message Date
Kartikaya Gupta
9ec788a1a2 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
53cd348221 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
e01c4001a4 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
1166758395 Bug 725428 - Draw white background in LayerView until Gecko has painted. r=kats 2012-03-22 15:07:00 -07:00
Brian Nicholson
15931dd3db Backout 017f6dd98dc0 for robocop failures 2012-03-22 17:28:13 -07:00
Brian Nicholson
acdfb24780 Bug 725428 - Draw white background in LayerView until Gecko has painted. r=kats 2012-03-22 15:07:00 -07:00
Chris Lord
49b9819ead 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
8476d96552 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
3bdc8512b4 Bug 731603 - Propagate a layersUpdated flag to Java for robocop use. r=ajuma 2012-03-20 00:06:56 -04:00
Kartikaya Gupta
aa77819a92 Bug 731603 - Propagate the resolution of the painted content into syncViewportInfo as well. r=Cwiiis 2012-03-20 00:05:45 -04:00
William Lachance
fcd96f3e0d Bug 736610 - Code to set checkerboard to flat color broken with Maple merge. r=pwalton 2012-03-18 13:26:54 -04:00
Chris Lord
1c2dd7f8ef 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
3edabe2c6f Backout d5b66e64cf44 (bug 732756) to see if it fixes Android crashtests. 2012-03-16 17:17:22 -04:00
Chris Lord
ff0265ea28 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
49b5aadf76 Bug 735612 - Remove unneeded call to notifyLayerClientOfGeometryChange. r=Cwiiis 2012-03-15 10:43:32 -04:00
Kartikaya Gupta
7a119cd250 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
08ef4dfac6 Bug 729646 - Remove some annoying logging. r=Cwiiis 2012-03-15 10:38:43 -04:00
James Willcox
a0db3488b7 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
bc6777aae5 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
e7c9424a66 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
5097691ede Backout changeset d2340d74fc19 because of bug 735076 2012-03-12 18:51:44 -04:00
James Willcox
02313468a0 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
c2b8ddeddc 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
537956a054 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
b7e427003c 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
afb3444228 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
51962130f6 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
e7a3a7af3e 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
041332fc6d 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
7015851d36 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
Jeff Muizelaar
69adeff0bf 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
8461970bfc Bug 733184 - Remove more logging from widget. r=pcwalton 2012-03-05 19:58:18 -05:00
Benoit Girard
91127e368d Bug 733184 - Maple: Remove some Java logging. r=pcwalton 2012-03-05 18:50:00 -05: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
Kartikaya Gupta
594a05e06b 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
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
Benoit Girard
c405868a59 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
3dc008dce0 Bug 730687 - Hook up the aboutToCheckerboard code again. r=Cwiiis 2012-02-28 16:14:14 -05:00
Kartikaya Gupta
822a63318b Bug 730687 - Fold updateViewport into endDrawing. r=Cwiiis 2012-02-28 16:13:26 -05:00
Kartikaya Gupta
ac12da1374 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
0061b51e7e Take out a line I inadvertently left in in cset ce31a3b140a2 2012-02-26 17:27:58 -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
e37885a6c7 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
Kartikaya Gupta
9969c98db4 Remove unused parameters passed to endDrawing 2012-02-24 12:11:29 -05:00
Kartikaya Gupta
fa940eb49b Pull out tile dimensions being passed around uselessly 2012-02-24 10:51:41 -05:00
Kartikaya Gupta
b1d893be53 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
8551a0e239 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
bb376197c2 Move transaction lock and synchronization from callers of updateViewport in to updateViewport itself 2012-02-23 15:31:40 -05:00
Kartikaya Gupta
9072b3ae2e 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
abd4d3c2b4 Remove redundant getDisplayportOrigin method from ViewportMetrics; use getOrigin instead 2012-02-23 15:08:05 -05:00