Commit Graph

20827 Commits

Author SHA1 Message Date
Wes Kocher
f81fa4f5dd Merge m-c to inbound, a=merge
--HG--
extra : commitid : J3K6n71ZaLB
2015-11-19 13:47:54 -08:00
Kearwood (Kip) Gilbert
6e9e6a6c87 Bug 1206072 - Don't call GetNextRenderTarget if CreateRenderTargetSet failed,r=vlad
- Prevent a crash in ContainerLayerComposite::ContainerRenderVR
  that ocurred when VRHMDRenderingSupport::RenderTargetSet::CreateRenderTargetSet
  returns null.

--HG--
extra : rebase_source : e5d3cc98575c2db43ac2a29cb0e8acf64996b932
2015-11-19 12:20:26 -08:00
Tom Klein
ca7b6331ec Bug 1131264 - Extend the workaround for drawing D2D circles. r=bas 2015-11-19 13:57:32 -06:00
Kartikaya Gupta
b0cd3a3759 Bug 1223486 - Ensure WrapTexCoord returns 0.0 instead of 1.0 when given a negative whole number. r=Bas
--HG--
extra : commitid : 7tcI6zWCoyx
2015-11-19 10:49:31 -05:00
Carsten "Tomcat" Book
a22ff2640a Merge mozilla-central to mozilla-inbound 2015-11-17 12:33:46 +01:00
Carsten "Tomcat" Book
1cf9b8b2ab merge mozilla-inbound to mozilla-central a=merge 2015-11-17 12:26:16 +01:00
Sotaro Ikeda
88d1681a84 Bug 1144103 - Support screen recording r=mwu 2015-11-17 02:04:40 -08:00
John Daggett
fcabcac70e Bug 1163487 - sniff LANGUAGE when determining language for lang group. r=karlt 2015-11-17 11:39:58 +09:00
Kevin Wern
02d8d69dc7 Bug 1199798 - Create tests for TreeTraversal.h r=botond
Move queue and stack includes outside of mozilla namespace.

Test the following for searches:
- Null root returns null.
- Needle is root returns root.
- No needle results in full traversal.
- Needle node in middle returns that needle, and stops traversing.

Test the following for ForEachNode:
- Null root still runs correctly.
- No skips results in traversal of entire tree.
- Root skip results in only changing the root.
- First skips are still included (whether leaf or parent).

--HG--
extra : source : 6d2572c274363c7544c4f96f0016fead098b157e
2015-11-16 13:54:12 -05:00
Matt Woodrow
caa70d1713 Bug 1219230 - Use the valid region for determining buffer size instead of the visible region. r=mstange 2015-11-17 11:36:38 +13:00
David Anderson
f542a9de1b Remove CreateImage() from ImageContainer, ImageFactory, and ImageClient. (bug 1222910, r=roc) 2015-11-17 00:09:01 -08:00
David Anderson
8e086a182c Remove Gonk usage of ImageContainer::CreateImage. (bug 1222910, r=sotaro) 2015-11-17 00:09:01 -08:00
David Anderson
27bfc27d62 Decouple SharedRGBImage and PlanarYCbCrImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:01 -08:00
David Anderson
7970ac45fd Decouple MacIOSurfaceImage from ImageContainer. (bug 1222910, r=mstange) 2015-11-17 00:09:00 -08:00
David Anderson
ec187774dc Decouple SurfaceTextureImage from ImageContainer. (bug 1222910, r=snorp) 2015-11-17 00:09:00 -08:00
David Anderson
cb88eed605 Decouple EGLImageImage from ImageContainer. (bug 1222910, r=snorp) 2015-11-17 00:09:00 -08:00
David Anderson
c92530b253 Decouple D3D9SurfaceImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
2e1669f2fe Decouple D3D11ShareHandleImage from ImageContainer. (bug 1222910, r=mattwoodrow) 2015-11-17 00:09:00 -08:00
David Anderson
7e9cf5355c Decouple CairoImage from ImageContainer. (bug 1222910, r=roc) 2015-11-17 00:09:00 -08:00
Wes Kocher
c0ece6bf0d Merge m-c to fx-team, a=merge
--HG--
extra : commitid : 2bzybQqlwy0
2015-11-16 17:28:26 -08:00
Botond Ballo
0fd123dede Bug 1208829 - Make FromUnknownRegion() actually work, and add ToUnknownRegion(). r=mstange
--HG--
extra : source : 5e6eeffb2c3c81c54df58d8c63b639f275b496c7
2015-11-09 20:42:37 -05:00
Luca Greco
b6dcf4514a Bug 1218364 - windowless browser windows should not crash on Troubleshoot. r=billm,jrmuizel 2015-11-11 07:08:00 +01:00
Nicholas Nethercote
e48ef7f5e0 Bug 1224482 (part 4) - Make GetClientSize() return a LayoutDeviceIntSize. r=kats.
--HG--
extra : rebase_source : 6364076d0924ed1cd5a952ffa1fcb0543c05c0f7
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
7a746a27ea Bug 1224482 (part 2) - Replace GetNaturalBoundsUntyped() with GetNaturalBounds(). r=kats.
--HG--
extra : rebase_source : 912780c975c0bd0d66596b287077b0ab1fcb6d9f
2015-11-13 01:37:02 -08:00
Nicholas Nethercote
369f54f3a3 Bug 1224482 (part 1) - Tweak typed/untyped versions of Get{,Client,Screen}Bounds(). r=kats.
In nsIWidget, GetBoundsUntyped(), GetClientBoundsUntyped() and
GetScreenBoundsUntyped() are currently the primary implementations, and the
untyped versions are defined on top of them. This patch flips that around.

