Commit Graph

27617 Commits

Author SHA1 Message Date
JerryShih
39ce3036af Bug 1388240 - turn to use TextureExternalHandle in DXGIYCbCrTextureHostD3D11. r=nical
Create a new type RenderDXGIYCbCrTextureHostOGL for planar-ycbcr format in WR.
That type could convert the 3 d3d11-a8 textures into gl handles. Then, WR could
draw the gl handles directly.

MozReview-Commit-ID: 1CIQO4p8u30
2017-09-28 21:43:01 +08:00
JerryShih
b2d91d1a05 Bug 1388240 - update the DXGITextureHostD3D11::Lock() comment for non-compositor use case. r=nical
MozReview-Commit-ID: ERo8DHpau6c
2017-09-28 21:43:00 +08:00
Sebastian Hengst
e071afa182 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-28 12:17:21 +02:00
Nicolas Silva
3d115cd298 Bug 1402274 - Adjust the shm allocation size in IpcResourceUpdateQueue. r=dvander 2017-09-28 10:30:31 +02:00
Kearwood "Kip" Gilbert
4eef388a2c Bug 1394600 - Allow VRDisplay.requestPresent update the VR layers after presentation has already begun r=daoshengmu
- A user gesture is required only for the VRDisplay.requestPresent
  call that initiates the VR presentation, as per the WebVR 1.1 spec.
- The parameters of the VRLayer can now be updated by calling
  VRDisplay.requestPresent on an active VR presentation.
- Dynamic resolution switching is now functional:
  https://webvr.info/samples/08-dynamic-resolution.html

iMozReview-Commit-ID: BL7aJfF6nqR
MozReview-Commit-ID: CmhbFJ4ij5q

--HG--
extra : rebase_source : 28a3f608b4f821631e81ccdfe7f7824f9508a7b4
2017-08-28 16:20:59 -07:00
Wes Kocher
61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Jonathan Kew
e592a806a6 Bug 1398802 - Support the AAT 'trak' table when shaping macOS fonts via Core Text. r=jrmuizel 2017-09-27 11:16:35 +01:00
sotaro
b7cab8917e Bug 1403439 - Fix WrExternalImageBufferType of DXGITextureHostD3D11 r=nical 2017-09-27 19:11:48 +09:00
Jeff Muizelaar
06e888a351 Bug 1402004. Use A8 as the format for the dummy drawtarget. r=Gankro
I'm not sure why the original comment was there. Everything seemed
to work in local testing.
2017-09-27 00:02:01 -04:00
Jeff Muizelaar
d432f7bf8f Bug 1403214 - Fix webrender debug prefs. r=nical
The current code sets the wrong flags. Fix them and add the alpha-primitives flag.
2017-09-26 23:58:56 -04:00
sotaro
afe9dcf6ff Bug 1403049 - Remove EGLImageImage r=snorp 2017-09-27 09:56:38 +09:00
Wes Kocher
a341b32d06 Merge autoland to central, a=merge
MozReview-Commit-ID: 8B7y2ULc04
2017-09-26 17:11:14 -07:00
Andrew Osmond
3ab0c4aca3 Bug 1402592 - Ensure that ImageBridgeParent instances are closed by the parent during shutdown. r=dvander
We currently allow the content process to shutdown the IPDL objects on
behalf the parent, and we wait for all of these instances to be freed
before we complete shutdown. This is undesirable because it requires the
parent to trust the child rather than the other way around; the child
can hold shutdown hostage by simply not releasing its instances. The
child should already support the parent closing its graphics IPDL
objects because the GPU process itself can die abruptly and be restored
at a later time.
2017-09-26 14:03:29 -04:00
Andrew Osmond
dbcc485a7a Bug 1389759 - Ensure we tear down CompositorManagerChild correctly if init or the GPU process fail. r=dvander 2017-09-26 13:21:52 -04:00
Andrew Osmond
b294a966cd Backed out changeset 6ed0903b5242 (bug 1389759) because an old version of the patch was landed. 2017-09-26 13:20:21 -04:00
Andrew Osmond
4ef271b6d3 Bug 1389759 - Ensure we tear down CompositorManagerChild correctly if init or the GPU process fail. 2017-09-26 11:31:50 -04:00
David Anderson
502592c19b Assert that the GPU process build ID matches the UI process. (bug 1333056, r=mccr8)
MozReview-Commit-ID: 924UVeGXhsr

