Commit Graph

253 Commits

Author SHA1 Message Date
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
Kartikaya Gupta
4cae639063 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
Benoit Girard
b389f9539b Work around white not working as Cherckerboard color. r=kats
--HG--
extra : rebase_source : 768fe9d869c1aff743fbc69b5f537668eedf3298
2012-02-24 15:13:39 -05:00
Kartikaya Gupta
8a476c9e1c Remove unused parameters passed to endDrawing 2012-02-24 12:11:29 -05:00
Kartikaya Gupta
e955733a8b Pull out tile dimensions being passed around uselessly 2012-02-24 10:51:41 -05:00
Kartikaya Gupta
60013ccab6 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
1ee0b61340 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
400acd3392 Move transaction lock and synchronization from callers of updateViewport in to updateViewport itself 2012-02-23 15:31:40 -05:00
Kartikaya Gupta
5ec4799956 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
82bff0f17d Remove redundant getDisplayportOrigin method from ViewportMetrics; use getOrigin instead 2012-02-23 15:08:05 -05:00
Kartikaya Gupta
60d8dbfa9d Bug 730033 - Rip out WidgetTileLayer and associated gunk. r=snorp 2012-02-23 14:55:15 -05:00
Kartikaya Gupta
bdb76f0f9c 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
289a985c67 Move the call to moveFrameRateLayer off the UI thread since it calls beginTransaction 2012-02-23 12:54:54 -05:00
Kartikaya Gupta
2d25c1db47 Convert tabs to spaces 2012-02-23 11:31:01 -05:00
Kartikaya Gupta
775d2610b1 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
5db11a7118 Merge backout 2012-02-23 11:09:14 -05:00
Benoit Girard
dbfc4d8191 Backed out changeset c8451607557b 2012-02-23 11:04:11 -05:00
Kartikaya Gupta
cd3149cdd8 Take out unused MultiTileLayer 2012-02-23 10:11:16 -05:00
Kartikaya Gupta
59c802112d Take out the empty GeckoLayerClient.dimensionsChanged method and the unneeded support architecture for it 2012-02-23 10:09:38 -05:00
Ehsan Akhgari
a49ceaf19b Bug 728614 - Part 8: Remove the unneeded assignment from getViewTransform; r=kats 2012-02-22 21:27:36 -05:00
Ehsan Akhgari
f5fdc6357f Address the review comment, missed from the previous push 2012-02-22 17:15:53 -05:00
Ehsan Akhgari
0d41577b36 Bug 728614 - Part 7: Pause painting when the orientation changes in order to avoid getting intermediate frames painted; r=kats 2012-02-22 15:14:28 -05:00
Ehsan Akhgari
21df951827 Bug 728614 - Fix the zoom level when the device rotates on pages with <meta viewport> information; r=kats 2012-02-22 13:13:16 -05:00
Kartikaya Gupta
6cd2dcb55d Strip down GeckoLayerClient - scope down visibility of fields/methods, remove empty methods and dead code, and inline some one-liner methods. 2012-02-22 15:08:46 -05:00
Kartikaya Gupta
04fe7046ae Completely collapse GeckoGLLayerClient into GeckoLayerClient. 2012-02-22 14:45:44 -05:00
Kartikaya Gupta
c37b0d4191 Bug 729528 - Add logging to figure out how much viewport prediction will help us. r=Cwiiis 2012-02-22 12:02:38 -05:00
Kartikaya Gupta
2320513555 Rip out the unused viewport bias and optimum offset code 2012-02-22 10:22:31 -05:00
Kartikaya Gupta
c2af89696d Reduce some unnecessary logcat spew 2012-02-22 09:37:39 -05:00
Benoit Girard
a716a386a9 Don't do TexImage2D+TexSubImage2D 2012-02-21 16:44:59 -05:00
Benoit Girard
d55e42e1bd mCheckerboardShouldShowChecks should default to true. DONTBUILD 2012-02-21 16:19:23 -05:00
Chris Lord
1cd5a15deb Bug 728978 - Fix scrollToFocusedInput in browser.js. r=mfinkle
This fixes scrollToFocusedInput by doing the extra scrolling that scrollIntoView
can't do (due to the way we zoom), and by making sure the events land in the
right order.
2012-02-21 16:46:48 +00:00
Jeff Muizelaar
c38da242ab 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
Brad Lassey
f92e6ed0ba bug 726827 - MAPLE: Black thumbnails r=jmuizelaar 2012-02-21 01:22:56 -05:00
Joe Drew
fd29de011a 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
Ehsan Akhgari
0699b06da9 Fix clicking 2012-02-20 17:47:32 -05:00
Ehsan Akhgari
71bd0669a9 Bug 728614 - Part 2: Remove viewport offsets 2012-02-20 16:51:37 -05:00
Jeff Muizelaar
3a93b5a4c5 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
Brad Lassey
e85e784817 backing out e45688c8531c because it broke the build 2012-02-18 14:21:48 -05:00