--HG--
extra : rebase_source : 15b2f08f90bf4d1e209c6cb885f6a6e3b8db6708
2015-11-12 16:04:52 -08:00
Matt Woodrow
545885b406 Bug 1217012 - Use doubles when untransforming points since we need the extra precision. r=kip 2015-11-16 17:05:55 +13:00
John Daggett
2402be3a35 Bug 1173260 - support multiple families for generics. r=heycam 2015-11-16 08:48:40 +09:00
John Daggett
d005a8f2b6 Bug 1167284 - implement localized name lookup for fontconfig font families. r=karlt 2015-11-16 08:48:36 +09:00
Nathan Froyd
6fae252680 Bug 1216644 - part 3 - make BufferRecycleBin store UniquePtrs; r=jrmuizel
Changing mRecycledBuffers to store UniquePtrs instead of nsAutoArrayPtrs
opens up the possibility of a reasonable facsimile of ownership in
function signatures.
2015-10-20 13:16:04 -04:00
Nathan Froyd
3d5a31b8f3 Bug 1216644 - part 2 - make gfxFontEntry::mUVSData a UniquePtr; r=jrmuizel
This patch could have been in the last patch, but it felt like modifying
ReadCMAPTableFormat14 to accept a UniquePtr<> made the code clearer.
This change was therefore separated into its own patch for easier
review.
2015-10-20 12:12:41 -04:00
Nathan Froyd
634bee4a27 Bug 1216644 - part 1 - simple s/nsAutoArrayPtr/UniquePtr/ changes in gfx/; r=jrmuizel
This patch handles all the cases where we just want to swap out
nsAutoArrayPtr for UniquePtr and don't require code changes other than
updating uses that implicitly converted to T* to follow UniquePtr's
conventions.
2015-10-20 13:13:35 -04:00
Phil Ringnalda
04f94361ed Back out changeset 98bd7a8e4705 (bug 1225645) for Windows build bustage
CLOSED TREE
2015-11-18 18:48:14 -08:00
Randall Barker
47968a20fd Bug 1223946 - Part 1: Clean up and support needed for converting WidgetWheelEvent to ScrollWheelInput. r=kats
--HG--
extra : commitid : Cihc6iEBezl
2015-11-18 19:32:37 -05:00
John Daggett
67aa034f9a Bug 1214490 - fix-up system font name warning. r=mstange 2015-11-19 09:18:19 +09:00
David Anderson
ca5b902f03 Null-check D3D10 devices in a few places. (bug 1225645, r=bas) 2015-11-18 12:16:54 -08:00
David Anderson
6458429618 Search for a matching DXGI adapter in content processes. (bug 1225283 part 2, r=jrmuizel)
--HG--
extra : rebase_source : 958d320e527c871b927f888598c00b95189faf0d
2015-11-18 12:13:40 -08:00
David Anderson
a461be8bed Add IPC helpers to marshal DXGI_ADAPTER_DESC. (bug 1225283 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 3733dd6db625c9f93f34725d246b4efb6b63b191
2015-11-18 12:11:52 -08:00
Kartikaya Gupta
d46f3c8561 Bug 1225950 - Force a composite if we have requested one but haven't gotten a vsync in a while. r=mchang
--HG--
extra : commitid : 2PGqM7BZ1za
2015-11-18 18:49:58 -05:00
Kartikaya Gupta
c46a221da2 Bug 1225950 - Make mNeedsComposite a counter rather than a boolean. r=mchang
--HG--
extra : commitid : Gc6SpoPtYLm
2015-11-18 18:49:58 -05:00
Kartikaya Gupta
f2fbe0fce5 Bug 1225950 - Remove unnecessary parameter from SetNeedsComposite. r=mchang
--HG--
extra : commitid : LRFcG5vPtfq
2015-11-18 18:49:58 -05:00
Mason Chang
d7f814c9e2 Bug 1208636 - Adjust displayport size based on available system memory. r=kats 2015-11-18 15:48:19 -08:00
Kartikaya Gupta
3bdf2299bb Bug 1225571 - Move the code to update the SPCSPS from repaint request handling to when the resolution is updated in the presShell. r=botond
--HG--
extra : commitid : JglAPUfEC3G
2015-11-18 13:53:14 -05:00
Nicolas Silva
eaa6383344 Bug 1224254 - Bustage fix on a CLOSED TREE 2015-11-18 19:22:02 +01:00
Tom Klein
df61b215e4 Bug 676001 - Fix for stroke hit testing on cairo. r=jrmuizel
The mochitest was mostly written by Jonathan Watt (bug 719385).
2015-11-18 11:20:02 -06:00
Nicolas Silva
578a8ccc95 Bug 1224254 - Don't try to allocate unreasonably large textures. r=Bas 2015-11-18 16:59:11 +01:00
Nicolas Silva
2265d9e4a8 Bug 1219529 - Don't attempt to deallocate shmems after the ipdl protocol is shut down. r=sotaro 2015-11-18 16:59:06 +01:00
Chris Lord
592eed9711 Bug 1222524 - Change behaviour of axis-lock with nested APZCs. r=botond 2015-11-17 14:01:06 +00:00
Nicholas Nethercote
26b0d282a5 Backout 52ba24123046 and 66768d6a50fa (bug 1225007) for causing lots of test assertions on Mac. CLOSED TREE 2015-11-17 17:02:39 -08:00
Wes Kocher
f4535ab455 Backed out 2 changesets (bug 1225283) for Windows build bustage CLOSED TREE
Backed out changeset a2dc8e863533 (bug 1225283)
Backed out changeset 5f456b78cccc (bug 1225283)
2015-11-17 14:41:42 -08:00
Nicholas Nethercote
eb12a384c0 Bug 1225007 (part 1) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : ad3466d05e476ebf65affdde3fca52494e1327cb
2015-11-15 21:37:52 -08:00
David Anderson
49d9ee1086 Search for a matching DXGI adapter in content processes. (bug 1225283 part 2, r=jrmuizel) 2015-11-17 13:40:38 -08:00
David Anderson
91684610bf Add IPC helpers to marshal DXGI_ADAPTER_DESC. (bug 1225283 part 1, r=mattwoodrow) 2015-11-17 13:38:12 -08:00
Bas Schouten
1d56bd9dc8 Bug 1225125 - Test: Check if we crash easily on a 0x0 clipped layer surface. r=jrmuizel 2015-11-17 18:38:46 +01:00
Kartikaya Gupta
93a999b964 Bug 1223296 - Clear element activation if a contextmenu is displayed. r=botond
--HG--
extra : commitid : ChrGznttoya
2015-11-13 15:10:52 -05:00
Kartikaya Gupta
6b4995e92f Bug 1223296 - Fire a Gesture:SingleTap message to browser.js even on the C++ APZ codepath. r=rbarker
--HG--
extra : commitid : GvuSYOt7CxQ
2015-11-13 15:10:52 -05:00
Kartikaya Gupta
8b57a39a60 Bug 1223296 - Fire the MozMouseHittest event even if the C++ APZ is enabled. r=rbarker,botond
--HG--
extra : commitid : 7J4EjtaTGHs
2015-11-13 15:10:52 -05:00
Kartikaya Gupta
0924e27ab0 Bug 1223296 - Turn HandlePanStart into a more generic function that can be called from other places. r=botond
--HG--
extra : commitid : Hc4gKPuqS4Z
2015-11-13 15:10:52 -05:00
Kartikaya Gupta
c33a15997e Bug 1214267 - Followup to fix missing propagation of 'fixedPositionSides' to the compositor, and add it to the layers dump. r=mattwoodrow
DONTBUILD because this is a backout/reland to fix bug number.

--HG--
extra : commitid : 9xTCi5XLFMS
2015-11-13 09:38:57 -05:00
Kartikaya Gupta
1ad49ed211 Back out cset 7529d41e6f1b for landing with an incorrect bug number. r=me
--HG--
extra : commitid : AAxGLc2g3Zv
2015-11-13 09:37:53 -05:00
Kartikaya Gupta
2a5aedcbea Bug 1224209 - Fix missing propagation of 'fixedPositionSides' to the compositor, and add it to the layers dump. r=mattwoodrow
--HG--
extra : commitid : 2Hz8MreXYr6
2015-11-13 09:35:40 -05:00
Bas Schouten
1106ab221f Bug 1204922: When ResizeBuffers fails, make no attempt to do subsequent paints until it succeeds again. r=milan 2015-11-13 13:04:44 +01:00
Nicholas Nethercote
d5fcd40f2f Bug 1224403 (part 10) - Make nsScreenGonk::GetNaturalBoundsUntyped() typed. r=kats.
--HG--
extra : rebase_source : 5f07908c287af3e6e272047a72837641a4d6824e
2015-11-12 05:44:43 -08:00
Nicholas Nethercote
e2fe66176b Bug 1224403 (part 4) - Make {Get,Set}NonClientMargins() return/take a LayoutDeviceIntMargin. r=kats.
This required adding {To,From}UnknownMargin().

--HG--
extra : rebase_source : de7e8f56604825bcc1babe5e05a8f8623a402cad
2015-11-11 23:05:04 -08:00
Nicholas Nethercote
ff5231e6d2 Bug 1224403 (part 1) - Make Configuration::mBounds a LayoutDeviceIntRect. r=kats.
--HG--
extra : rebase_source : a0ae2779dfd9bc10730c8b38bc082453845daa1f
2015-11-10 16:27:26 -08:00
Jeff Gilbert
0889900785 Bug 1209612 - Formalize client vs display EGL exts, and don't check client exts on ANDROID due to topcrash. - r=jrmuizel,snorp 2015-11-12 13:41:45 -08:00
Bas Schouten
7f79cf9b7a Bug 1221616: Use ID2D1CommandList instead of a bitmap for temporary D2D drawing. r=jrmuizel 2015-11-12 17:00:52 +01:00
Heiher
941d76c43e Bug 1222298 - GFX: 2D: Make convolverLS3 more like upstream. r=seth
---
 gfx/2d/convolverLS3.cpp | 62 +++++++++++++++++++++++++------------------------
 gfx/2d/convolverLS3.h   |  4 +---
 2 files changed, 33 insertions(+), 33 deletions(-)
2015-11-12 19:43:17 +08:00
Nicholas Nethercote
489c83b1dd Bug 1223690 - Remove implicit Rect conversions. r=jrmuizel.
gfxRect can be implicitly constructed from IntRect, which hides a number of
implicit conversion points, makes Moz2Dification harder, and has some
surprising effects.

This patch removes the implicit constructor and replaces it with an explicit
conversion function:

  gfxRect ThebesRect(const IntRect&)

This is the obvious outcome of removing the constructor.

But there is also a second, less obvious outcome: currently we do a number of
IntRect-to-Rect conversions using ToRect(), which (surprisingly) works because
it turns into an implicit IntRect-to-gfxRect conversion (via the implicit
constructor) combined with an explicit gfxRect-to-Rect conversion (via
ToRect()). I.e. we do two conversions, going from a Moz2D type to a Thebes
type and back to a Moz2D type!

So this patch also changes these conversion. It moves this existing function:

  Rect ToRect(const IntRect&)

from gfx2DGlue.h -- where it doesn't really belong because it doesn't involve
any Thebes types -- to gfx/2d/Rect.h, templatifying and renaming it as
IntRectToRect() in the process.

The rest of the patch deals with fall-out from these changes. The call sites
change as follows:

- IntRect-to-gfxRect conversions:
  - old: implicit
  - new: ThebesRect()

- IntRect-to-Rect conversions:
  - old: ToRect()
  - new: IntRectToRect()

--HG--
extra : rebase_source : e4e4c2ad10b36ecad4d57d1630158f3374e403be
2015-11-11 14:23:14 -08:00
Botond Ballo
1d2e065137 Bug 1224021 - Support fractional async scroll offsets in the reftest harness. r=tn
--HG--
extra : source : 8ac574ef7d45931a281dc33d47d94ea15daf1f59
extra : amend_source : 4ae093283f5b68b6630b5497d387096e27a02b4b
2015-11-11 19:10:23 -05:00
Timothy Nikkel
2dbd0146a5 Bug 1223639. Rename ForceInside to MoveInsideAndClamp so it's clearer what it does. r=botond
This has led to confusion at least twice.
2015-11-11 16:38:25 -06:00
Botond Ballo
a224f7b777 Bug 1222661 - Replace ToUnknown(obj) and FromUnknown(obj) with obj.ToUnknown*() and FromUnknown*(obj). r=nical
--HG--
extra : rebase_source : db0f7cfb9ce17492e9d13ee2681e98767ae861a6
extra : source : 2265b5592e39033d22d902d44ba73cba719b8cd0
2015-11-09 17:49:46 -05:00
Botond Ballo
6a70e1aa18 Bug 1222661 - Replace FromUntyped(obj) calls with FromUnknown*(obj). r=nical
--HG--
extra : rebase_source : c1afe8560b838e1a3be0ce50847861b1815d3dc9
extra : source : d649f163c825736efaf3ac3ad73040beeb48a6ef
2015-11-09 18:22:25 -05:00
Botond Ballo
a592a77364 Bug 1222661 - Replace ToUntyped(obj) calls with obj.ToUnknown*(). r=nical
--HG--
extra : rebase_source : 1cab46638599d8c4e6183c42a6fa9d41702392cb
extra : source : cabc28a2200b9b4e5e137d331ee5b86b3c09f065
2015-11-06 22:13:40 -05:00
Bas Schouten
b38ab6a38f Bug 1210560 - Followup 3: Fix an assertion that can occur on mochitest bc4. r=jrmuizel on a CLOSED TREE 2015-11-11 21:56:59 +01:00
Benoit Girard
f167bfd6b8 Bug 1223540 - Add a pref for CGL's multithreaded mode (EMPEngine). r=jrmuizel
--HG--
extra : commitid : AGxBynhmllr
extra : rebase_source : 744bf8e02589cc919eb41471979f69d10683716f
2015-11-10 16:14:24 -05:00
Kartikaya Gupta
8531f6e36c Bug 898075 - Remove the mozbrowserasyncscroll event from Gecko. r=botond,kanru,sicking
--HG--
extra : commitid : 2hGYJD6eHff
2015-11-11 10:17:47 -05:00
Bas Schouten
2604700a19 Bug 1210560 - Part 8: Remove unused PushGroup/PopGroup/PopGroupToSource functions. r=jrmuizel 2015-11-11 16:15:40 +01:00
Bas Schouten
b8dfcb93d1 Bug 1210560 - Part 5: Convert BasicLayers usecases to PushGroupForBlendBack and temporary surfaces. r=jrmuizel 2015-11-11 16:15:39 +01:00
Bas Schouten
36cd89f36b Bug 1210560 - Part 3: Convert more complex SVG usecases to PushGroupForBlendBack. r=jwatt r=jrmuizel 2015-11-11 16:15:39 +01:00
Bas Schouten
d4041dbed1 Bug 1210560 - Part 2: Convert some simple users to use PushGroupForBlendBack. r=jrmuizel 2015-11-11 16:15:39 +01:00
Bas Schouten
752a87fbd2 Bug 1210560 - Part 1: Add an API specifically intended for users that just Push and Pop-Mask/Pop-Paint. r=jrmuizel 2015-11-11 16:15:39 +01:00
Thinker K.F. Li
8f0e450b12 Bug 1210784 - Layer tree invalidation with Preserves3D. r=roc
--HG--
extra : rebase_source : 0272b4a05d8c502fcb8afa7bc9ad5ea168967fd2
2015-11-02 18:28:00 +01:00
Kartikaya Gupta
733738df2c Bug 1214267 - Send the side to which fixed-pos items are attached so that we can move them in the compositor more correctly when the viewport size is changing. r=mattwoodrow
--HG--
extra : commitid : ALBL7XCsNm0
2015-11-11 10:07:29 -05:00
John Daggett
e85da43d87 Bug 1160506 - support intra-family font fallback. r=heycam
Fontconfig allows for fonts to be arbitrarily mapped into another font
family. Under some versions of Debian and Fedora, families like Droid
Sans Japanese were mapped into the Droid Sans family. To match these
font families properly, it's necessary to test multiple fonts within a
single given family. Since this is a relatively time consuming
procedure, only do this when there are multiple regular faces for a
given family.
2015-11-11 21:13:33 +09:00
Milan Sreckovic
e5971201e2 Bug 1219494 - Part 1. TextureD3D11 and gfxDevCrash instead of MOZ_CRASH where appropriate. r=mchang
--HG--
extra : rebase_source : bf4cd63aca2e927a56f3ee682a0e24d76578bfba
2015-11-09 11:28:00 +01:00
Nicholas Nethercote
f7b2001d62 Backout ea759b57d58a (bug 1223215 part 5) because the removed functions are still useful. r=me.
DONTBUILD because it just adds back a couple of small, unused functions.
2015-11-10 20:36:29 -08:00
David Anderson
43c2e6c27f Use RAII for more TextureClient locking cases. (bug 1222863 part 2, r=nical)
--HG--
extra : rebase_source : 83874cb87472538c6670dabaa9703070f40176f7
2015-11-10 23:58:29 -08:00
David Anderson
9b96e4817d Add an RAII class to lock and unlock textures. (bug 1222863 part 1, r=nical)
--HG--
extra : rebase_source : 730527b8495ea92a2d6fffc8bd6a6f97b2c3b6d3
2015-11-10 23:58:21 -08:00
Nicholas Nethercote
ad0dd8414a Bug 1223310 (part 2) - Use LayoutDeviceIntRect for bounds-related functions in nsIWidget. r=kats.
The patch renames the existing functions (GetBounds(), GetClientBounds(), etc)
by adding an |Untyped| suffix. It then adds typed equivalents, and uses those
typed equivalents in all the call sites where it's easy to do so. The trickier
remaining call sites are converted to use the Untyped-suffix version.

--HG--
extra : rebase_source : 6bfb15bfc4698e2eba7d4db55497299d3dffcd51
2015-11-09 21:37:32 -08:00
Nicholas Nethercote
a4bbbdd6b5 Bug 1223215 (part 5) - Remove ToSize() and ThebesSize(). r=jrmuizel.
--HG--
extra : rebase_source : 28ec92701653aec22fecc89918e70d144ddcd438
2015-11-08 21:13:36 -08:00
Nicholas Nethercote
ae19c23f26 Bug 1223215 (part 4) - Remove a ToSize() call. r=jrmuizel.
--HG--
extra : rebase_source : c4305bf12e75da89fca8be0468ff8438c36cc016
2015-11-08 21:04:42 -08:00
Nicholas Nethercote
2b25a153e9 Bug 1223215 (part 3) - Moz2Dify DeviceToUser(gfxSize) and UserToDevice(gfxSize). r=jrmuizel.
--HG--
extra : rebase_source : 360cd372afd0b6e521ece5d0294dfcd160bc11ac
2015-11-08 21:03:40 -08:00
Randall Barker
02228538d3 Bug 1223440 - Implement NativePanZoomController::setIsLongpressEnabled so long-press detection can be disabled during testing. r=kats
--HG--
extra : commitid : al8R68DZJ5
2015-11-10 12:47:48 -05:00
Randall Barker
9199477993 Bug 1223436 - Fix AsyncCompositionManager so that mLayersUpdated is only set to false after SyncFrameMetrics has been called. r=kats
--HG--
extra : commitid : 14Ip4CDsoEZ
2015-11-10 12:01:35 -05:00
Milan Sreckovic
cec30dd69d Bug 1222033 - Rename gfxCrash to gfxDevCrash. r=jrmuizel 2015-11-09 07:28:00 +01:00
Mason Chang
189075b950 Bug 1223052 - Add a gtest to test that the vsync source supplies a proper vsync rate. r=kats 2015-11-09 19:10:26 -08:00
Kartikaya Gupta
cca6bbe4e9 Bug 1174532 - Even if the APZC is not pannable, have a small slop area to consume touchmove events. r=botond
--HG--
extra : commitid : 4O6nOyxOfbz
2015-11-09 16:42:34 -05:00
Jeff Muizelaar
1627fa6867 Bug 1222496. Avoid having ANGLE default to D3D11.
This fixes a regression where we would not be able to ask
ANGLE not to use D3D11.
2015-11-09 16:33:53 -05:00
Bill McCloskey
f8aa3d2562 Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats) 2015-11-09 10:21:11 -08:00
Nathan Froyd
62b66d3dba Bug 1222569 - remove unused variable from DrawTargetD2D1.cpp; r=Bas 2015-11-06 15:09:03 -05:00
Nathan Froyd
ff7379df68 Bug 1222569 - remove unused const variables from ExtendInputEffectD2D1.cpp; r=Bas 2015-11-06 15:08:29 -05:00
Nathan Froyd
048d9143a0 Bug 1222569 - remove unused function from gfxPlatformFontList.cpp; r=Bas 2015-11-06 15:07:10 -05:00
Nathan Froyd
bc83fc417c Bug 1222569 - remove unused variables in CompositorD3D9.cpp; r=Bas
None of the other DrawPrimitive calls in DrawQuad are checked, so
discaring the result from this call of DrawPrimitive seems OK.
2015-11-06 15:04:40 -05:00
Nathan Froyd
33ff686226 Bug 1222569 - remove unused variable in TextureD3D9.cpp; r=Bas 2015-11-06 15:02:52 -05:00
Nathan Froyd
9c46bc20f5 Bug 1222569 - remove unused variable in gfxDWriteFonts.cpp; r=Bas 2015-11-06 15:02:07 -05:00
Nathan Froyd
20624ec388 Bug 1222569 - fix -Wformat warning in gfxWindowsPlatform.cpp; r=Bas 2015-11-06 14:42:09 -05:00
Nathan Froyd
2b88ed7158 Bug 1222569 - fix initialization order in gfxWindowsPlatform.cpp; r=Bas 2015-11-06 14:40:48 -05:00
Nathan Froyd
1faded305e Bug 1222569 - fix initialization order in SourceSurfaceD2D1; r=Bas
Member fields are supposed to be initialized in the order they are
declared, but the constructor of SourceSurfaceD2D1 initialized
mDrawTarget prior to mDevice.  This is probably harmless, but it does
cause a warning on clang-cl, so let's fix it.
2015-11-05 15:22:08 -05:00
Nathan Froyd
383397bc5b Bug 1222569 - fix initialization order in DataTextureSourceD3D9; r=Bas
Member fields are supposed to be initialized in the order they are
declared, but the constructors of DataTextureSourceD3D9 initialized
mFormat prior to mCompositor.  This is probably harmless, but it does
cause a warning on clang-cl, so let's fix it.
2015-11-05 14:34:14 -05:00
Carsten "Tomcat" Book
cddfda5e2c Backed out changeset 663cc5ad5c32 (bug 1222033) for bustage on a CLOSED TREE 2015-11-09 09:44:08 +01:00
Milan Sreckovic
49f15c1e44 Bug 1222033 - Rename gfxCrash to gfxDevCrash. r=jrmuizel
--HG--
extra : rebase_source : 435421b5ca7e89c439e8ece6f4bf10306337f389
2015-11-05 07:32:00 +01:00
Sebastian Hengst
7399ac0b2a Backed out 3 changesets (bug 1221368, bug 1221371) for build failures in B2G JB Emulator. r=backout
Backed out changeset a50c676caf7f (bug 1221371)
Backed out changeset bd99e5060e1e (bug 1221371)
Backed out changeset 3a22461c8ce8 (bug 1221368)

