Commit Graph

20827 Commits

Author SHA1 Message Date
Randall Barker
30c5396234 Bug 1224015 - Part 2: Have nsDisplayResolution items adjust event coordinates for hit testing and dispatching to content r=tnikkel 2015-11-26 20:51:13 -06:00
Randall Barker
73d7c06ec0 Bug 1224015 - Part 1: nsLayoutUtils functions do not account for nsPresShell resolution r=tnikkel 2015-11-26 20:51:13 -06:00
Kartikaya Gupta
57a779aced Bug 1228133 - Guard against a race condition that could result in an illegal pointer access. r=BenWa
In this case the LayerTreeState pointer was being accessed outside the lock, and
was being deleted by another thread at the same time. This resulted in an illegal
pointer access which was causing crashes. Including the body of the
GetAPZCTreeManager function in the scope of the lock fixes the problem.
2015-11-26 19:20:04 -05:00
Carsten "Tomcat" Book
44189adf88 Merge mozilla-central to mozilla-inbound 2015-11-26 16:56:09 +01:00
Carsten "Tomcat" Book
358e4575c4 merge mozilla-inbound to mozilla-central a=merge 2015-11-26 16:54:27 +01:00
Bas Schouten
3026d54a89 Bug 1227210: Ensure the mask and the surface are in the right space when being blended. r=mattwoodrow 2015-11-26 15:51:49 +01:00
Lee Salzman
794a175c80 Bug 1228188 - ifdef around Skia GetMaxSurfaceSize usage. r=eihrul 2015-11-25 22:21:40 -05:00
John Daggett
14ad4bf8f6 Bug 1224975 - add telemetry for font loading. r=m_kato
--HG--
extra : rebase_source : ef31e321366f6edcc465ad9a4474c1e8287a6054
2015-11-25 14:48:16 +09:00
Carsten "Tomcat" Book
4478aaa8da Merge mozilla-central to b2g-inbound 2015-11-25 14:00:32 +01:00
Matt Woodrow
4946a3c907 Bug 1168263 - Add nsDisplayPerspective and build separate layers for perspective. r=roc 2015-11-26 22:32:36 +13:00
Matt Woodrow
6fa0d2f621 Bug 1168263 - Simplify GetResultingTransformMatrix calculations to avoid unnecessary origin changes. r=roc 2015-11-26 22:32:35 +13:00
Matt Woodrow
7c076dbe87 Bug 1168263 - Add a flags parameter to GetResultingTransformMatrix instead of using bools. r=roc 2015-11-26 22:32:35 +13:00
Botond Ballo
32478eadd5 Bug 1168263 - Propagate the scroll-clip of a descendant of a layer with a perspective transform up to the layer itself. r=kats,mstange 2015-11-18 14:21:37 -05:00
Botond Ballo
8e6d03a7b3 Bug 1168263 - Introduce a helper function IntersectMaybeRects(). r=kats 2015-11-19 13:09:16 -05:00
Yoshi Huang
4b500464f5 Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Wes Kocher
72261b4523 Backed out 12 changesets (bug 1200595) for b2g mochitest crashes in SharedBufferManagerParent CLOSED TREE
Backed out changeset cf8cf1a039dd (bug 1200595)
Backed out changeset 65da564f952c (bug 1200595)
Backed out changeset 7663208f1582 (bug 1200595)
Backed out changeset fc1fbb97c8eb (bug 1200595)
Backed out changeset 3ad5a4c457fe (bug 1200595)
Backed out changeset add3fe9afc0c (bug 1200595)
Backed out changeset 68aba6b39588 (bug 1200595)
Backed out changeset ab326c34f1cf (bug 1200595)
Backed out changeset ed34bc528a1b (bug 1200595)
Backed out changeset 0dc93424546c (bug 1200595)
Backed out changeset 8cc12f12f3d1 (bug 1200595)
Backed out changeset bb84403701b7 (bug 1200595)