--HG--
extra : histedit_source : 5ac6ac13c4f34b75106911fdec1cec2260928fce
2017-09-26 10:16:14 -04:00
Nicolas Silva
96de7b8d80 Bug 1383786 - Delete image keys as soon as they are not used anymore. r=sotaro 2017-09-26 15:31:08 +02:00
Nicolas Silva
f1d8bb2519 Bug 1383786 - Rename TextureHost::PushExternalImage into PushDisplayItems. r=sotaro 2017-09-26 15:31:00 +02:00
Nicolas Silva
f4e0aed003 Bug 1383786 - Update TextureHost image keys when posible. r=sotaro 2017-09-26 15:30:55 +02:00
Nicolas Silva
f8c1fa40c8 Bug 1383786 - Make it possible to update TextureHost image keys. r=sotaro 2017-09-26 15:30:51 +02:00
Nicolas Silva
988b7e111c Bug 1383786 - Simplify generating image keys for TextureHosts. r=sotaro 2017-09-26 15:30:46 +02:00
Kartikaya Gupta
1d607209de Bug 1389000 - Disable crashtests that are crashing with assertion failures with layers-free enabled. r=jrmuizel
MozReview-Commit-ID: 4wyEnrBdXTE

--HG--
extra : rebase_source : 7b45040fdd0a63260ec2f6db90db4ebd8044b4ef
2017-09-26 14:49:21 -04:00
Kartikaya Gupta
28cf2fd185 Bug 1389000 - Skip a mochitest that fails with layers-free enabled. r=jrmuizel
MozReview-Commit-ID: BPpKA3ksFXc

--HG--
extra : rebase_source : 840626d11e39c5287d7a505740efcd2e7f43cf5e
2017-09-26 14:49:20 -04:00
Kartikaya Gupta
818cfd7499 Bug 1389000 - Update reftest annotations for layers-free results. r=jrmuizel
This patch:
- adds fails-if annotations for all the reftests that were consistently failing
  with layers-free turned on.
- removes fails-if or reduces the range on fuzzy-if annotations for all
  the reftests that were producing UNEXPECTED-PASS results with
  layers-free turned on.
- adds skip-if, random-if, or fuzzy-if annotations to the reftests that
  were intermittently failing due to timeout, obvious incorrectness, or
  slight pixel differences, respectively.

MozReview-Commit-ID: A0Aknn6rnjj

--HG--
extra : rebase_source : 420d9cf43f23a5d654fa36eec69138937d13c173
2017-09-26 14:49:19 -04:00
Tom Ritter
b41a3f8520 Bug 1402370 _uuidof is a Microsoft specific extension while IID_* is a portable solution that will fix the MinGW build of GLBlitHelperD3D.cpp r=jrmuizel
MozReview-Commit-ID: 1FfQRZ5e5XG

--HG--
extra : rebase_source : 8e203dcadd5088687d62a16006d8fc3d7b781ec1
2017-09-22 11:10:43 -05:00
Tom Ritter
e485aa7144 Bug 1402370 nullptr cannot be cast to bool, so return false instead of nullptr in GLBlitHelperD3D.cpp r=jrmuizel
MozReview-Commit-ID: EeboZBGD0Es

--HG--
extra : rebase_source : d339355bf5ffd6aa6d8e98f8a5c7ab4e3ec436cf
2017-09-22 11:10:04 -05:00
Tom Ritter
fd8f66ae19 Bug 1364560 Fix detection of Windows in Skia for MinGW build r=lsalzman
Windows detection was broken for the MinGW build. This pulls
in the upstream patch from
https://bugs.chromium.org/p/skia/issues/detail?id=6635

MozReview-Commit-ID: D0ZRIDaPmim

--HG--
extra : rebase_source : d20b6bd4bb1b2a93996775d36fe1c8484d0b0f85
2017-09-22 01:19:27 -05:00
Tom Ritter
6499172d8e Bug 1364560 Add support for disabling Skia Jumper assembly code r=lsalzman
The assembly code is not working in the MinGW build, so we
rebase and pull in the upstream commit that adds support for
not using the optimized jumper assembly code.

https://skia.googlesource.com/skia/+/6492afa7971cf295a3c3cb92a85218917c02bb4a

MozReview-Commit-ID: CARHRTHmQ0i

--HG--
extra : rebase_source : c6d9f19f8742a337e6ab3342d34118f37da71ae7
2017-09-25 23:02:35 -05:00
Kearwood "Kip" Gilbert
8801f82f5e Bug 1381085 - Submit VR frames with a separate ID3DDeviceContextState r=daoshengmu
- Using a separate ID3DDeviceContextState ensures
  that the WebVR context does not stomp over the
  mirrored state used by the MLGPU "Advanced" Layers rendering.

MozReview-Commit-ID: 99mfdsjFrMI

--HG--
extra : rebase_source : 599df3b1344ca1489cbb13169313dff8e767c399
2017-09-18 16:19:49 -07:00
Kearwood "Kip" Gilbert
c0e22d6c35 Bug 1400387 - Change 32-bit VR Frame ID's to 64-bit r=daoshengmu
MozReview-Commit-ID: BSvZMa0XVSO