gecko/ipc/chromium/src/base/task.h:36:4: error: use of deleted function 'RefPtr<T>::operator T*() const && [with T = nsScreenGonk]'
make[6]: *** [nsScreenManagerGonk.o] Error 1
2015-11-08 21:25:22 +01:00
Bill McCloskey
50c9efe1a4 Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats) 2015-11-08 10:25:09 -08:00
Robert O'Callahan
cf2724f213 Bug 1222308. Assume frames that are very old will never be composited. r=nical
This also makes NotifyCompositeInternal take O(N) time in the length of
mFrameIDsNotYetComposited instead of O(N^2).

--HG--
extra : commitid : 6cKD9FP2S5x
extra : rebase_source : c9e99b36f847daa2c32217dc76dfd9f0cc311fe5
2015-11-06 16:56:34 +13:00
Benoit Girard
f592f0fa5b Bug 1221348 - Part 2: Fix texture sharing detection code on Intel. r=jrmuizel
--HG--
extra : commitid : 7OxVAv5q4NJ
2015-11-06 14:48:44 -08:00
Kevin Wern
6a1cf14315 Bug 1199798 - Use more generic tree traversal algorithms in APZCTreeManager. r=botond
Extend the tree traversal algorithms in TreeTraversal.h, and use them
instead of manual loops in APZCTreeManager.

