Commit Graph

965 Commits

Author SHA1 Message Date
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
Benoit Girard
08f33710af Merge mc->maple 2012-03-01 10:44:44 -05: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
fb19acba47 Bug 731619 - Fix race condition where flags are cleared before they are set. r=ehsan 2012-02-29 16:26:02 -05:00
Benoit Girard
5c8699dc40 Bug 730967 - Handle Cherckerboard color being null. r=kats
--HG--
extra : rebase_source : f2d33d78ba3b140e6df0fdc239539088f910bc95
2012-02-29 15:45:06 -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
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
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
d5c3b7e98b Merge m-c again to pick up 75deec1f1a7b 2012-02-28 14:37:26 -05:00
Matt Brubeck
7f8eedeab7 Bug 662891 - Require Android 2.2 "Froyo" (API level 8) or higher [r=dougt] 2012-02-28 10:05:05 -08:00
Kartikaya Gupta
134e9fec76 Merge m-c 2012-02-27 15:06:35 -05:00
Richard Newman
7eeb5614b1 Bug 730528 - Extract LooperThread from GeckoAppShell. r=blassey 2012-02-26 22:34:23 -08:00
Kartikaya Gupta
acdd08d8b5 Bug 726382 - Ensure the mDir and mMozDir variables are protected by synchronization. r=rnewman
It is possible that two threads will call getDir(), or getDir() and
moveProfilesToAppInstallLocation() simultaneously. Without this patch,
this would attempt to double-create the mozilla or profile directories,
which would then result in an IOException and failure when it shouldn't.
2012-02-26 18:08:03 -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
Benoit Girard
fb8fcecde6 Work around white not working as Cherckerboard color. r=kats
--HG--
extra : rebase_source : 768fe9d869c1aff743fbc69b5f537668eedf3298
2012-02-24 15:13:39 -05:00
Doug Turner
df4f53ea90 Merge with mozilla-central 2012-02-24 11:57:27 -08: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
Margaret Leibovic
989bf60ca4 Bug 725483 - Fix up testBookmark to work with the new bookmark UI. r=gbrown 2012-02-23 10:48:48 -08:00
Margaret Leibovic
d2acd8a91c Bug 727451 - Pressing the back button in the bookmarks list should go up a folder level if possible. r=lucasr 2012-02-23 10:48:48 -08:00
Margaret Leibovic
4418e26ad8 Bug 722020 (Part 2) - Fix bookmarks context menu. r=wesj 2012-02-23 10:48:48 -08:00
Margaret Leibovic
5c78feb6cf Bug 722020 - Bookmarks UI with folders. r=lucasr 2012-02-23 10:48:47 -08:00
Margaret Leibovic
a6cc1a4a4a Bug 727482 - Remove custom bookmark observer. r=bnicholson 2012-02-23 10:48:45 -08:00
Richard Newman
6f4f5cf379 Bug 730000. r=rnewman 2012-02-23 09:48:54 -08:00
Richard Newman
bae76fcd28 Bug 718238 - Part 6: don't reupload folders when their children array is already accurate. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
0703071718 Bug 718238 - Part 5: allow access to the tracked GUIDs in RepositorySession. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
07d0c7ff6a Bug 718238 - Part 4: Safety in checkRecordType. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
076e7f363d Bug 718238 - Part 3: correct handling of deletion. Generate valid records for deleted bookmarks and history items. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
4f730b8bb6 Bug 718238 - Part 2: parenting and ordering of bookmarks. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
6c76915705 Bug 718238 - Part 1: Safety for logging after computeParentFields returns null. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
b05fc603ee Bug 718238 - Part 0: Cleanup and basic improvements. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
719502e994 Bug 729410 - Part 1: Implement basic automatic backoff unless a sync is forced. r=nalexander 2012-02-23 08:14:05 -08:00
Richard Newman
dc4b114462 Bug 729410 - Part 0: We don't use extras to store clusterURL any more. r=nalexander 2012-02-23 08:14:05 -08:00
Lucas Rocha
449848ff53 Bug 713056 - Update list of search engines in the main thread (r=blassey) 2012-02-23 15:24:22 +00:00
Lucas Rocha
83936b5079 Bug 710323 - Clicking on addons should go to their page in AMO (r=mfinkle) 2012-02-23 15:20:49 +00: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
Kartikaya Gupta
5857681738 Bug 730033 - Rip out WidgetTileLayer and associated gunk. r=snorp 2012-02-23 14:55:15 -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