--HG--
extra : commitid : AMC6i05xyTh
2015-11-24 10:07:02 -08:00
Bas Schouten
662684de75 Bug 1216366: Ensure D3D11 uploads the entire surface the first time for component alpha textures. r=nical 2015-11-24 17:04:13 +01:00
Nicolas Silva
c89268e8b1 Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow 2015-11-20 14:25:03 +01:00
Nicolas Silva
c1b94d01e8 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva
f1aba3b421 Bug 1200595 - DIB TextureData implementation. r=Bas 2015-11-20 14:24:58 +01:00
Nicolas Silva
7e5a0d6376 Bug 1200595 - SharedSurface TextureData implementation. r=jgilbert 2015-11-20 14:24:55 +01:00
Nicolas Silva
16729dbd9c Bug 1200595 - AndroidSurface TextureData implementation. r=mattwoodrow 2015-11-20 14:24:52 +01:00
Nicolas Silva
3643449938 Bug 1200595 - EGLImage TextureData implementation. r=mattwoodrow 2015-11-20 14:24:49 +01:00
Nicolas Silva
4499d574c1 Bug 1200595 - MacIOSurface TextureData implementation. r=mattwoodrow 2015-11-20 14:24:46 +01:00
Botond Ballo
136d0a9d64 Bug 1168263 - Exclude perspective transforms from the transform used to convert from screen coordinates to an APZC's coordinate space. r=kats 2015-11-02 15:08:01 -05:00
Botond Ballo
e1d98163ba Bug 1168263 - Annotate layers with a perspective transform. r=mattwoodrow 2015-11-02 17:38:08 -05:00
Nicolas Silva
38f44b34ce Bug 1228029 - Fix the usage of gtest assertion macros in TestJobScheduler.cpp. r=kats 2015-11-25 19:36:44 +01:00
Mike Hommey
6a40d83fb7 Bug 1224452 - Straighten up a couple things in some moz.builds. r=gps
We're going to change how e.g. CFLAGS are printed out in backend.mk, and
to fit that model, the data in the corresponding moz.build variables
need to be straightened up.
2015-11-26 08:50:52 +09:00
Andrew McCreight
0d80d884a1 Bug 1213464 - ImageBridgeChild and CompositorChild should delete their Transport. r=billm 2015-11-25 08:09:32 -08:00
Kartikaya Gupta
36bf0301ba Bug 960317 - Remove cross-slide code from APZC. r=botond
--HG--
extra : commitid : HZ0FIlYFgg0
2015-11-25 10:30:36 -05:00
Nicolas Silva
51dd6c34c2 Bug 1200595 - D3D9 TextureData implementation. r=Bas 2015-10-19 14:46:17 +02:00
Nicolas Silva
2eea103a37 Bug 1200595 - D3D11 TextureData implementation. r=Bas 2015-10-15 17:53:37 +02:00
Nicolas Silva
318de9bd3b Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Nicolas Silva
e2196598ae Bug 1200595 - Buffer TextureData implementation. r=mattwoodrow 2015-10-15 17:53:33 +02:00
Nicolas Silva
c3df7801f0 Bug 1200595 - Introduce TextureData and implement it for X11. r=mattwoodrow, Bas, sotaro 2015-10-13 18:48:48 +02:00
Phil Ringnalda
71a6f5da62 Back out changeset 2f614bcd9405 (bug 1221822) for test_conformance__extensions__ext-sRGB.html and test_webgl2_alpha_luminance.html failures 2015-11-23 21:55:59 -08:00
Boris Zbarsky
9a3137dfcc Bug 1224596 part 13. Switch gfxUtils to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:21 -05:00
Nicholas Nethercote
52b3d826da Bug 1225007 (part 1, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : e4b3bb36c18822557f7724a58979eddd9d8cac62
2015-11-19 14:10:38 +11:00
Jeff Gilbert
87397c265b Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-23 19:27:13 -08:00
Kevin Wern
2b30dcd211 Bug 1226920 - For instances of ForEachNode where we want to traverse the entire tree, use an action that returns void. r=botond
--HG--
extra : rebase_source : 75af9311d39b2ff56ac98b71740500bddc57682e
extra : source : 90d4d1258a281cd589e3f21b04c41cb8c3a9bd08
2015-11-23 13:06:29 -05:00
Kevin Wern
6b43e66943 Bug 1226920 - Allow calling ForEachNode() with an action returning void r=botond
--HG--
extra : rebase_source : e2d16580f20bd5dc154760803ec562fe0ed485c4
extra : source : 8e743b5913982ccd18d51544a5a93213fb700e5c
2015-11-23 13:06:01 -05:00
David Anderson
85927e2032 Don't assume D3D11CreateDevice() gives back non-null devices. (bug 1209268, r=milan) 2015-11-23 13:07:40 -08:00
Nigel Babu
29e98fdbc3 Backed out changeset ebb6fb453cca (bug 1214170) for build bustage on a CLOSED TREE 2015-11-25 16:22:16 +05:30
David Anderson
859092e6a5 Add APZ support for mousewheel.acceleration prefs. (bug 1214170, r=kats) 2015-11-25 01:12:33 -08:00
Jeff Gilbert
19d84fb0fe Bug 1221822 - Finish the WebGL texture refactor. r=kamidphish,mattwoodrow,bz 2015-11-24 20:15:29 -08:00
Dan Glastonbury
5b14b3a87d Bug 618898 - Add D3D11SharedSurfaceInterop. r=jgilbert
--HG--
extra : commitid : LSoMbZrQQSO
extra : rebase_source : d207b87eafc300a1d3c99c0c85403056008b1bf6
2015-11-06 10:19:24 +10:00
Christoph Diehl
dc4cfa8aad Bug 805760 - Crashtest. 2015-11-24 20:04:04 +01:00
Mason Chang
e74c79f0e3 Bug 1221840. Support repeating images in 1 axis. r=seth 2015-11-23 08:17:35 -08:00
Lee Salzman
6fea42974e Bug 1224974 - fix GTK shaped window drawing. r=bas 2015-11-19 17:23:43 -05:00
Lee Salzman
d75fbddd08 Bug 1223740 - enforce max surface size for DrawTargetSkia. r=bas 2015-11-19 13:35:31 -05:00
Boris Chiou
fe6df692e1 Bug 1215406 - Part 3: Change the types of direction and fillmode in AnimationTiming. r=heycam
Use mozilla::dom::FillMode and mozilla::dom::PlaybackDirection
in AnimationTiming.

--HG--
extra : rebase_source : 8210d002d6f116793f439d88b0325ab6fb880048
2015-11-20 06:12:00 +01:00
Milan Sreckovic
bd6e14f6c6 Bug 1204922 - Part 3. Report failed before HandleError call. r=bas
--HG--
extra : rebase_source : 4c44c5fe2df0f067dbfc5e6053561b1005911e8c
2015-11-19 10:19:00 +01:00
Kartikaya Gupta
3f1887d8f0 Bug 1226872 - Remove unnecessary wrapper methods in nsLayoutUtils. r=roc
--HG--
extra : commitid : 6XdZwhzPuoM
2015-11-23 09:14:18 -05:00
Wes Kocher
023e779c11 Backed out changeset 7b113a6167e9 (bug 1215265) for mass bustage CLOSED TREE
--HG--
extra : commitid : 4fRgovywnch
extra : histedit_source : 18da44a556f563d9aabadd24ed7780e9b29771bf
2015-11-22 23:02:18 -08:00
Wes Kocher
11939bbcdf Backed out changeset 0cbe4b80d443 (bug 1215265) for mass bustage CLOSED TREE
--HG--
extra : commitid : 6mQDl6Z8lHb
extra : histedit_source : a339efc1bb292757446da8b65c257d09d5d3ca84
2015-11-22 23:02:10 -08:00
Robert O'Callahan
97e424f754 Bug 1215265. Add some missing MOZ_COUNT_CTOR/DTORs. r=nical
--HG--
extra : commitid : BQvNIyuHskN
extra : rebase_source : 9b24d373615cff48cba576789256658888d58554
2015-11-18 17:30:54 +13:00
Robert O'Callahan
c5bea366b2 Bug 1215265. Don't leak CompositorChild in content processes. r=nical
This makes the shutdown sequence of CrossProcessCompositorParent
work very much like the shutdown sequence of CompositorParent:
the child does SendStop(); the parent's RecvStop does some cleanup
and then queues a DeferredDestroy task; DeferredDestroy releases
the parent, destroying it; IPDL sends a message to destroy the child.

--HG--
extra : commitid : BSzF9OvSEK9
extra : rebase_source : 2c4ebbadb7064289b032da06cfbd17a3fd2f6ed2
2015-11-18 13:39:47 +13:00
Kartikaya Gupta
268f86d220 Bug 1181703 - Add a gtest for making sure a pan can be continued after a second finger does a tap. r=botond
--HG--
extra : commitid : 1JvqDj401Yv
2015-11-22 08:57:45 -05:00
Kartikaya Gupta
611c8c5b0b Bug 1181703 - Allow re-entering the panning state if a second finger is tapped while panning with one finger. r=botond
--HG--
extra : commitid : GdPNUwhizt3
2015-11-22 08:57:45 -05:00
Kartikaya Gupta
1556e9f10e Bug 962243 - Gtest for being able to pan after lifting a finger from a pinch. r=botond
--HG--
extra : commitid : GvORcyUfVyz
2015-11-22 08:57:45 -05:00
Dmitry Rozhkov
8df43f8eae Bug 962243 - Implement PINCH to TOUCHING transition in APZC. r=botond
--HG--
extra : commitid : FoHvf2KH9rd
2015-11-22 08:57:45 -05:00
Kartikaya Gupta
c595c834db Bug 1221694 - Add a basic telemetry probe for checkerboarding. r=botond,vladan
--HG--
extra : commitid : LkGcnQbivKT
2015-11-20 23:25:37 -05:00
Jonathan Kew
8661f78943 Bug 1226175 - Update in-tree harfbuzz to release 1.1.0 to pick up Syriac Abbreviation Mark support ('stch' feature). r=jdaggett 2015-11-20 21:49:09 +00:00
Mason Chang
753619e16b Bug 1226316. Fixup to only expand displayport when skating with apz. r=kats 2015-11-20 10:00:47 -08:00
Carsten "Tomcat" Book
1a584aca79 Backed out 13 changesets (bug 1200595) for possibly breaking Reftest [TC] Crashtest tc-R on a CLOSED TREE
Backed out changeset e7278af0a484 (bug 1200595)
Backed out changeset c13228f84d85 (bug 1200595)
Backed out changeset 4b88e8a3d8af (bug 1200595)
Backed out changeset e55376bd2cf8 (bug 1200595)
Backed out changeset 9c27c8e2c021 (bug 1200595)
Backed out changeset a369a2983ceb (bug 1200595)
Backed out changeset 09e71ba15ea8 (bug 1200595)
Backed out changeset b555b130d439 (bug 1200595)
Backed out changeset 6819f6d82287 (bug 1200595)
Backed out changeset a8cdfbf443d8 (bug 1200595)
Backed out changeset 0092c9d7a86b (bug 1200595)
Backed out changeset 6dc38a1e6073 (bug 1200595)
Backed out changeset fe2164aa1468 (bug 1200595)
2015-11-20 16:55:26 +01:00
Trevor Saunders
24d6e6dd8d bug 1225943 - remove QI to nsIMarkupDocumentViewer from gfx/tests/crashtests/358732-iframe.html r=smaug 2015-11-20 09:45:23 -05:00
Trevor Saunders
6ecf00de43 bug 1225943 - remove \rs from gfx/tests/crashtests/358732-iframe.html r=smaug 2015-11-20 09:45:23 -05:00
Nicolas Silva
b1e3e38bb1 Bug 1200595 - Build fix on a CLOSED TREE 2015-11-20 15:03:11 +01:00
Nicolas Silva
4b5d77112d Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow
* * *
Bug 1200595 - Rebase fixes
2015-11-20 14:25:03 +01:00
Nicolas Silva
25167273f1 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva
5e347979e8 Bug 1200595 - DIB TextureData implementation. r=Bas 2015-11-20 14:24:58 +01:00
Nicolas Silva
beee26c42b Bug 1200595 - SharedSurface TextureData implementation. r=jgilbert 2015-11-20 14:24:55 +01:00
Nicolas Silva
bed267efec Bug 1200595 - AndroidSurface TextureData implementation. r=mattwoodrow 2015-11-20 14:24:52 +01:00
Nicolas Silva
a425936e42 Bug 1200595 - EGLImage TextureData implementation. r=mattwoodrow 2015-11-20 14:24:49 +01:00
Nicolas Silva
424ec279d9 Bug 1200595 - MacIOSurface TextureData implementation. r=mattwoodrow 2015-11-20 14:24:46 +01:00
Nicolas Silva
24e78db7d5 Bug 1200595 - D3D9 TextureData implementation. r=Bas 2015-10-19 14:46:17 +02:00
Nicolas Silva
943fe8686e Bug 1200595 - D3D11 TextureData implementation. r=Bas 2015-10-15 17:53:37 +02:00
Nicolas Silva
94c7acf9ef Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Nicolas Silva
71d9215e93 Bug 1200595 - Buffer TextureData implementation. r=mattwoodrow 2015-10-15 17:53:33 +02:00
Nicolas Silva
62fdc49f48 Bug 1200595 - Introduce TextureData and implement it for X11. r=mattwoodrow, Bas, sotaro 2015-10-13 18:48:48 +02:00
John Daggett
b788233f65 Bug 1213280 - fix OSX font selection under 10.11. r=jfkthame 2015-11-20 22:01:12 +09:00
Carsten "Tomcat" Book
50fa932cc7 Backed out changeset 815c0c1d5619 (bug 1226175) for bustage on a CLOSED TREE 2015-11-20 08:03:13 +01:00
Lee Salzman
feea035806 Bug 1225250 - fix stride on SourceSurfaceSkia when initialized from GPU texture. r=jmuizelaar 2015-11-17 11:18:36 -05:00
Jonathan Kew
45133c48e8 Bug 1226175 - Update in-tree harfbuzz to release 1.1.0 to pick up Syriac Abbreviation Mark support ('stch' feature). r=jdaggett 2015-11-20 06:19:27 +00:00
Jonathan Kew
8bec41298a Bug 1223002 - Always call ReleaseGrFace to balance GetGrFace, even if the face is null. r=jdaggett 2015-11-20 06:09:59 +00:00
John Daggett
15444a76a4 Bug 1119062 - enable unicode-range in release builds. r=dbaron 2015-11-20 14:46:47 +09:00
Phil Ringnalda
538ef0460d Merge m-c to m-i 2015-11-19 21:08:34 -08:00
Phil Ringnalda
87802cdbad Backed out 2 changesets (bug 1225007) for frequent OS X "Shouldn't return empty rect" assertion failures, a=backout
Backed out changeset c5b352c74b35 (bug 1225007)
Backed out changeset 8a513c70ce7c (bug 1225007)
2015-11-19 20:55:26 -08:00
John Daggett
dcfcd94766 Bug 1224965 p2 - tweak the handling of generic substitutions. r=karlt 2015-11-20 13:35:15 +09:00
John Daggett
fbf9fafe6b Bug 1224965 p1 - add pref for max substitutions for generics under fontconfig. r=m_kato 2015-11-20 13:35:15 +09:00
Wes Kocher
f2a69ef549 Merge b2ginbound to central, a=merge
--HG--
extra : commitid : DJ1BP2VTWLm
2015-11-19 13:36:16 -08:00
Kartikaya Gupta
076e47d4c8 Bug 1223928 - Make the horizontal scrollbar on the root scrollable shift correctly with the dynamic toolbar. r=botond
--HG--
extra : commitid : I3ZChoVA8Gv
2015-11-19 09:55:21 -05:00
Jonathan Kew
5a7d1f3807 Bug 1223002 - Cherry-pick post-1.3.4 bugfixes for graphite2 from upstream. r=jdaggett 2015-11-19 13:33:17 +00:00
Chris Lord
f9e9f04ed8 Bug 1225761 - Clear axis lock in CancelAnimation and EndTouch. r=botond 2015-11-18 18:36:48 +00:00
Nicholas Nethercote
ce671f3678 Bug 1225007 (part 1, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
--HG--
extra : rebase_source : ea132cb4a6eda3553682114f3a1a280acfaf0aa3
2015-11-19 14:10:38 +11:00
Carsten "Tomcat" Book
0bfff5e905 Merge mozilla-central to b2g-inbound 2015-11-19 15:27:02 +01:00
Thomas Zimmermann
7dac811b76 Bug 1225045: Fix stagefright include paths for ANDROID_VERSION >= 17, r=gps 2015-11-19 10:42:31 +01:00
Bas Schouten
6734f39bff Bug 1225125: If all drawing is just clipped out anyway, just push a regular group, blending mode won't matter. r=jrmuizel 2015-11-17 16:27:17 +01:00
David Anderson
30e9c14eff Null-check D3D10 devices in a few places. (bug 1225645, r=bas) 2015-11-19 15:04:46 -08:00
Botond Ballo
12bf0dcf48 Bug 1226320 - Fix a refactoring in APZCTreeManager that didn't preserve semantics correctly. r=kats
--HG--
extra : rebase_source : 978a5800996c54a14efcd18b6c8b76cec72fc3b2
2015-11-19 15:34:50 -05:00
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