- Create function ForEachNode(), which calls a function on each node
  of a tree. The function must return a TraversalFlag to indicate
  whether the node's children should be visited or skipped.
- Modify DepthFirstSearch() and BreadthFirstSearch() to operate on
  pointers that are not (necessarily) const. This makes them more
  general.
- Refactor functions in APZCTreeManager: Collect, FlushRepaints,
  FlushRepaintsRecursively, FlushPendingRepaint,
  FlushPendingRepaintRecursively, UpdateZoomConstraints,
  UpdateZoomConstraintsRecursively, ClearTree, FindScrollNode.

--HG--
extra : rebase_source : e7a740a9833ba49b1d41849bb43ce9077d42bc07
extra : source : ef6f195f2259e103f0c1979a5f4ebb5a8601b15d
2015-11-06 12:31:36 -05:00
Jeff Muizelaar
bcf6317ef4 Bug 1217080. Move recycling functionality into RecyclingPlanarYCbCrImage. r=nical
This makes PlanarYCbCrImage abstract and moves the recycling functionality
into RecyclingPlanarYCbCrImage. This decreases the size of
SharedPlanarYCbCrImage and makes it possible for us to do part 3 of bug
1216644.
2015-11-06 13:55:31 -05:00
Benoit Girard
cf1035b664 Bug 1221593 - Don't reset other axis' scroll position during APZ drag. r=kats
--HG--
extra : commitid : Lrtt64KrpO3
extra : rebase_source : 9c2962a1cdfc42ff17e784d5ffab88185439ceec
2015-11-04 13:00:56 -05:00
Benoit Girard
ca56eb47b0 Bug 1221348 - Part 1: Unify crash signatures. r=jrmuizel
--HG--
extra : commitid : JmqLdOjZe0m
2015-11-06 11:54:32 -05:00
Mason Chang
8aa60c20d6 Bug 1221674 - Add telemetry probe in the content process to measure the time between refresh driver ticks. r=kats 2015-11-06 08:20:58 -08:00
Nicolas Silva
8b09e3bc14 Bug 121976 - Add a destruction handshake to PCompositable so as to avoid races between messages and the protocol. r=sotaro 2015-11-06 16:56:03 +01:00
Nathan Froyd
6f23e9f332 Bug 1222175 - initialize base of ScaledFontDWrite before its members; r=Bas
Initializing things in the other order causes warnings on clang-cl.
2015-11-05 15:19:33 -05:00
Botond Ballo
5bf85e9f9d Bug 1220923 - Make nsIntRegion a typedef for IntRegionTyped<UnknownUnits>. r=nical
--HG--
extra : source : 1f371f014048ed4c3c25095233fea927311a7e23
2015-11-04 11:49:49 -05:00
Mike Hommey
4d40edea15 Bug 1221453 - Use AbsolutePaths with LOCAL_INCLUDES instead of manual -I in CXXFLAGS. r=gps 2015-11-06 09:59:21 +09:00
Timothy Nikkel
ae9c7ca837 Bug 1208780. Set a zero-margin displayport on all scrollable ancestors of frames with displayports if they don't already have a displayport. r=botond 2015-11-05 18:57:17 -06:00
Nicholas Nethercote
03f9b8a57c Bug 1222171 - Re-establish equivalence between gfxImageFormat and cairo_format_t. r=mstange.
It would be nice to add static assertions for this equivalence but I don't want
to have to include cairo.h in gfxTypes.h. (Indeed, that's why
gfxImageFormatToCairoFormat and gfxCairoFormatToImageFormat are macros in the
first place).

--HG--
extra : rebase_source : 894fcce51ebbb17283c8f5ad325ea6dd403056cc
2015-11-05 13:44:00 -08:00
Nathan Froyd
e763192040 Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
Benoit Girard
0b2a0eb4b7 Bug 1220895 - Add layerviewer for layer tree & display list visualization NPOTB. r=botond
--HG--
extra : commitid : 7WUfAkbxIOu
2015-11-05 16:23:23 -05:00
Mason Chang
0cb3e0be35 Bug 1221697 - Add a telemetry probe for time-to-composite. r=kats 2015-11-05 10:24:12 -08:00
Mason Chang
1dcb06648d Bug 1211264. Fallback to render dest rect with outer box shadows on non-int transforms. r=mstange 2015-11-05 07:29:52 -08:00
Kartikaya Gupta
c2925e4554 Bug 1221186 - Don't clobber a fling-snap with a snap-to-where-we-are-now in the overscroll handoff chain. r=botond
--HG--
extra : commitid : LhatrEsh6wF
2015-11-05 09:31:39 -05:00
Kartikaya Gupta
fba7cabf57 Bug 1216355 - Ensure that if a repaint request is ignored due to a stale generation number the next repaint request doesn't get dropped. r=botond
--HG--
extra : commitid : 5Zh7BCHsJWF
2015-11-05 09:31:39 -05:00
Chris Lord
b80cfac62c Backout ed2fdc36728d (Bug 1177842) for undesirable behaviour. r=botond 2015-11-05 13:58:16 +00:00
Benoit Girard
339fc50993 Bug 1221276 - Don't crash if we don't have a surface. r=nical 2015-11-03 16:07:02 -05:00
Nicholas Nethercote
4a551425d8 Bug 1221610 - Remove ToIntMargin(). r=jrmuizel.
It's now a no-op.
2015-11-04 09:40:16 -08:00
Timothy Nikkel
528864b6be Bug 1215977. Add a flag for GetNearestScrollable that makes fixed pos frames return the root scroll frame of their document. And make APZCCallbackHelper use it to restore previous behaviour. r=botond
We may want to do this for fixed pos frames in all documents (not just root documents). However, this patch only maintains the previous behaviour on purpose.
2015-11-04 19:51:03 -06:00
Wes Kocher
a6029c8941 Backed out changeset 722e121f6ce6 (bug 1217080) for b2g build failures
--HG--
extra : commitid : HdV0UNFbTFn
2015-11-04 15:39:35 -08:00
Bas Schouten
2ece23a6d8 Bug 1220624: Make MaskSurface properly take into account the possibilities of partial uploads. r=jrmuizel 2015-11-05 00:05:26 +01:00
Jeff Muizelaar
83d63902a7 Bug 1217080. Move recycling functionality into RecyclingPlanarYCbCrImage. r=nical
This makes PlanarYCbCrImage abstract and moves the recycling functionality
into RecyclingPlanarYCbCrImage. This decreases the size of
SharedPlanarYCbCrImage and makes it possible for us to do part 3 of bug
1216644.
2015-11-04 17:40:02 -05:00
Kartikaya Gupta
9c3bee6673 Bug 1141127 - When inside a slop area around the first touchstart, prevent touchmove events from going to content. r=botond
--HG--
extra : commitid : E3IfNyFrc0G
2015-11-04 17:09:52 -05:00
Botond Ballo
ca6ad4ebaa Bug 1220898 - Make nsIntMargin a typedef for mozilla::gfx::IntMargin. r=nical
--HG--
extra : source : a0ebe522b207e15b6b959cce7f7e0ded6d60c1c8
2015-11-02 18:20:58 -05:00
Kartikaya Gupta
1ca49c085c Bug 1194546 - Ensure that the timeout to allow the transaction to expire waits long enough. r=botond
--HG--
extra : commitid : C6hifevCLzO
2015-11-04 14:23:14 -05:00
Kartikaya Gupta
489b582b4b Bug 1194546 - Wait for the layer tree to reach the compositor before starting to scroll. r=botond
--HG--
extra : commitid : 6C8iDPDIm8E
2015-11-04 14:21:06 -05:00
Jonathan Kew
f2f1669512 Bug 1220591 - Update graphite2 to release 1.3.4. r=jdaggett 2015-11-04 07:07:15 +00:00
Benoit Girard
0f1d97ed61 Bug 1220853 - Notify wheel transaction of mouse move when using async dragging. r=kats
--HG--
extra : commitid : Aw8xxcgcHKF
2015-11-03 14:21:35 -05:00
Kartikaya Gupta
bc977a5380 Bug 1141884 - Rename ResetInputState and make it only apply to touch events. r=botond
In particular, we want to prevent requesting a snap in the scenario that a wheel
block gets prevent-defaulted. In general the function is really only relevant
for touch input and there's no need to run it for other types of input.

