Commit Graph

113 Commits

Author SHA1 Message Date
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
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
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
James Willcox
462a3740e2 Bug 753458 - Remove unnecessary fields in RenderContext r=kats 2012-05-24 11:02:49 -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
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
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01: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
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
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
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
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
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
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
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
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
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
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
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
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
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
Ehsan Akhgari
39bfe969ec Backout changeset d2340d74fc19 because of bug 735076 2012-03-12 18:51:44 -04: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
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