--HG--
extra : rebase_source : 47c1a2cc9ff756cc1dd9174a12a434c4fbfc4a09
2017-09-15 13:38:47 -07:00
Alexis Beingessner
c3525dd8e7 Bug 1403167 - TextDrawTarget: fallback on partial ligatures. r=jrmuizel
MozReview-Commit-ID: BS4dsb0ndYU

--HG--
extra : rebase_source : 048b646ade53072d9d0734fe10c09074f007a1dc
2017-09-26 13:03:10 -04:00
Sebastian Hengst
72d1ea4a4b merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Jean-Yves Avenard
f1942e6f65 Bug 1403190 - P3. Rename and re-organise dxva prefs. r=cpearce
MozReview-Commit-ID: GwDyO1xdiQU

--HG--
extra : rebase_source : b5cf5b56a1fa3413bed8373fca406160ac2691f9
2017-09-26 17:32:02 +02:00
Jean-Yves Avenard
24ce341523 Bug 1403190 - P1. Rename media.windows-media-foundation.* into media.wmf.* prefs. r=cpearce
MozReview-Commit-ID: F9rQoGVPmRt

--HG--
extra : rebase_source : e09c3065dda022208682dda52bca8dfef7ae23dc
2017-09-26 17:00:57 +02:00
Sebastian Hengst
087942d456 Backed out changeset 31a7d05125cc (bug 1403190) for breaking Windows builds due to wrong closing quotation marks in preferences file. r=backout on a CLOSED TREE 2017-09-27 10:18:02 +02:00
Sebastian Hengst
7f458f557d Backed out changeset e6eb65564b76 (bug 1403190) 2017-09-27 10:16:13 +02:00
Jean-Yves Avenard
fec750badb Bug 1403190 - P3. Rename and re-organise dxva prefs. r=cpearce
MozReview-Commit-ID: GwDyO1xdiQU

--HG--
extra : rebase_source : 92ec1dfa25728d48dd22d9549005ead9930f25a9
2017-09-26 17:32:02 +02:00
Jean-Yves Avenard
06bc9c648f Bug 1403190 - P1. Rename media.windows-media-foundation.* into media.wmf.* prefs. r=cpearce
MozReview-Commit-ID: F9rQoGVPmRt

--HG--
extra : rebase_source : 0bb194abe90e720100f2a2a09d0d905d6928aed3
2017-09-26 17:00:57 +02:00
Nicholas Nethercote
dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
sotaro
8c6ed26316 Bug 1402767 - Enable accleleration of GLScreenBuffer when WebRender is enabled r=jgilbert 2017-09-26 13:15:36 +09:00
Matt Woodrow
5fa5f70015 Bug 1402200 - Expose nsRect to pixman_box helpers. r=jrmuizel 2017-09-26 15:57:56 +13:00
sotaro
b283dc671f Bug 1402739 - Fix mutex handling around async ImageContainer r=nical 2017-09-26 09:58:37 +09:00
Wes Kocher
7bf1b49628 Merge inbound to central, a=merge
MozReview-Commit-ID: 7EzhCCVVn7n
2017-09-25 16:41:34 -07:00
Jonathan Kew
7866196811 Bug 1402862 - Remove ENABLE_INTL_API conditional from gfx build files. r=milan 2017-09-25 17:32:47 +01:00
Alexis Beingessner
6803f63105 Bug 1400411 - text-layers: fallback if SVG fonts or tofu is found. r=jrmuizel
MozReview-Commit-ID: 9vUK5r5sKWB

--HG--
extra : rebase_source : 5e4c026cf6c802554772a99064898fde3b414ea8
2017-09-22 10:57:30 -04:00
Sebastian Hengst
d1d55ab8bc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 517PGVX0wPB
2017-09-25 11:58:15 +02:00
Sebastian Hengst
1a3935a05f merge autoland to mozilla-central.r=merge a=merge
MozReview-Commit-ID: JRQXsnsRpCS
2017-09-25 11:56:13 +02:00
Lee Salzman
a593c1be08 Bug 1402585 - don't error when ShmSegmentReader reads empty segments. r=gankro
MozReview-Commit-ID: B18t0mrEIDm
2017-09-24 19:11:17 -04:00
Chris Peterson
45aa2a8e8e Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
MozReview-Commit-ID: CrkIP4iHP1U

--HG--
extra : rebase_source : 5dc4e91a3f1860773c199f1abf3f66479218834a
extra : intermediate-source : ba51cc79847f2b43ba616f4a5d2bbc6958ca9f6d
extra : source : 1fda2fa990cc918c748ffa14fcc5dbe13fe3bdc3
2017-09-03 22:14:11 -07:00