--HG--
extra : commitid : oBr4VmShHv
2015-11-03 14:21:40 -05:00
Mats Palmgren
7920856c17 Bug 1151214 part 3 - [css-grid][css-align] Implement layout for the 'justify-content' and 'align-content' CSS properties on grid containers. r=dholbert 2015-11-03 17:52:40 +01:00
Kartikaya Gupta
6f1fa89293 Bug 1213120 - Ensure we don't try to use an uninitialized map. r=BenWa
--HG--
extra : commitid : KBCIVOZsVmU
2015-11-03 11:12:46 -05:00
Nicolas Silva
1ebb1e2bb7 Bug 1219330 - Handle PlanaYCbCrImage::SetData failure. r=jya, jesup 2015-11-03 12:24:26 +01:00
Mason Chang
d8ac6a8660 Bug 1216506. Properly initialize min inset box shadow color to black. r=mstange 2015-11-02 13:30:03 -08:00
Ryan VanderMeulen
df7b938aec Bug 691581 - Add crashtest. 2015-10-31 21:43:42 -04:00
Jonathan Kew
9adf8fcb59 Bug 691581 - Don't let a zero-sized font result in assertions from FUnitsToDevUnitsFactor(). r=jdaggett 2015-11-02 08:36:50 +00:00
Jeff Muizelaar
4378d52fe9 Bug 1220673 - Make DrawTargetCG::Mask() MOZ_CRASH
It's not completely implemented so we should crash early rather than have
people use it by mistake.

--HG--
extra : rebase_source : c28b5ea6126d2c68e40272b8e4267671ec4e5830
2015-11-02 10:13:09 -05:00
Nigel Babu
4988137d3e Backed out changeset 6e7658cff5f5 (bug 691581) for upcoming bustage 2015-11-02 16:13:42 +05:30
Nigel Babu
85f5cfc5cf Backed out changeset 5cf33dcba0d0 (bug 691581) for upcoming bustage 2015-11-02 16:13:36 +05:30
Boris Chiou
b2d9321540 Bug 1108055 - Part 2: Refine ComputedTiming. r=birtles
Do some minor revisions in struct ComputedTiming.
1. Use Nullable<double> mProgress, so remove the static const kNullProgress.
   The generated ComputedTimingProperties dictionary uses "Nullable" variable,
   so we replace the origin type in ComputedTiming to make it more consistent
   with that in ComputedTimingProperties dictionary.
2. Use scoped enums for AnimationPhase.

--HG--
extra : rebase_source : 31280c867a30e7bcdcfe831cbc72ca08c8ddc762
2015-10-19 00:38:00 +02:00
Ryan VanderMeulen
ce9e75cf5f Bug 691581 - Add crashtest. 2015-10-31 21:43:42 -04:00
Jonathan Kew
ee894e88f7 Bug 691581 - Don't let a zero-sized font result in assertions from FUnitsToDevUnitsFactor(). r=jdaggett 2015-11-02 08:36:50 +00:00
Birunthan Mohanathas
9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Jeff Muizelaar
d267b10514 Bug 1209812 (part 5) - Add endian-neutral variants to SurfaceFormat. r=nical,Bas.
--HG--
extra : rebase_source : 9726a7a1e70dc2a8341415b69f4b7322e4274fee
2015-10-18 21:53:40 -07:00
Robert O'Callahan
2d8cd33dc4 Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.

--HG--
extra : commitid : 42YjYQUaiwY
extra : rebase_source : 69d3a9c5086c116365a0488d1b4fc52fc6524196
2015-10-30 19:23:10 +13:00
Thinker K.F. Li
2a3f9839c2 Bug 1211360 - Don't snap for non-translation 3D transform. r=roc
--HG--
extra : histedit_source : 7515376b0eb76c7957adce0fc37cc5bb52361de5
2015-10-25 22:05:00 -04:00
Ryan VanderMeulen
870eec83f5 Bug 699563 - Add crashtest.
--HG--
extra : rebase_source : 7751d2e89933a19588523f400ff3bff291dad1e2
2015-11-01 07:23:24 -05:00
Ryan VanderMeulen
389957babc Bug 696936 - Add crashtest.
--HG--
extra : rebase_source : 7b5a7d1c0413e9410c44f169c914e8b514ec741a
2015-11-01 07:23:24 -05:00
Ryan VanderMeulen
323b661160 Bug 675550 - Add crashtest.
--HG--
extra : rebase_source : 5bf99f8b88246e6f92a6cb45ef20e57f87985612
2015-11-01 07:23:23 -05:00
Ryan VanderMeulen
4368ca7af0 Bug 662467 - Add crashtest.
--HG--
extra : rebase_source : 62b93a04016843fdfeb46ee020e1c7dd991427cb
2015-11-01 07:23:23 -05:00
Ryan VanderMeulen
028dec7cc8 No bug - Various crashtest manifest cleanups.
--HG--
rename : dom/base/crashtests/713417.html => dom/base/crashtests/713417-1.html
rename : dom/workers/test/1158031.html => dom/workers/test/crashtests/1158031.html
rename : dom/workers/test/779707.html => dom/workers/test/crashtests/779707.html
rename : dom/workers/test/943516.html => dom/workers/test/crashtests/943516.html
rename : dom/workers/test/crashtests.list => dom/workers/test/crashtests/crashtests.list
rename : layout/generic/crashtests/812879.html => layout/generic/crashtests/812879-1.html
rename : layout/generic/crashtests/first-letter-638937.html => layout/generic/crashtests/first-letter-638937-1.html
extra : rebase_source : b9274dc6870030ed62bcee35350d566160502869
2015-10-31 19:35:27 -04:00
Nicholas Nethercote
3d0821d5fd Bug 1219476 (part 5) - Replace PRLogModuleInfo usage with LazyLogModule in gfx/. r=erahm.
--HG--
extra : rebase_source : c39ecc84dbe9a0f94b42f1c78dabf346ce3a3b9e
2015-10-29 15:58:24 -07:00
Nicholas Nethercote
c4f06efc4b Bug 1219476 (part 4) - Replace PRLogModuleInfo usage with LazyLogModule in gfx/. r=erahm.
--HG--
extra : rebase_source : 5cfe22112d606a50459212048fd69702afbb6d6d
2015-10-29 15:48:20 -07:00
Nicholas Nethercote
d932f3e261 Bug 1219476 (part 3) - Replace PRLogModuleInfo usage with LazyLogModule in gfx/. r=erahm.
--HG--
extra : rebase_source : 58323047fe8b571cd312120acb6c9adb8b7a3b2c
2015-10-29 15:44:31 -07:00
Nicholas Nethercote
aec7b30712 Bug 1219476 (part 2) - Replace PRLogModuleInfo usage with LazyLogModule in gfx/. r=erahm.
--HG--
extra : rebase_source : 39411a317fb5a0e44411da9e4517053f5c44b72a
2015-10-29 15:34:06 -07:00
Nicholas Nethercote
d3b5a35826 Bug 1219476 (part 1) - Replace PRLogModuleInfo usage with LazyLogModule in gfx/. r=erahm.
--HG--
extra : rebase_source : 387c369dfdca8e5cca98dacf9ef97cd0b298d0c9
2015-10-28 20:45:42 -07:00
Timothy Nikkel
8b69679137 Bug 1220004. mozInnerScreenX/Y is in CSS pixels, not device pixels. Fix usage of it in apz test utils. r=botond 2015-11-01 11:45:40 -06:00
Jeff Muizelaar
53e0c67402 Bug 1213431. Support using Core profile for WebGL2 on Linux. r=jgilbert
Mesa won't give us a version of OpenGL newer than 3.0 without core profile
2015-10-22 10:49:06 -04:00
Phil Ringnalda
a11db4c721 Back out changeset 5b1a9f0706de (bug 1213431) on suspicion of causing Mulet bustage in webgl-capturestream-test.html?preserve 2015-10-31 13:33:41 -07:00
Jeff Muizelaar
9838c19be9 Bug 1213431. Support using Core profile for WebGL2 on Linux. r=jgilbert
Mesa won't give us a version of OpenGL newer than 3.0 without core profile

--HG--
extra : rebase_source : 257452a7d9329430c8639a2c3ddff647a1ab4768
2015-10-22 10:49:06 -04:00
Kartikaya Gupta
b4cf5cc4aa Bug 1219898 - Remove use of gPreventMouseEvents in APZ event state-tracking code. r=botond
--HG--
extra : commitid : 3raJl95nr6q
2015-10-30 22:22:28 -04:00
Wes Kocher
59aa271131 Merge m-c to inbound, a=merge
--HG--
rename : webapprt/application.ini.in => webapprt/webapprt.ini
extra : commitid : BR0bpNo1yny
2015-10-30 16:57:55 -07:00
Wes Kocher
d31ed2617b Merge inbound to central, a=merge
--HG--
extra : commitid : GwjoFY5dx7Q
2015-10-30 16:35:46 -07:00
Nicolas Silva
07d26fbeb6 Bug 1219330 - Prevent the creation of TextureClient after shutdown. r=mattwoodrow 2015-10-30 13:25:29 +01:00
Markus Stange
030313a222 Bug 1216248 - Recomposite when the window overlay changes. r=mattwoodrow
--HG--
extra : commitid : JX5QiGz9HSG
extra : rebase_source : 7330073386d25c112cf1c0056383520a0bcf0e0b
extra : amend_source : 66cc16e8ad0ca361c3f9c25814d00ec5df4b169d
2015-10-30 11:49:07 +01:00
Markus Stange
76845de322 Bug 1217168 - Respect layer clip rects during plugin visibility computation. r=jimm
--HG--
extra : commitid : EAwkrjTK38j
extra : rebase_source : cfd8574444637eb284f11f9320530f386b3e52e4
2015-10-27 21:06:57 +01:00
Benoit Girard
248608a940 Bug 1219929 - Fix bad MouseInputData case. r=me 2015-10-29 17:36:05 -04:00
Milan Sreckovic
33b10a1074 Bug 1214802 - gfxEnv - consolidate environment variables used by the graphics code in one place. r=botond 2015-10-28 14:31:00 +01:00
Chris Peterson
0bd9ccc913 Bug 1215898 - Fix clang's -Wimplicit-fallthrough warnings in gfx/thebes. r=jdaggett r=jmuizelaar
gfx/thebes/gfxContext.cpp:1415:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/thebes/gfxContext.cpp:1419:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/thebes/gfxFont.cpp:473:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/thebes/gfxFont.cpp:481:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/thebes/gfxFont.cpp:2999:13 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/thebes/gfxTextRun.cpp:1720:13 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-17 13:28:05 -07:00
Matt Woodrow
9ebdab0d64 Bug 1205913 - Differentiate YCbCr, NV12 and RGB textures when drawing layer borders. r=nical
--HG--
extra : rebase_source : 07e21d92965390711da32ab5ae8d797c1aeb98d8
2015-10-23 12:51:20 +13:00
Benoit Girard
698006ddf9 Bug 1211612 - Add DragInputBlock for async scrollbars. r=kats
--HG--
extra : commitid : Grx9aF2UvH2
extra : rebase_source : ea2601a2a3ac2870383fa86d8e7bd90342424ce1
2015-10-26 16:06:49 -04:00
Carsten "Tomcat" Book
e3543211df Backed out changeset 94df1f873f5c (bug 1205913) 2015-10-29 13:52:14 +01:00
Jamie Nicol
5c01194ba1 Bug 1218395 - Avoid calling AddFlags from SharedSurfaceTextureClient constructor. r=milan
Instead pass the flags to the parent constructor.
2015-10-28 11:57:55 +13:00
Milan Sreckovic
d0d73eaf51 Bug 1204922 - More information about crashes. r=bas 2015-10-27 14:11:00 +01:00
Matt Woodrow
e0436217a8 Bug 1205913 - Differentiate YCbCr, NV12 and RGB textures when drawing layer borders. r=nical
--HG--
extra : rebase_source : cc0245929183231291f6fbb49bb7270a0a1e58e4
2015-10-23 12:51:20 +13:00
Nicholas Nethercote
a91e1ff9e9 Bug 1209812 (follow-up) - Android bustage fix on a CLOSED TREE. r=me.
--HG--
extra : rebase_source : d498b7d5d5833fc09d4367ec67e3c2a7f2ec6e47
2015-10-28 19:33:16 -07:00
Nicholas Nethercote
0cfefe7558 Bug 1209812 (part 4) - Add comments to SurfaceFormat. r=jrmuizel,Bas.
--HG--
extra : rebase_source : fd76bbda2698ab495d3f0c428e9a40e89faadcec
2015-10-22 23:04:40 -07:00
Nicholas Nethercote
a34d272e2b Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
Mason Chang
9e9747858c Backout bug 842894 for lack of skia documentation. r=me 2015-10-28 15:17:04 -07:00
Mason Chang
f9083bce99 Bug 842894 - Support DirectWrite using the Skia backend. r=bas 2015-10-28 14:54:54 -07:00
Kartikaya Gupta
c65eaafded Bug 1219391 - Request snapping for the entire handoff chain when ending the fling animation. r=botond
--HG--
extra : commitid : 6yaFBO8ZuY
2015-10-28 15:39:13 -04:00
Botond Ballo
4797e62ace Bug 1218618 - Assert that the hit-testing tree's root node doesn't have siblings. r=kats
--HG--
extra : source : 94dc564a7dd0b93e22e60395391b4b951b09c002
2015-10-28 15:27:35 -04:00
James Willcox
7a528d20d4 Bug 1213968 - Renew the surface on iOS when resuming the compositor r=kats 2015-10-28 14:10:28 -05:00
James Willcox
7fa8522446 Bug 1213970 - Enable APZ on iOS r=kats 2015-10-28 14:10:27 -05:00
James Willcox
7d70fe180b Bug 1208513 - Add support for GL_APPLE_sync r=jgilbert 2015-10-28 14:10:26 -05:00
Jeff Gilbert
9665b9e0c3 Bug 1207672 - Add support for APPLE_framebuffer_multisample r=snorp 2015-10-28 14:10:26 -05:00
James Willcox
faa1a44adb Bug 1208513 - Resurrect SharedSurface_GLTexture for use on iOS r=jgilbert 2015-10-28 14:10:25 -05:00
James Willcox
435adc1361 Bug 1174703 - Add GLContextEAGL and GLContextProviderEAGL as an OpenGL provider for iOS. r=jgilbert 2015-10-28 14:10:25 -05:00
Ted Mielczarek
fc136257e3 bug 1170987 - Fix gfx/2d to build on iOS. r=jrmuizel 2015-10-28 14:10:24 -05:00
Kartikaya Gupta
e9975e4779 Bug 1190469 - Request scroll snapping in a few places that animations are cancelled so that we don't leave things unsnapped. r=botond
--HG--
extra : commitid : E2vwH6RDvR5
2015-10-28 14:02:36 -04:00
Kartikaya Gupta
731d7a9cdf Bug 1190469 - Refactor some code to have a general-purpose snap function available in APZC. r=botond
--HG--
extra : commitid : FuJ8LNkJWKv
2015-10-28 14:02:33 -04:00
David Anderson
0a8c03ba8e Remove Windows-specific synchronous plugin drawing code. (bug 1218688 part 1, r=jimm) 2015-10-28 10:50:36 -07:00
David Anderson
7e275205ba Use compositor clip rects, not client clip rects, when computing the compositor's backbuffer damage region. (bug 1189159, r=mattwoodrow) 2015-10-28 10:22:16 -07:00
Kartikaya Gupta
823c68c255 Bug 1217818 - Ignore injected touchstart events for the purposes of prevent-default notifications back to APZ. r=botond
--HG--
extra : commitid : Gf3wynm1xt9
2015-10-28 12:53:52 -04:00
Kartikaya Gupta
eee88093b7 Bug 1217818 - Add support for the mHandledByAPZ flag on touch events as well. r=botond
--HG--
extra : commitid : Dcfgar8CZOi
2015-10-28 12:53:34 -04:00
Kartikaya Gupta
792a61aa26 Bug 1217818 - Add some more logging to more easily diagnose issues. r=botond
--HG--
extra : commitid : 7BLbPMQX8g2
2015-10-28 12:52:54 -04:00
Kartikaya Gupta
19ae3d2b17 Bug 1217818 - Minor refactoring to reuse a function. r=botond
--HG--
extra : commitid : 3KFxfvP88Fq
2015-10-28 12:52:54 -04:00
Nathan Froyd
ce836868f3 Bug 1218488 - clarify buffer ownership for nsICanvasRenderingContextInternal::GetBuffer; r=Bas,baku
This patch started life as making ImageEncoder.cpp:EncodingRunnable not
use nsAutoArrayPtr, but the API effects rippled out from there.  On the
whole, I think using UniquePtr throughout has made the code clearer.
2015-10-26 14:31:12 -04:00
Sotaro Ikeda
e95d404678 Bug 1216056 - Always sent OpRemoveTextureAsync as pending async Messages r=nical 2015-10-28 04:04:28 -07:00
Sotaro Ikeda
963cb70aca Bug 1218617 - Invalidate whole widget area after external composition r=mattwoodrow 2015-10-27 22:56:27 -07:00
Benoit Girard
5b68a8adf7 Bug 1097321 - Add layers.amd-switchable-gfx.enabled pref. r=jrmuizel
--HG--
extra : commitid : 4X1a35Dm5sB
extra : rebase_source : 9d5a51da0f7f4697edb164a23a24698285c9b704
2015-10-20 12:58:11 -07:00
Benoit Girard
683a6134f1 Bug 1097321 - Fix DoesD3D11TextureSharingWorkInternal to handle Intel/AMD configurations. r=Bas
--HG--
extra : commitid : KG1A26LEJqD
extra : rebase_source : 982cc4c8ad3ca75c36d068a33faabe25afb50a3e
2015-10-08 14:20:22 -07:00
Nicolas Silva
91b4564002 Bug 1194775 - Paper over a crash in ContentClient. r=Bas 2015-10-27 18:21:58 +01:00
David Anderson
8dd3b854fb Compute the compositor's damage region before composites, rather than layers updates. (bug 1217560, r=mattwoodrow) 2015-10-27 10:15:02 -07:00
Ryan VanderMeulen
21f2ea8cd2 Bug 595042 - Add crashtest. 2015-10-27 10:03:38 -04:00
Ryan VanderMeulen
b937bbca1e Bug 563740 - Add crashtest. 2015-10-27 10:03:38 -04:00
Ryan VanderMeulen
59d9eef23c Bug 516512 - Add crashtest. 2015-10-27 10:03:38 -04:00
Nicolas Silva
fbb1c0bfe7 Bug 1211204 - Remove possible false-negative with D3D9 texture memory reporting. r=mattwoodrow 2015-10-27 11:58:05 +01:00
Milan Sreckovic
3ac5f098a5 Bug 1217550 - In debug build, drop a note if we use SkiaGL canvas. Simplify logging defines and flags for non-critical errors. r=benwa 2015-10-23 14:08:00 +02:00
Sotaro Ikeda
d7e0a22d6a Bug 1210182 - Implement GrallocTextureHostBasic r=nical 2015-10-26 22:43:07 -07:00
Xidorn Quan
53b6bfd6d2 Bug 962249 part 2 - Add Edge() helper method to BaseRect. r=roc
--HG--
extra : source : 4b1e87fe574699d40f1c949d2347ecf30eb5b065
2015-10-27 13:38:02 +09:00
Benoit Girard
f8f963415c Bug 618898 - Part 1: Add WGL_NV_DX_interop. r=jgilbert
--HG--
extra : commitid : FJV7vRoMesT
2015-10-08 16:36:58 -04:00
Chris Lord
e31fb8cd6d Bug 1177842 - Introduce separate friction for fling-snap. r=botond
--HG--
extra : rebase_source : 1ce9d27b5208622a9ba14be4b684116adbc6c453
2015-10-26 18:04:02 +00:00
Kartikaya Gupta
3f91f07360 Bug 1218160 - Fix a build error with some compiler versions on OS X. r=froydnj
--HG--
extra : commitid : ESxduyz6cYH
2015-10-26 13:25:25 -04:00
Jonathan Kew
d4e4f3b6aa Bug 1215428 - Update harfbuzz to release 1.0.6. r=jdaggett 2015-10-26 13:38:12 +00:00
Daosheng Mu
94cce5d8aa Bug 1215143 - FF Android VR returns orientation that is 90deg off on x-axis. r=vlad 2015-10-28 09:18:00 +01:00
Jonathan Kew
a48628058f Bug 1216427 - part 1 - Ensure a character+VS sequence or a ligated Regional-Indicator flag symbol is deleted as a single unit when backspacing. r=emk 2015-10-26 10:47:16 +00:00
Jamie Nicol
9e4ff3bb0b Bug 1210351 - Limit maximum computed tile size to 512x512. r=snorp
Larger tiles than that were causing some performance regressions and
increased memory usage, so are not deemed worthwhile.
2015-10-22 17:08:51 +01:00
Sotaro Ikeda
29259a9e77 Bug 1215364 - Implement BasicCOmpositor::EndFrameForExternalComposition r=nical 2015-10-25 22:41:57 -07:00
Bas Schouten
df2cb10dd3 Bug 1216349: Upload the old valid region as well if our texture host changed. r=nical 2015-10-25 16:00:59 +01:00
Ryan VanderMeulen
4706edf172 Bug 710149 - Add crashtest. 2015-10-25 00:06:23 -04:00
Ryan VanderMeulen
6454e0e49b Bug 557348 - Add crashtest. 2015-10-25 00:06:23 -04:00
Chris Peterson
8300ac181a Bug 1215901 - Suppress more clang and gcc warnings in gfx/angle. r=jgilbert 2015-10-17 13:29:16 -07:00
Botond Ballo
e2037b8b38 Bug 1217251 - In TaskThrottler, dispatch the timeout task correctly from the Java UI thread on Android. r=kats
--HG--
extra : source : 4d35b236cec7651049af00eac2dd38ba868c6cdd
2015-10-22 16:46:11 -04:00
Botond Ballo
534b661e0d Bug 1217251 - Add APZThreadUtils::RunDelayedTaskOnCurrentThread(). r=kats
--HG--
extra : source : 2f201dbbe6417bd41d616a5dcebc7a72f6918a6a
2015-10-22 16:45:26 -04:00
Robert O'Callahan
0e2b65352f Revert incorrectly committed changes ab657569f554 and a396f4262479
--HG--
extra : commitid : IHQ60dccnSZ
extra : amend_source : 9302339fd951446a37909b31a1ccb56aff470325
2015-10-24 22:38:22 +13:00
Robert O'Callahan
ff38db98f3 Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.

--HG--
extra : commitid : Dn0U0KPLfbY
extra : rebase_source : 57a6ad2e3ba1f7ec6aef9b940d8facdbba7e9c91
2015-10-24 22:27:29 +13:00
Wes Kocher
dd50b531bf Bug 1217963 - Correct the spelling of "corect" rs=mossop
--HG--
extra : commitid : KIXf5DKKRrc
extra : source : 3f3fbf4e7a52b1bbb2848edd65eaacc7282b1a01
2015-10-23 16:02:56 -07:00
Nathan Froyd
ef1d3171d0 Bug 1217941 - remove <iomanip> from ScaleFactors2D.h; r=jrmuizel
We don't use any <iomanip> functions in this header.
2015-10-23 14:07:36 -04:00
Thinker K.F. Li
fd72ecbc34 Bug 1214212 - Remove clips from separator transform items. r=roc 2015-10-22 23:29:00 -04:00
Nathan Froyd
9f16f39c05 Bug 1217662 - part 6 - remove Layers.h #include from FrameListBuilder.h; r=mattwoodrow
This change necessitates a few other header changes around the tree:
either places that we relying on FrameLayerBuilder.h to #include
ImageLayers.h for them, or places that were bootlegging headers from
ImageLayers.h.
2015-10-22 17:02:14 -04:00
Nathan Froyd
6ce5981d38 Bug 1217662 - part 4 - move {LayerManager,Layer}::RemoveUserData out-of-line; r=mattwoodrow
Having these out-of-line means that we don't have to have
LayerUserData's destructor in scope for the destruction of the local
nsAutoPtr.  This change will enable us to forward-declare LayerUserData
in Layers.h and thereby encourage people to use the correct header for
LayerUserData.
2015-10-22 16:57:29 -04:00
Nathan Froyd
735e488da3 Bug 1217662 - part 2 - move mozilla::layers::LayerUserData to a separate header; r=mattwoodrow
Having to include all of Layers.h just to get at the definition of
LayerUserData is inconvenient, especially as most of the interesting
things in Layers.h can be forward-declared.  Let's move LayerUserData to
its own header, so clients can include a small header for that,
forward-declare anything else they need from Layers.h, and reduce header
bloat.
2015-10-22 16:04:35 -04:00
Nathan Froyd
7699d5d9c4 Bug 1217662 - part 1 - make LayerManagerUserDataDestroy a static function of LayerManager; r=mattwoodrow
LayerManagerUserDataDestroy is a static function in Layers.h that we
only ever take a pointer to, to use it as a destruction function for
gfx::UserData.  It's *possible* the compiler is smart enough to call it
directly, rather than through the function pointer stored in
gfx::UserData, but that seems highly unlikely.  And
LayerManagerUserDataDestroy does a virtual call anyway, so it's not as
though it being inlined is particularly important.

All of this is to say that we don't need to define
LayerManagerUserDataDestroy in Layers.h; defining it out-of-line will be
just as effective.  Defining it out-of-line also means that we don't
need the definition of LayerUserData anywhere in Layers.h, and we can
move LayerUserData to a separate header.
2015-10-22 15:39:30 -04:00
Xidorn Quan
c62bff4099 Bug 1206468 - Remove unused internal appearance value -moz-mac-unified-toolbar. r=mstange
--HG--
extra : source : adbf31ddaea4d289f6a6a226a112f73cd3d8391f
2015-10-23 19:51:34 +11:00
Milan Sreckovic
dd6aa8383f Bug 1217192 - Use gfxCriticalNote where we're already using the non-default construction parameter. r=mchang 2015-10-21 14:34:00 +02:00
Mason Chang
857d67f29e Bug 1216200. Correct for negative spread values with inset box shadows. r=mstange 2015-10-22 15:50:25 -07:00
Phil Ringnalda
0f3cf4490c Back out changeset 02d17c84afff (bug 1214212) for (mostly) transform-3d reftest failures
CLOSED TREE
2015-10-21 20:22:45 -07:00
Nicholas Nethercote
abeada522e Bug 1209812 (part 2) - Remove gfxImageFormat::A1. r=nical.
This value is never written anywhere, so it's not needed, and gfx::Surface
doesn't have an equivalent.

--HG--
extra : rebase_source : 721db7717644b32e47d5698a750463394a9895ae
2015-09-28 12:07:44 -07:00
Nicholas Nethercote
6673e03780 Bug 1209812 (part 1) - Remove casts between cairo_format_t and gfxImageFormat. r=nical.
cairo_format_t and gfxImageFormat have their equivalent constants in the same
order, so you can just cast between them, which is kind of nasty.

This patch replaces all such casts with explicit conversions via calls to new
conversion functions. These functions will be removed in a subsequent patch.

--HG--
extra : rebase_source : ca11568fc06ac48f0e7ca409d4dc01b9192c9e83
2015-09-28 21:11:52 -07:00
Lee Salzman
4de7b1c5de Bug 1205854 - Workaround for Windows printer drivers that can't handle swapped X and Y axes. r=jrmuizel 2015-10-21 17:56:25 -04:00
Thinker K.F. Li
517b105b08 Bug 1214212 - Remove clips from separator transform items. r=roc 2015-10-21 03:35:00 -04:00
Jim Mathies
176b60b4a8 Bug 1213671 - CompositorParent::UpdatePluginWindowState should always return an accurate result indicating when an ipc request for plugin geometry updates was sent. r=roc 2015-10-21 17:27:48 -05:00
Wes Kocher
312565be9b Backed out changeset 2bc866307e4b (bug 1189159) for browser_animation_* permafail 2015-10-21 13:42:05 -07:00
Wes Kocher
bcce985327 Backed out 2 changesets (bug 1205854) for apparently breaking a bunch of reftests, causing a CLOSED TREE
Backed out changeset aa291bcfb0e8 (bug 1205854)
Backed out changeset cbd0b9619978 (bug 1205854)
2015-10-21 11:20:07 -07:00
Lee Salzman
d31ab38281 Bug 1205854 - Initialize variable in _cairo_matrix_transformed_circle_major_axis.
CLOSED TREE

--HG--
extra : amend_source : 5644bded8302d97a9fcf50738950fd4e2e1419ff
2015-10-21 12:48:58 -04:00
Lee Salzman
6b93ba2439 Bug 1205854 - Workaround for Windows printer drivers that can't handle swapped X and Y axes. r=jrmuizel
--HG--
extra : histedit_source : 03180d1b57d978be70be0feb2dbb167b52e49fcf%2C352058d1d245f67feaea2a925ff7dac116390dab
2015-10-20 13:38:57 -04:00
Jamie Nicol
65912b35e8 Bug 1210444 - Set DEALLOCATE_CLIENT flag for EGLImage SharedSurfaceTextureClients. r=nical
SharedSurface_EGLImages are deallocated on the client side and are
unable to be recycled. This led to a race condition where CanvasClient
would free a TextureClient, destroying its underlying data, but
ImageHost might attempt to composite the corresponding TextureHost
before receiving a replacement to use instead.

Give SharedSurface an interface for its backends to specify any texture
flags that they require a TextureClient to set, and ensure that
DEALLOCATE_CLIENT is set for SharedSurface_EGLImage
SharedSurfaceTextureClients. This ensures that texture data is destroyed
synchronously and, importantly, after any outstanding ipdl messages have
been delivered. This guarantees that ImageHost has received a new
TextureHost to composite before the previous TextureHost's data is
destroyed.
2015-10-19 17:26:26 +01:00
Chris Peterson
662a258a78 Bug 1215900 - Fix clang's -Wimplicit-fallthrough warnings in gfx/ipc/GfxMessageUtils.h. r=mstange
GfxMessageUtils.h:968:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:969:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:970:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:971:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:972:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:973:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:974:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:975:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:976:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:977:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:981:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-17 22:53:03 -07:00
David Anderson
7c417e6071 Layer tree invalidation should use the effective clip rect, not the base clip rect. (bug 1189159, r=mattwoodrow)
--HG--
extra : rebase_source : 46b7f5e0e8c7116577f541d82a2c58ce0743262c
2015-10-20 22:59:10 -07:00
Mike Hommey
3de00b45dd Bug 1216444 - Remove GKMEDIAS_SHARED_LIBRARY. r=mshal
In bug 922912, we folded back gkmedias.dll info xul.dll, so in practice, there
is no default configuration left that exercises GKMEDIAS_SHARED_LIBRARY. And
sure enough, it's been broken for months in many different ways.

The gkmedias intermediate library is however kept for webrtc signaling tests.
2015-10-21 14:47:22 +09:00
Geoff Brown
138ed9d07e Bug 1216304 - Skip gfx/tests/crashtests/815489.html on Android for frequent OOM failures; r=me 2015-10-20 08:17:15 -06:00
David Anderson
fb84bcaa55 Fix scrollbars on subframes not directing APZ events to the correct scrollframe. (bug 1213324, r=tn) 2015-10-20 02:39:34 -07:00
Jeremy Chen
5633e63929 Bug 1205521 - Part4: (v2) Align LayerScopePacket to fit changes in Bug 1211324. r=dglastonbury 2015-10-18 20:37:00 +02:00
Jeremy Chen
1665f755fd Bug 1205521 - Part3: (v3) Dump texture/mask attributes on layerscope viewer. r=dglastonbury 2015-10-20 02:05:00 +02:00
Jeremy Chen
9863e0ecbd Bug 1205521 - Part2: (v3) Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury 2015-10-18 20:32:00 +02:00
Jeremy Chen
75ecd3c095 Bug 1205521 - Part1: (v3) Add texture/mask attribute fields in LayerScopePacket.proto. r=dglastonbury 2015-10-18 20:31:00 +02:00
Botond Ballo
b73c1c58f3 Bug 1213273 - Use a chromium Task instead of an nsITimer for the timeout in TaskThrottler. r=mstange
--HG--
extra : rebase_source : 2ddc7714fff1d62aa394332fdafd8c2e5c97b065
extra : source : 00f7757e184487dc77e1be0e07ef7c4e9360e6c3
2015-10-16 19:00:15 -04:00
Carsten "Tomcat" Book
65d8ab26f0 Backed out 4 changesets (bug 1205521) for bustage
Backed out changeset 2a3c00d122c5 (bug 1205521)
Backed out changeset e8769c3e5d4f (bug 1205521)
Backed out changeset 1ff444636fbd (bug 1205521)
Backed out changeset 4ae51f091661 (bug 1205521)

--HG--
extra : rebase_source : cf4f338aa3043706c9fec37d2194b967d65ecaff
2015-10-20 10:45:31 +02:00
Botond Ballo
c132f32fc8 Bug 1213762 - Clear AsyncCompositionManager::mIsFirstPaint on non-Android platforms, too. r=mstange
--HG--
extra : rebase_source : 86e4c9b185c9d5a0b57cc12099326008a5b08a55
extra : source : 84dbb629686454ce74c7cdf1ea18866f703a0b4d
2015-10-16 18:33:35 -04:00
Sotaro Ikeda
10f1bcce89 Bug 1206763 - Enable SkiaGL canvas on gonk r=mattwoodrow 2015-10-20 01:35:00 -07:00
Jeremy Chen
b6f12e730b Bug 1205521 - Part4: (v2) Align LayerScopePacket to fit changes in Bug 1211324. r=dglastonbury
--HG--
extra : rebase_source : b26b76d31d3b4f3892269ae3741e73c6228e99d9
2015-10-18 20:37:00 +02:00
Jeremy Chen
0c5e2a9391 Bug 1205521 - Part3: (v3) Dump texture/mask attributes on layerscope viewer. r=dglastonbury
--HG--
extra : rebase_source : b89af8a8a1386b39ef872cbd0c4e2e9ef41e507a
2015-10-18 20:36:00 +02:00
Jeremy Chen
8906d8f27b Bug 1205521 - Part2: (v3) Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury
--HG--
extra : rebase_source : 55a852d755a487c83b01710d20c97fbfbb67e2b5
2015-10-18 20:32:00 +02:00
Jeremy Chen
ab22c82587 Bug 1205521 - Part1: (v3) Add texture/mask attribute fields in LayerScopePacket.proto. r=dglastonbury
--HG--
extra : rebase_source : 7f9910527bcf69682e2687eac460a2c28caf3001
2015-10-18 20:31:00 +02:00
Benoit Girard
6b9d783414 Bug 1216287 - Properly invalidate the debug overlay. r=mattwoodrow
--HG--
extra : commitid : 7FvAQbZecjW
2015-10-19 18:03:48 -04:00
Nicholas Nethercote
5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
Chris Peterson
716d1bd0e2 Bug 1215899 - Suppress clang and gcc warnings in gfx/skia. r=gw280 2015-10-16 22:24:19 -07:00
Mason Chang
1ff080fe8c Bug 1213545. Carry x,y offsets with inset box shadows. r=mstange 2015-10-19 10:53:04 -07:00
Ehsan Akhgari
ecda739d3e Bug 1216177 - Remove the remaining nsRefPtr forward declarations; r=froydnj 2015-10-19 12:02:14 -04:00
Jim Mathies
e0c25a9459 Bug 1213758 - Aquire the inderect layer trees data lock during plugin window update calculations. r=matt.woodrow 2015-10-19 10:38:42 -05:00
Carsten "Tomcat" Book
2d4d0c922a Merge m-c to mozilla-inbound 2015-10-19 11:40:29 +02:00
Carsten "Tomcat" Book
b4d42f370a merge mozilla-inbound to mozilla-central a=merge 2015-10-19 11:38:22 +02:00
Carsten "Tomcat" Book
677b50bca2 merge b2g-inbound to mozilla-central a=merge 2015-10-19 11:30:00 +02:00
Cervantes Yu
42c0446d71 Bug 1213795, Part 2: Fix protocol cloning of actor CrossProcessCompositorParent. r=khuey 2015-10-19 14:32:47 +08:00
Chris Peterson
7aaa6c74c3 Bug 1215892 - Fix clang's -Wimplicit-fallthrough warnings in gfx. r=BenWa
gfx/gl/GLBlitHelper.cpp:395:13 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

gfx/layers/apz/src/AsyncPanZoomController.cpp:1087:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/src/AsyncPanZoomController.cpp:1196:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/src/GestureEventListener.cpp:411:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/util/APZEventState.cpp:292:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/layers/apz/util/APZEventState.cpp:295:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels

widget/GfxInfoBase.cpp:1015:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-17 22:57:38 -07:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Botond Ballo
e235e119a9 Bug 1211506 - Respect the APZ lock ordering in AsyncPanZoomController::OnScrollWheel(). r=mstange
--HG--
extra : source : af0360acd0fa65d7bd526339212a909884afa40c
2015-10-16 16:33:41 -04:00
James Kitchener
1c9740d59e Bug 1011020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc (relanding with correct bug number, DONTBUILD) 2015-10-17 10:18:00 -07:00
Phil Ringnalda
31d432d507 Back out changeset 2fe5dee8825d (not 1101020) for landing with the wrong bug number 2015-10-17 21:44:43 -07:00
James Kitchener
9faa73de5f Bug 1101020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc 2015-10-17 10:18:00 -07:00
Bill Gianopoulos
3ac18fde52 Bug 1213339 - Fix logic in WantsSmallTiles. r=nical
--HG--
extra : rebase_source : 8affe1d0e34f452defc7ba95cd2c4f354ba7d8df
2015-10-15 21:01:42 -04:00
Nathan Froyd
fe57e31ffe Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00