Commit Graph

23228 Commits

Author SHA1 Message Date
John Paul Adrian Glaubitz
c6b39f0f90 Bug 972945 - Add autoconf test to enable AltiVec on supported targets only. r=glandium
Currently, the build scripts enable AltiVec unconditionally on all ppc*
targets. However, there some ppc* targets which do not support AltiVec
instruction set extensions, these are often embedded systems like the
PowerPC e500 or similar which have their own type of instruction set
extensions like SPE. Trying to enable Altivec support on these targets
results in a compiler error, hence we need to add an autoconf test for
AltiVec support before trying to enable it on ppc* targets.

Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

--HG--
extra : rebase_source : 6c4df813d97d95046fd2269c876313ce7591c5cf
2016-08-16 05:17:00 -04:00
David Anderson
47faa17e03 Don't initialize DirectX in the UI process, when the GPU process is enabled. (bug 1294986 part 2, r=mattwoodrow) 2016-08-16 11:03:29 -07:00
David Anderson
4198f82d06 Disable the GPU process when not using Electrolysis. (bug 1294986 part 1, r=mattwoodrow) 2016-08-16 11:00:01 -07:00
Wes Kocher
c84ec3b3f3 Merge m-c to inbound, a=merge 2016-08-16 22:06:58 -07:00
Jonathan Chan
4b87f11bd9 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc
1794619188 Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Wes Kocher
48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Mason Chang
6478db3b8a Bug 1294121 - Backed out changeset 635d266614ad for windows build failures. r=me. CLOSED TREE 2016-08-16 09:17:25 -07:00
Mason Chang
423fb81bd4 Bug 1294121 - Develop a continuous paint mode for Firefox. r=mattwoodrow 2016-08-16 08:46:13 -07:00
Nicolas Silva
7eadba0012 Bug 1294969 - Path flattening should not skip the first inflection point if it is at t=0.0. r=Bas 2016-08-16 15:42:57 +02:00
Alexandre Lissy
f9e595bea3 Bug 1295274 - Fix gfxVars namespace r=nical
MozReview-Commit-ID: HcWxi7rDm8b
2016-08-16 13:07:24 +02:00
Mason Chang
e7ead846af Backed out changeset aaaab9a073a4 for build failures. r=me 2016-08-15 20:38:40 -07:00
Mason Chang
8c9fb35901 Bug 1294121 - Develop a continuous paint mode for Firefox. r=mattwoodrow 2016-08-15 19:59:26 -07:00
Seth Fowler
69a8ca2b79 Bug 1293449 (Followup) - Remove unnecessary SurfaceCache.h #include from gfxWindowsPlatform. r=me 2016-08-15 19:38:43 -07:00
Sotaro Ikeda
64b45af818 Bug 1254010 - Scaling during RGB -> YUV conversion with BasicCompositor if possible. basic_compositor_video improved on windows. r=jrmuizel 2016-08-15 18:54:17 -07:00
Jonathan Chan
9c62a2c11c Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-09 16:28:19 -07:00
Wes Kocher
2253eb9510 Merge m-c to inbound, a=merge 2016-08-15 14:53:49 -07:00
Wes Kocher
d602abb016 Merge inbound to central, a=merge 2016-08-15 14:20:38 -07:00
vincentliu
6b56ae4268 Bug 1286458 - Check SkScalarIsFinite for SkVector::DotProduct(). r=lsalzman
---
 gfx/skia/skia/src/core/SkGeometry.cpp | 3 +++
 1 file changed, 3 insertions(+)
2016-08-15 16:00:31 +08:00
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Sebastian Hengst
d5866d2b77 Backed out changeset 9ba0dd5271fe (bug 1286653) for permafailing xpcshell test test_TelemetryEnvironment.js | test_checkEnvironment on Windows 8 x64 debug. r=backout 2016-08-13 10:58:06 +02:00
Ryan Hunt
aa229473b7 Bug 1294588 - Remove UseProgressivePaint from gfxPlatform and use gfxPrefs instead. r=dvander
MozReview-Commit-ID: 1A9bFY2HS2z

--HG--
extra : rebase_source : 3347b9920be525f24c8d627260947b136ac36930
2016-08-11 14:21:17 -07:00
Ryan Hunt
92206266e3 Bug 1294586 - Remove dependency on gfxPlatform from CreateDrawTargetFromData. r=dvander
MozReview-Commit-ID: A355fBJKWP6

--HG--
extra : rebase_source : 85ffd4b9d5f9708a1666bbc8e229ba576cc97680
2016-08-11 14:54:08 -07:00
Wes Kocher
4aec37ca6e Merge m-c to autoland, a=merge 2016-08-12 16:30:03 -07:00
Bas Schouten
d6b8fc4152 Bug 943626 - Part 3: Implement GetGlyphMetrics API for ScaledFontBase with Cairo r=jrmuizel 2016-08-11 15:47:32 -04:00
Bas Schouten
e0031c0160 Bug 943626 - Part 2: Implement GetGlyphMetrics API for DirectWrite r=jrmuizel 2016-08-11 15:47:32 -04:00
Bas Schouten
3547be617f Bug 943626 - Part 1: Add GetGlyphDesign/RasterizationMetric API to Moz2D r=jrmuizel 2016-08-11 15:47:32 -04:00
Jonathan Kew
c3be9496a6 Bug 1294448 followup - Cosmetic fixes to code style, no functional change. r=jrmuizel 2016-08-11 20:08:42 +01:00
Jonathan Kew
55b297ca39 Bug 1294448 - Fix handling of platform ID in gfxFontUtils::ReadNames, so that fallback to Windows-platform names on Mac works as intended. r=jrmuizel 2016-08-11 20:08:42 +01:00
Lee Salzman
1d7feaf99c Bug 1294455 - disable slow debug validation in Skia. r=mchang
MozReview-Commit-ID: 2vbnbuJARh3
2016-08-11 11:34:44 -04:00
Mason Chang
1dba66163c Bug 1293759. Memset RGBX surfaces with basic layers and a skia backend. r=lsalzman 2016-08-11 07:53:07 -07:00
Nicholas Nethercote
bab6d17ebf Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.

--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
eyim
f6feed92b7 Bug 1286653 - Re-run blacklist on DXGI adapter used for device creation r=BenWa,dvander
MozReview-Commit-ID: 9QV8QFu5WYR

--HG--
extra : rebase_source : d0da9409b2818a1ebce1469daecc3ca436bfa33e
2016-08-11 18:20:21 -04:00
Wes Kocher
88bc8189f9 Merge m-c to autoland, a=merge 2016-08-15 14:54:25 -07:00
Jan Beich
610c9bd786 Bug 1294923 - Unbreak --enable-system-cairo build after bug 943626. r=bas.schouten
MozReview-Commit-ID: LofFWlXUVzd

--HG--
extra : rebase_source : 8629100a9ff411491222e66adfbcddf2f7d797ed
2016-08-13 02:32:09 +00:00
Brian Birtles
eac25e3163 Bug 1286476 part 2 - Respect the playback rate when calculating phase boundaries; r=hiro
This implements the spec change in 21de090dac

The spec change refers to a binary 'animation direction' flag. Instead of that,
however, we just pass the playback rate along and use it inside
GetComputedTimingAt since this seems simpler.

Also, this patch moves the implementation of
KeyframeEffectReadOnly::GetComputedTiming from the header file into the .cpp
file. This is because with this change, GetComputedTiming needs to call
mAnimation->PlaybackRate() and so mozilla::dom::Animation needs to be a complete
type. However, simply including Animation.h doesn't work because of a cyclic
dependency between KeyframeEffect.h and Animation.h. We might be able to fix
this later but since yet-to-land bug 1049975 moves this code around a lot, I'd
rather not touch it too much just now.

MozReview-Commit-ID: 1h6XRh4xmfI
2016-08-17 08:28:41 +09:00
Randall Barker
fcda0a5859 Bug 1291373 - [geckoview] part 5, Remove Layer and all derived classes r=snorp 2016-08-16 14:33:43 -07:00
Randall Barker
9a3fae864f Bug 1291373 - [geckoview] part 3, Remove MOZ_ANDROID_APZ r=botond,snorp 2016-08-16 14:33:43 -07:00
Mason Chang
e21abc7248 Bug 1294121 - Develop a continuous paint mode for Firefox. r=mattwoodrow 2016-08-16 08:46:13 -07:00
Daniel Holbert
3112c6ac39 Bug 1292390 followup: add newline character at the end of Polygon/BSPTree files added in this bug, per coding style guide. (whitespace-only, no review)
DONTBUILD because whitespace-only.

MozReview-Commit-ID: 8QOAtwJ8G9z
2016-08-16 11:01:06 -07:00
Frédéric Wang
a7fdab6ca8 Bug 1291217 - Update OTS to version 5.0.1. r=jfkthame
--HG--
extra : rebase_source : 85ea822044fbb0c2ffcec8a460d99e4b751dbff6
2016-08-02 06:32:00 -04:00
JerryShih
3f3f8a21ec Bug 1292774 - Turn to use gfxCriticalNote for mismatched d3d11 device in CompositorD3D11::HandleError(). r=dvander
--HG--
extra : rebase_source : 5e7d7e39f03a3680833815ce099e8bb6938e7deb
2016-08-09 01:29:00 -04:00
Miko Mynttinen
12062ceb2f Bug 1292390 - Add BSP tree implementation. r=jrmuizel, r=kip
MozReview-Commit-ID: BpGfAUS0MLj

--HG--
extra : transplant_source : %EB%EF%7D%5C%FA%B5h%CCj%C4A%F3%D7F%BB%F5%F9J%8D%D2
2016-08-10 14:30:29 -07:00
Miko Mynttinen
2123dc4b39 Bug 1292390 - Add Polygon data structure. r=jrmuizel, r=kip
MozReview-Commit-ID: HFgVFgLqB12

--HG--
extra : transplant_source : %5E-oo20%15%B3%D3%A3%AC%23%B9%19.%92%AE%2A%06%25
2016-08-09 11:24:18 -07:00
Joel Maher
c89f909079 backout 4e8a67e61102 (bug 1289829) for performance regression
MozReview-Commit-ID: HELRLZmHY7n
2016-08-15 11:54:43 -04:00
Jonathan Kew
76f40e7bdc Bug 1280887 - patch 1 - Declare a bunch of gfxTextRun* variables as const pointers, for clarity. r=mats 2016-07-07 13:51:24 +01:00
Mason Chang
850f81d1c7 Bug 1292642 Default to skia if we have an invalid pref for a backend on OS X. r=milan 2016-08-10 17:36:25 -07:00
Wes Kocher
a742ff6791 Merge m-c to inbound, a=merge 2016-08-10 16:55:15 -07:00
Wes Kocher
fa1a1180c4 Merge autoland to central, a=merge 2016-08-10 16:29:26 -07:00
Carsten "Tomcat" Book
781af68024 Merge mozilla-central to autoland 2016-08-10 16:05:21 +02:00
Bob Owen
9e41d076ec Bug 1288194 Part 2: Fix incorrectly recorded argument in DrawTargetRecording::PushLayer. r=bas
MozReview-Commit-ID: HdvCaPGDqvk

--HG--
extra : rebase_source : c1e938b2d8542eb5b8d4250162ccff11578317b6
2016-08-08 17:11:44 +01:00
Bob Owen
ac545a9a00 Bug 1288194 Part 1: Implement PathBuilderRecording::Arc correctly. r=bas
MozReview-Commit-ID: Iz7Io8IxHvR

--HG--
extra : rebase_source : 77600450c62b7154a0c56875906e7e015aaf7842
2016-08-08 17:11:38 +01:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Nicholas Nethercote
9dc11c1da2 Bug 1293603 (part 1) - Add |override| to CollectReports() declarations missing it. r=erahm.
--HG--
extra : rebase_source : 7ae41d24bacf4de4ca6193ad52517343806dbb2d
2016-08-08 11:04:11 +10:00
George Wright
617f4761d4 Bug 1289525 - Shrink the TextureClientPool to maximum size after a short delay, and clear the pool after a longer delay r=jrmuizel 2016-08-09 16:03:47 -04:00
Nicolas Silva
569564c271 Bug 1291163 - Make sure TextureHosts are read-unlock'ed if Compositor::EndFrame is not called. r=sotaro 2016-08-09 18:19:01 +02:00
Benoit Girard
b1c543d280 Bug 1251615 - Add more safety checks for ComputeChange crash. r=mstange
MozReview-Commit-ID: 2zdycnmRA8u
2016-08-03 17:08:40 -04:00
Lee Salzman
a695c40d38 Bug 1294207 - detect if FreeType supports lcd filtering in SkFontHost_cairo. r=gw280
MozReview-Commit-ID: AZkcZG4PegJ
2016-08-10 18:23:34 -04:00
Carsten "Tomcat" Book
c4b39a49eb Merge mozilla-central to mozilla-inbound 2016-08-09 15:47:44 +02:00
Carsten "Tomcat" Book
d9e0b4c565 merge mozilla-inbound to mozilla-central a=merge 2016-08-09 15:44:51 +02:00
Nicolas Silva
36eabd3917 Bug 1291296 - Make it possible to change a PersistentBufferProvider's Forwarder without crashing. r=ethlin 2016-08-09 14:42:15 +02:00
Matt Woodrow
27ae1b3c02 Bug 1292498 - Don't support D3D11 feature level 9_3 since it doesn't work with any of our use cases. r=Bas 2016-08-09 15:55:06 +12:00
Botond Ballo
ddff23b206 Bug 1290823 - Introduce a helper APZCCallbackHelper::GetPresContextForContent(). r=rbarker
And use it in APZCCallbackHelper::GetRootContentDocumentPresShellForContent().

MozReview-Commit-ID: 9Gm8kgbqlHm

--HG--
extra : rebase_source : 5390ee705f4bee567bfc72578c551ccf898ebfef
2016-08-08 15:19:24 -04:00
Nicolas Silva
34d30ff986 Bug 1293772 - Check that the TextureClient is not internally shut down in Lock, Unlock and BorrowDrawTarget. r=jnicol 2016-08-10 14:30:42 +02:00
Andrew Comminos
17217db998 Bug 594876 - Accelerate layers by default for nightlies on Linux. r=nical
MozReview-Commit-ID: FtGqib9SIFD

--HG--
extra : rebase_source : 84cd1054d4bdd47a7ce8b3c3ecc3047c169aa4f5
2016-06-24 17:56:26 -04:00
Andrew Comminos
2f39b03b30 Bug 594876 - Update test_acceleration.html to accomodate only taskcluster instances using layers acceleration. r=nical
MozReview-Commit-ID: 5ZVKSHn8POW

--HG--
extra : rebase_source : d7ca4951bc39f4b0d51298dcb745e81641d9aef7
2016-06-24 17:57:20 -04:00
Lee Salzman
ca87957544 Bug 1200684 - revise Skia row blits to preserve color when blended against itself. r=mchang
MozReview-Commit-ID: Enz05s8vGuI
2016-08-05 19:50:49 -04:00
Mason Chang
197188c032 Bug 1292378 - VerifyRGBXFormat has an incorrect width calculation. r=lsalzman 2016-08-05 10:26:33 -07:00
Carsten "Tomcat" Book
a826042a1d Merge mozilla-central to mozilla-inbound 2016-08-05 12:03:44 +02:00
Carsten "Tomcat" Book
cf611bec79 merge mozilla-inboudn to mozilla-central a=merge 2016-08-05 12:01:14 +02:00
Andrew Comminos
6417a88066 Bug 1292326 - Let layers.acceleration.force-enabled apply to the OPENGL_COMPOSITING feature. r=jrmuizel
MozReview-Commit-ID: 2Lx4CVOao6S

--HG--
extra : rebase_source : b7d3ff19ab2e219ac78a681d7a7785f2f6b57abe
2016-08-04 16:15:20 -04:00
David Anderson
cf5f37f7c3 Add BrowserTabsRemoteAutostart to gfxVars. (bug 1288259 part 6, r=jrmuizel)
--HG--
extra : rebase_source : 4e9dce46b658ecf7a13afaa2e9bb1ba35714c38f
2016-08-04 11:33:44 -07:00
David Anderson
27679a9d30 Move UseXRender from gfxPlatformGtk to gfxVars. (bug 1288259 part 5, r=jrmuizel)
--HG--
extra : rebase_source : e2f8337fe9063ba4bd316c5ae4cb6b475f70d36f
2016-08-04 11:33:44 -07:00
David Anderson
bf733b4fbb Add the 2D content backend to gfxVars. (bug 1288259 part 4, r=jrmuizel)
--HG--
extra : rebase_source : e805a138c71963f4f80ec218d9be05fde6544f02
2016-08-04 11:33:44 -07:00
David Anderson
456bcd0248 Move TileSize from gfxPlatform to gfxVars. (bug 1288259 part 3, r=jrmuizel)
--HG--
extra : rebase_source : 5a48bb72b10c8d9c1c5c96b8d2076a6d33cabc24
2016-08-04 11:33:43 -07:00
David Anderson
9e49bc37bb Introduce gfxVars for sharing graphics variables across processes. (bug 1288259 part 2, r=jrmuizel,billm)
--HG--
extra : rebase_source : cbac742f7165a2fbdec3e4d1179c9ed49324579f
2016-08-04 11:33:42 -07:00
Markus Stange
ebb461c874 Bug 1012752 - Snap scrolled area to layer pixels. r=tnikkel
We want the maximum scroll position to be aligned with layer pixels. That way
we don't have to re-rasterize the scrolled contents once scrolling hits the
edge of the scrollable area.

Here's how we determine the maximum scroll position: We get the scroll port
rect, snapped to layer pixels. Then we get the scrolled rect and also snap
that to layer pixels. The maximum scroll position is set to the difference
between right/bottom edges of these rectangles.
Now the scrollable area is computed by adding this maximum scroll position
to the unsnapped scroll port size.
The underlying idea here is: Pretend we have overflow:visible so that the
scrolled contents start at (0, 0) relative to the scroll port and spill over
the scroll port edges. When these contents are rendered, their rendering is
snapped to layer pixels. We want those exact pixels to be accessible by
scrolling.

This way of computing the snapped scrollable area ensures that, if you scroll
to the maximum scroll position, the right/bottom edges of the rendered
scrolled contents line up exactly with the right/bottom edges of the scroll
port. The scrolled contents are neither cut off nor are they moved too far.
(This is something that no other browser engine gets completely right, see the
testcase in bug 1012752.)

There are also a few disadvantages to this solution. We snap to layer pixels,
and the size of a layer pixel can depend on the zoom level, the document
resolution, the current screen's scale factor, and CSS transforms. The snap
origin is the position of the reference frame. So a change to any of these
things can influence the scrollable area and the maximum scroll position.
This patch does not make us adjust the current scroll position in the event
that the maximum scroll position changes such that the current scroll position
would be out of range, unless there's a reflow of the scrolled contents. This
means that we can sometimes render a slightly inconsistent state where the
current scroll position exceeds the maximum scroll position. We can fix this
once it turns out to be a problem; I doubt that it will be a problem because
none of the other browsers seems to prevent this problem either.

The size of the scrollable area is exposed through the DOM properties
scrollWidth and scrollHeight. At the moment, these are integer properties, so
their value is rounded to the nearest CSS pixel. Before this patch, the
returned value would always be within 0.5 CSS pixels of the value that layout
computed for the content's scrollable overflow based on the CSS styles of the
contents.
Now that scrollWidth and scrollHeight also depend on pixel snapping, their
values can deviate by up to one layer pixel from what the page might expect
based on the styles of the contents. This change requires a few changes to
existing tests.
The fact that scrollWidth and scrollHeight can change based on the position of
the scrollable element and the zoom level / resolution may surprise some web
pages. However, this also seems to happen in Edge. Edge seems to always round
scrollWidth and scrollHeight upwards, possibly to their equivalent of layout
device pixels.

MozReview-Commit-ID: 3LFV7Lio4tG

--HG--
extra : rebase_source : 3e4e0b60493397e61283aa1d7fd93d7c197dec29
extra : source : d43c2d5e87f31ff47d7f3ada66c3f5f27cef84a9
2016-08-04 23:51:58 -04:00
Sotaro Ikeda
0ca92913eb Bug 1275441 - Use libyuv for scaling YUV color conversion r=jrmuizel 2016-08-04 19:30:01 -07:00
Miko Mynttinen
9ea7cd8eb6 Bug 1291490 - File gfx/qcms/transform_util.h is missing a header. r=bgirard
Include the missing math.h header.

MozReview-Commit-ID: BozHU59BGkF

--HG--
extra : transplant_source : %02%95%3F-k%FF%BA_%C7%1CU%CBU%29c%D7%82%9F%04J
2016-08-02 15:41:56 -07:00
Ethan Lin
41b10604fb Bug 1290628 - Change the assertion rule to prevent assert with large number. r=lsalzman 2016-08-02 19:47:00 +02:00
James Willcox
0fbdac5122 Bug 1255628 - Remove AndroidNativeWindow, as we can use the NDK functions directly now r=rbarker 2016-08-04 09:23:34 -05:00
Ryan VanderMeulen
7eab76e86d Merge m-c to autoland. a=merge 2016-08-22 09:42:13 -04:00
Bas Schouten
37341a7ea4 Bug 1293586: Don't use command lists for an effect when that command list already has an effect with a command list used inside of it. r=mstange
MozReview-Commit-ID: 2T2wdUaWgMC

--HG--
extra : rebase_source : f569e9b5613bf8cf419792251335e07a7f743607
2016-08-22 13:22:01 +02:00
Sotaro Ikeda
81eb242627 Bug 1299410 - Shrink TextureClientRecycleAllocator more aggressively r=nical 2016-08-31 21:51:32 -07:00
Stone Shih
4c774b11b2 Bug 1292070 - Part 2: Add API to synthesize mouse event with buttons. f=bevistseng, r=smaug
--HG--
extra : rebase_source : c676026e30c857b2a19854285f8bb40c47c58267
extra : histedit_source : c1ee981e9ab821a51d3abb96b1d2d334ffe8e0d2
2016-08-18 11:58:48 +08:00
Jason Woofenden
9a198c4a58 Bug 1008019 - Allow whitespace to "hang" at soft-wrap boundaries when white-space:pre-wrap is in effect. r=jfkthame 2016-03-20 17:54:00 -04:00
Jason Woofenden
7dddb003fd Bug 1008019 - Allow whitespace to "hang" at soft-wrap boundaries when white-space:pre-wrap is in effect. r=jfkthame 2016-03-20 17:54:00 -04:00
George Wright
7f34cdcfa6 Bug 1297797 - Set the process name for the GPU process r=dvander 2016-08-25 14:39:17 -04:00
Lee Salzman
0de02db832 Bug 1297201 - apply offset after pattern matrix in DrawTargetSkia::MaskSurface. r=mchang
MozReview-Commit-ID: 9fjb0jAhlm3
2016-08-25 14:27:24 -04:00
Wes Kocher
1f49af4fc0 Backed out 2 changesets (bug 1297850) for robocop bustage a=backout CLOSED TREE
Backed out changeset e83c9eb279a9 (bug 1297850)
Backed out changeset 979694026137 (bug 1297850)
2016-08-25 11:29:35 -07:00
Sebastian Hengst
9c03d71187 Backed out changeset dd4f2955a72f (bug 1297567) for build bustage (overriding member function). r=backout on a CLOSED TREE 2016-08-25 20:16:18 +02:00
David Anderson
eb1cbc89c7 Fix dangling IPDL pointer in ClientContainerLayer. (bug 1297567, r=nical) 2016-08-25 10:45:16 -07:00
kearwood
129f2f75a0 Bug 1186578 - [webvr] Implement OpenVR/SteamVR support,r=gw280
MozReview-Commit-ID: LmpcMJubrYR

--HG--
extra : rebase_source : c5d767c635bed9fa74ca94b2ce75952f20106702
2016-07-22 12:41:00 -07:00
Mason Chang
b4272bd4ed Bug 1295214. Correct for negative vsync timestamps on windows. r=jrmuizel 2016-08-25 08:53:07 -07:00
Randall Barker
4839c748eb Bug 1297850 - part 1, Remove dead code left behind after JPZ removal. r=jchen 2016-08-25 08:14:52 -07:00
Xidorn Quan
09f09b5e7b Bug 1288255 - Clear hyphen width cache when user fonts update. r=jfkthame
MozReview-Commit-ID: 66zUQIFafdh

--HG--
extra : rebase_source : c8deb44e0f2eb6de0aedc7041bb79435d18ca354
2016-08-18 11:26:50 +10:00
Alexandre Lissy
3bd7d65110 Bug 1296206 - Include ImageBridgeChild not only on Windows r=nical
MozReview-Commit-ID: KV3aMAiYCJr

--HG--
extra : rebase_source : b27ab5d0519e9c207f5be579071578a108fc2a89
2016-08-18 10:35:59 +02:00
Alexandre Lissy
32ed27449d Bug 1296205 - Add missing header SprintfLiteral r=nical
MozReview-Commit-ID: CMXWTJhjiYU

--HG--
extra : rebase_source : c2c821964504776d54b43402d0cec596513a5155
2016-08-18 08:33:22 +02:00
David Anderson
45cab1b1db Initialize COM in the GPU process. (bug 1294350 part 2, r=aklotz) 2016-08-13 12:25:26 -07:00
David Anderson
7d910bdf74 Ensure gfx-related services are started and shutdown properly in the GPU process. (bug 1294350 part 1, r=rhunt) 2016-08-13 12:25:18 -07:00
David Anderson
4257f1eff2 Remove fallback to WARP, but keep the force pref for testing. (bug 1294343, r=jrmuizel) 2016-08-13 12:18:50 -07:00
David Anderson
e12140216e Don't use nsIGfxInfo in CompositorD3D11. (bug 1294339, r=mattwoodrow) 2016-08-13 12:12:51 -07:00
David Anderson
eade90a86b Clean up D3D11 device creation. (bug 1292680, r=mattwoodrow) 2016-08-13 12:04:03 -07:00
Jeff Gilbert
843dfc0dea Bug 1290634 - Handle out-of-bounds copyTexImage on D3D9 ANGLE. - r=jerry
MozReview-Commit-ID: DLqI714FBuv
2016-08-12 17:48:17 -07:00
kearwood
905f496ed5 Bug 1250244 - Part 8: Implement WebVR DOM Events,r=bz
MozReview-Commit-ID: 4Fk0WszVTBR
2016-07-04 15:46:49 -07:00
Kearwood (Kip) Gilbert
434f167559 Bug 1250244 - Part 7: Implement WebVR 1.0 API,r=bz
MozReview-Commit-ID: JTOmaWePlJq
2016-02-24 15:54:50 -08:00
Kearwood (Kip) Gilbert
0fa5a8cb30 Bug 1250244 - Part 6: Replace VRStateValidFlags with VRDisplayCapabilityFlags,r=gw280
MozReview-Commit-ID: 2D4isWasWMz
2016-04-18 12:12:33 -07:00
Kearwood (Kip) Gilbert
0fa828c884 Bug 1250244 - Part 5: Rename VRDevice to VRDisplay,r=bz
- In order to reduce the size of the following patches
  and increase their readability, we rename VRDevice
  to VRDisplay here first.

MozReview-Commit-ID: 3pv8scdIi5w
2016-04-12 17:39:28 -07:00
Kearwood (Kip) Gilbert
20e3431c17 Bug 1250244 - Part 4: Remove Cardboard VR Support,r=gw280
- The Cardboard VR support has hardcoded values and uses low-performance
  orientation APIs and rendering paths.
- There is little benefit to this Cardboard VR implementation over using
  polyfills.
- A future implementation would be based on Google VR support in Android N
  and/or Samsung Gear VR Oculus Mobile APIs.

MozReview-Commit-ID: 7e9Th8ZTmj8
2016-05-27 13:49:13 -07:00
Kearwood (Kip) Gilbert
d7f19a6795 Bug 1250244 - Part 3: Remove Oculus 0.5 Runtime support,r=gw280
- Oculus 0.5 runtime was the last to support OSX, but is no longer supported
  on the latest (El Capitan) OSX version and does not support current
  shipping Oculus hardware.
- Oculus 1.x runtime will continue to be supported for Oculus on Windows.

MozReview-Commit-ID: 2c7qViLoyr0
2016-05-27 13:49:09 -07:00
Kearwood (Kip) Gilbert
2c3a6a5f88 Bug 1250244 - Part 2: Remove old VR rendering paths,r=gw280
MozReview-Commit-ID: 8H7spQggI2w
2016-05-27 13:49:04 -07:00
Mason Chang
1559a95bbf Bug 1294347. Use Dwrite fonts with the skia backend by default. r=dvander 2016-08-11 14:02:11 -07:00
Kartikaya Gupta
b7a8c77ac6 Bug 1162771 - Fall back to using the non-anonymous ancestor node of the target if the anonymous target is disconnected from the document. r=smaug
MozReview-Commit-ID: 8FLXSWqQnk1
2016-08-18 07:13:29 -04:00
Sebastian Hengst
7ab46a480a Backed out changeset 775fa3ede160 (bug 1294351) for failing in crashtest 647480.html. r=backout 2016-08-18 12:50:56 +02:00
Nicolas Silva
8173818111 Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas 2016-08-17 14:39:03 +02:00
Sotaro Ikeda
094b122088 Bug 1289829 - Change mask SurfaceSize calculation r=mattwoodrow 2016-08-18 02:19:55 -07:00
Brian Birtles
4bf632c00c Bug 1286476 part 2 - Respect the playback rate when calculating phase boundaries; r=hiro
This implements the spec change in 21de090dac

The spec change refers to a binary 'animation direction' flag. Instead of that,
however, we just pass the playback rate along and use it inside
GetComputedTimingAt since this seems simpler.

Also, this patch moves the implementation of
KeyframeEffectReadOnly::GetComputedTiming from the header file into the .cpp
file. This is because with this change, GetComputedTiming needs to call
mAnimation->PlaybackRate() and so mozilla::dom::Animation needs to be a complete
type. However, simply including Animation.h doesn't work because of a cyclic
dependency between KeyframeEffect.h and Animation.h. We might be able to fix
this later but since yet-to-land bug 1049975 moves this code around a lot, I'd
rather not touch it too much just now.

MozReview-Commit-ID: 1h6XRh4xmfI
2016-08-17 08:28:41 +09:00
Lee Salzman
dbe0c4bffe Bug 1295079 - check if FcPattern creation fails in gfxFontconfigFontEntry::CreateFontInstance. r=jfkthame
MozReview-Commit-ID: 1dFKnP4rQgx
2016-08-17 12:01:01 -04:00
Carsten "Tomcat" Book
389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Carsten "Tomcat" Book
03f2893f26 Backed out changeset 5b940f1bf535 (bug 1289829) for reftest failures 2016-08-04 09:58:10 +02:00
Sotaro Ikeda
4bf4a29dce Bug 1289829 - Change mask SurfaceSize calculation r=mattwoodrow 2016-08-03 19:00:19 -07:00
Lee Salzman
658901461a Bug 1291856 - push clip before drawing GTK3 widgets. r=acomminos
MozReview-Commit-ID: 84Y8sBg7NzF
2016-08-03 20:24:39 -04:00
Emilio Cobos Álvarez
e1e6b574d9 Bug 1288938: layout: Move the GlyphObserver to the text run instead of the frame. r=jfkthame
MozReview-Commit-ID: KphTCkcZeid
2016-08-03 10:53:37 -07:00
Andrew Comminos
b8d09bb817 Bug 1291845 - Use the compositor X display on the GLX VSync thread. r=lsalzman
MozReview-Commit-ID: ZC5MJd0BUJ

--HG--
extra : rebase_source : a8c035a02355c2dfa24a28ba125ddb4b13304e3a
2016-08-03 15:59:15 -04:00
Alexandre Lissy
0af5b943b6 Bug 1284674 - Remove NUWA r=cyu
MozReview-Commit-ID: GyMRNzOBKw6

--HG--
extra : rebase_source : 293af1cd55f2035ce6a99f4ebf144059c32a2b8f
2016-08-02 14:54:00 +02:00
Nathan Froyd
e53dd1c5f7 Bug 1290160 - followup to fix static analysis bustage on a CLOSED TREE; r=me 2016-08-03 17:17:22 -04:00
Nathan Froyd
6a26598a10 Bug 1290160 - reduce codesize required by gfxPrefs; r=milan
Every gfxPrefs::PrefTemplate template declares its own virtual function
overrides for functions declared in gfxPrefs::Pref.  The compiler must
therefore create separate copies of each of these virtual functions when
it instantiates PrefTemplate.  Since several of these virtual functions
only depend on the template parameter T, the type of the pref, many
instantiations of the functions are identical.  The duplicate functions
would normally be merged by identical code folding performed in the
linker, but since these are virtual functions and therefore have their
addresses taken (to be stored in the class's vtable), the linker (at
least for the settings we use for identical code folding) cannot fold
duplicated functions together.

Therefore, we have to do the de-duplication ourselves, by creating an
intermediate templated base class that only depends on the type of the
pref.  With this class, only three copies of each virtual function will
be created (one each for bools, floats, and ints).  We sneak in
GetLiveValue() into this base class for another small codesize win, even
though it's not a virtual function.
2016-08-03 17:02:33 -04:00
Kartikaya Gupta
6962e151a2 Bug 1273356 - Remove the unused and incorrect ComputeRenderIntegrity codepath for computing checkerboard. r=rbarker
MozReview-Commit-ID: 4i1rmeqrkZ1
2016-08-03 11:59:08 -04:00
Mason Chang
25944ce750 Bug 942688 - Draw Cocoa Widget without assuming DrawTargetCG. r=mstange 2016-08-03 07:53:12 -07:00
Matt Woodrow
80d8ecc1fd Bug 1284672 - Try use an exsiting D3D11 device for video rather than creating new ones. r=dvander
--HG--
extra : rebase_source : 16208d3a63ea64e824d283f57c8f53c958900de6
2016-08-02 18:46:27 +12:00
Matt Woodrow
51b6bd9f58 Bug 1289640 - Part 6: Allow access to the D3D11 content device from other threads. r=dvander
--HG--
extra : rebase_source : 63d31cb207e6d8903fb0bef268c4d1a1a24bf11f
2016-08-03 15:28:18 +12:00
Matt Woodrow
2254f8e498 Bug 1289640 - Part 5: Delete the D3D11 image bridge device since it no longer has any callers. r=dvander
--HG--
extra : rebase_source : 8ed9418b70d889f8544e23cd624925835e62e9dd
2016-08-02 17:58:17 +12:00
Matt Woodrow
2c65f7fdb0 Bug 1289640 - Part 4: Make SourceSurfaceImage::GetTextureClient use the threadsafe upload with D3D11 so that we no longer rely on having a separate device. r=nical
--HG--
extra : rebase_source : aa63efd52e1b013251392e3bd4ec29af0e1286f0
2016-08-02 17:57:41 +12:00
Matt Woodrow
cd24a38c5a Bug 1289640 - Part 3: Add a new constructor for D3D11TextureData that does threadsafe uploading. r=Bas
--HG--
extra : rebase_source : 5a57cf9addc68025cdaa13458c10ade3686bbec4
2016-08-02 17:55:44 +12:00
Matt Woodrow
7b18f355cb Bug 1289640 - Part 2: Stop using the D3D11 immediate context to upload texture data in IMFYCbCrImage and stick to threadsafe APIs so that we can use the content device. r=Bas
--HG--
extra : rebase_source : 1186b758656f07ef786f7d182a6474b050b9367e
2016-08-02 17:53:06 +12:00
Matt Woodrow
369e4deebe Bug 1289640 - Part 1: Make SharedSurfaceANGLE code use the content D3D11 device since we should only ever run on the main thread and would have used this device already. r=jgilbert
--HG--
extra : rebase_source : 9f698971f6b77161b2f7314befd889bc944aee2e
2016-08-02 17:52:29 +12:00
Jonathan Watt
db80f397f6 Bug 1058040, part 2 - Rename gfxTextContextPaint to SVGContextPaint and add some code comments. r=dholbert 2016-07-22 14:56:09 +01:00
Jonathan Watt
c5d930fd27 Bug 1058040, part 1 - Move gfxTextContextPaint to a separate file to enable use in imagelib. r=dholbert 2016-07-22 12:07:39 +01:00
David Anderson
200c842944 Fix OpenGL mix-blending when the source alpha is 0. (bug 1281593 part 2, r=mstange)
--HG--
extra : rebase_source : 78f3c5a99927d5100d93e161ab0e08574ee46f8c
2016-08-02 11:43:15 -07:00
David Anderson
334f06fca3 Fix D3D11 mix-blending when the source alpha is 0. (bug 1281593 part 1, r=mstange)
--HG--
extra : rebase_source : bec9c0b07e07200e3b770a15f0b120d5d62dbbd7
2016-08-02 11:43:15 -07:00
Jonathan Watt
0e69308cc1 Bug 1290781 - Make the propagation of context paint to SVG glyphs much more robust. r=heycam 2016-07-21 14:33:11 +01:00
Stone Shih
f226c252d4 Bug 1285070 - Real touch events will generate corresponding pointer events twice. r=kats 2016-07-07 09:53:38 +08:00
Carsten "Tomcat" Book
336c76b079 Merge mozilla-central to mozilla-inbound 2016-08-04 16:07:29 +02:00
Sotaro Ikeda
a6770561f9 Bug 1289829 - Change mask SurfaceSize calculation r=mattwoodrow 2016-08-04 06:09:25 -07:00
Stone Shih
f8f5ef1c1a Bug 1285128 - Should not generate pointer events for those synthesized events that are not dispatched to DOM. r=smaug 2016-07-07 15:28:11 +08:00
Iris Hsiao
c9e5c33bd4 Backed out changeset d303f553f817 (bug 1289640) 2016-08-02 16:51:36 +08:00
Iris Hsiao
6d48efa876 Backed out changeset d55d65c8fb73 (bug 1289640) 2016-08-02 16:51:30 +08:00
Iris Hsiao
bcf0cac2bd Backed out changeset 2e93b1e3adf0 (bug 1289640) 2016-08-02 16:51:24 +08:00
Iris Hsiao
d1330cfd9f Backed out changeset 0d4ae62cc21a (bug 1289640) 2016-08-02 16:51:20 +08:00
Iris Hsiao
3c82adc54e Backed out changeset 5ce69082c2fb (bug 1289640) 2016-08-02 16:51:16 +08:00
Iris Hsiao
74a4c960e4 Backed out changeset 2120884d5cb5 (bug 1284672) 2016-08-02 16:51:11 +08:00
Iris Hsiao
3a6363f152 Backed out changeset e69e260d5dc7 (bug 1289640) for Assertion failure on DeviceManagerD3D11.cpp 2016-08-02 16:50:14 +08:00
Matt Woodrow
b37f479ee0 Bug 1285174 - Make sure we render layers even if they are currently hidden (since that can change asynchronously). r=mstange 2016-08-02 18:47:26 +12:00
Matt Woodrow
a6c0c60716 Bug 1284672 - Try use an exsiting D3D11 device for video rather than creating new ones. r=dvander
--HG--
extra : rebase_source : 0e9b01742f1726bf385bf28257392415a09360bd
2016-08-02 18:46:27 +12:00
Matt Woodrow
8a4439734f Bug 1289640 - Fix non-Windows build bustage 2016-08-02 18:15:01 +12:00
Matt Woodrow
f1c314c175 Bug 1289640 - Part 5: Delete the D3D11 image bridge device since it no longer has any callers. r=dvander 2016-08-02 17:58:17 +12:00
Matt Woodrow
8a78323b3b Bug 1289640 - Part 4: Make SourceSurfaceImage::GetTextureClient use the threadsafe upload with D3D11 so that we no longer rely on having a separate device. r=nical 2016-08-02 17:57:41 +12:00
Matt Woodrow
c4533b81ff Bug 1289640 - Part 3: Add a new constructor for D3D11TextureData that does threadsafe uploading. r=Bas 2016-08-02 17:55:44 +12:00
Matt Woodrow
a9cb9eb75a Bug 1289640 - Part 2: Stop using the D3D11 immediate context to upload texture data in IMFYCbCrImage and stick to threadsafe APIs so that we can use the content device. r=Bas 2016-08-02 17:53:06 +12:00
Matt Woodrow
8917dc3ec5 Bug 1289640 - Part 1: Make SharedSurfaceANGLE code use the content D3D11 device since we should only ever run on the main thread and would have used this device already. r=jgilbert 2016-08-02 17:52:29 +12:00
Seth Fowler
c379e3a8ce Bug 1290681 (Part 3) - Remove the single color optimization pref. r=edwin 2016-08-01 17:51:15 -07:00
Jeff Gilbert
8ada226207 Bug 1290987 - s/enable-prototype-webgl2/enable-webgl/ - r=jrmuizel,mrbkap CLOSED TREE
MozReview-Commit-ID: 3EArs8BLTpK
2016-08-01 14:13:01 -07:00
Nicolas Silva
95f6fa7521 Bug 1290498 - Process deferred texture ReadUnlock after compositor swap instead of before. r=sotaro 2016-08-01 14:47:57 +02:00
Jeff Gilbert
1a4ea58191 Bug 1289655 - Add prim_restart and prim_restart_fixed GLFeatures. - r=mtseng
MozReview-Commit-ID: 7uXZkyZTvKW
2016-08-01 01:20:12 -07:00
Carsten "Tomcat" Book
fc8e03f0d8 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Carsten "Tomcat" Book
3c40ac6f0b merge mozilla-inbound to mozilla-central a=merge 2016-07-30 16:20:57 +02:00
George Wright
cf7ed9ce47 Bug 1289525 - Grow the pool one at a time instead of in chunk of increment size r=jrmuizel 2016-07-30 00:20:28 -04:00
eyim
084d1d4163 Bug 1289873 - correction made for compositing failure ids in failure path not showing up r=BenWa
MozReview-Commit-ID: CRIJwplDBYS

--HG--
extra : rebase_source : 904fedf86ae1ed489138eb99a2b4c3f34967f369
2016-07-29 11:41:33 -04:00
Ethan Lin
3a8eda58a3 Bug 1289276 - Add gfxPlatform::CreateSimilarSoftwareDrawTarget to unify software fallback backend. r=mstange 2016-07-28 18:32:00 -04:00
Carsten "Tomcat" Book
37be51f16a merge mozilla-inbound to mozilla-central a=merge 2016-07-28 17:43:03 +02:00
Edwin Flores
6a26412016 Bug 1245747 - Handle ANGLE device reset failure - r=jgilbert 2016-07-28 11:45:27 +01:00
Andi-Bogdan Postelnicu
af228209b4 Bug 1282408 - add ignore initialization check flag for mProcessToken from GPUProcessManager. r=jrmuizel@mozilla.com
MozReview-Commit-ID: DW4whzEYdbl
2016-07-28 11:33:17 +03:00
Andi-Bogdan Postelnicu
a40e2399f2 Bug 1282408 - add ignore initialization check flag for variables from GlyphRunIterator. r=jrmuizel
MozReview-Commit-ID: 1KAlxDtZyMe
2016-07-28 11:30:09 +03:00
Benoit Girard
4b52de5ec9 Bug 1283594 - CANVAS_WEBGL_ACCL_FAILURE_ID reports success as empty string. r=jrmuizel
MozReview-Commit-ID: B8rzSG5wk83

--HG--
extra : rebase_source : 1a801f65fe8247d836e8e48f65f67954b4e82fad
2016-07-27 17:14:19 -04:00
Ryan Hunt
7467d1ee3f Bug 1288860 - Change GLContextProvider to use CompositorWidget. r=jrmuizel
--HG--
extra : rebase_source : 92e481ef6b499d773e6e98591f22675b05b71c69
2016-07-25 14:41:00 -04:00
Eric Rahm
9b63cf4f52 Bug 1289598 - Remove warning about software vsync. r=mchang 2016-07-27 11:46:39 -07:00
Lee Salzman
67a15db27a Bug 1283330 - take floating point inaccuracy into account for assertions in DecomposeIntoNoRepeatRects. r=nical 2016-07-27 12:23:34 -04:00
Mason Chang
1423b59715 Bug 1278408. Report a constant vsync interval diff on windows. r=jrmuizel 2016-07-26 11:12:24 -07:00
Nicolas Silva
a4ee782267 Bug 1289380 - Simplify PersistentBufferProviderShared. r=edwin 2016-07-27 16:50:20 +02:00
Carsten "Tomcat" Book
7293066753 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Carsten "Tomcat" Book
c7daad6dfa Merge mozilla-central to autoland
--HG--
extra : rebase_source : d5055aadf892d3d33fa0712e1a67911db869e7d5
2016-07-27 08:18:13 +02:00
Daisuke Akatsuka
4f153efd27 Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz

--HG--
extra : rebase_source : b26d9d25c2dd54f7ec0e12dd51127229cb085346
2016-07-27 10:13:17 +09:00
Nicolas Silva
ff0e3782b1 Bug 1284837 - Build fix. We need to to unbreak m-c and other trees builds. a=tomcat 2016-07-26 18:55:28 +02:00
Nicolas Silva
40a96c03f2 Bug 1284837 - Add conversions methods from Point and Size to IntPoint and IntSize for consistency. r=botond 2016-07-26 16:48:34 +02:00
Nicolas Silva
48805c9b3e Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Carsten "Tomcat" Book
80686f0c22 Backed out changeset c5b0b62fc39e (bug 1245747) for bustage 2016-07-26 14:36:56 +02:00
Edwin Flores
6de3bae6e3 Bug 1245747 - Terminate the EGL display on context loss - r=jgilbert 2016-07-26 13:31:22 +01:00
Nicolas Silva
bb3d4526fe Bug 1289105 - Don't use use PersistentBufferProviderShared if the canvas layer is unlikely to be chared with the compositor process. r=jnicol 2016-07-26 12:57:03 +02:00
Nicolas Silva
b62eea13f0 Bug 1284384 - Don't crash if TextureClient::Destroy is called between Lock and Unlock. r=sotaro 2016-07-26 12:56:38 +02:00
Jamie Nicol
87c6d84379 Bug 1289005 - Handle GL_BGRA_EXT in GetBytesPerTexel; r=snorp
Also, do not MOZ_CRASH for unknown types and formats. The
gfxCriticalError will assert in debug builds and provide the values of
unknown types or formats.

MozReview-Commit-ID: 46sWBdOdqiE

--HG--
extra : transplant_source : %1CP%D9%AD%27%B25%7F%88jir%AD%CD%0A%C1%FF3A%9D
2016-07-25 14:24:34 +01:00
Andi-Bogdan Postelnicu
790a748311 Bug 1282408 - add ignore initialization check flag for variables from TestNodeBase. r=jrmuizel
MozReview-Commit-ID: BZC7SnvmOKl
2016-07-27 10:43:46 +03:00
Randall Barker
4f9ca91292 Bug 1289322 - Link clicking is detected in the wrong location r=kats 2016-07-26 19:12:29 -07:00
Carsten "Tomcat" Book
aa2bc77d7f Merge mozilla-central to mozilla-inbound 2016-07-26 11:57:38 +02:00
Carsten "Tomcat" Book
574d0d452b merge mozilla-inbound to mozilla-central a=merge 2016-07-26 11:55:54 +02:00
David Anderson
d3cb1d23af Send vsync rates to the compositor to avoid querying gfxPlatform. (bug 1288822, r=mchang) 2016-07-26 01:57:11 -07:00
David Anderson
438a11aa5a Fix typo in GPUChild::Init. (bug 1289205, r=rhunt) 2016-07-25 23:18:01 -07:00
Lee Salzman
bd57e359b9 Bug 1269960 - only enable Skia as an available backend when it is compiled in. r=mchang
MozReview-Commit-ID: 9W2ba5cd1cX
2016-07-25 20:42:09 -04:00
Kartikaya Gupta
166816e4b0 Bug 1287576 - Update the touch-behavior notification code to behave like the set-target-apzc notification code. r=botond
In particular, this change uses the root frame of the touch target document,
so that the correct presShell resolution is used when doing the touch-action
hit test.

MozReview-Commit-ID: 2bra6PIRqkR
2016-07-25 20:35:03 -04:00
Kartikaya Gupta
4ba7371861 Bug 1287576 - Extract a helper method to update a frame to the touch target document's root frame. No functional changes. r=botond
MozReview-Commit-ID: 3SRxAfTeMR
2016-07-25 20:35:03 -04:00
Kartikaya Gupta
2ce1dbdf14 Bug 1287576 - Change namespace and do some formatting cleanup for TouchActionHelper. r=botond
MozReview-Commit-ID: 5Ih5NipLKwI
2016-07-25 20:35:03 -04:00
Kartikaya Gupta
70f1d5a41e Bug 1288187 - Enable touch tests on OS X. r=botond
Also remove a bunch of superfluous window.TouchEvent checks, because the test
harness forces the touch events enabled so the checks are never false.

MozReview-Commit-ID: FQcQiuo1sQ9
2016-07-25 17:33:10 -07:00
Kartikaya Gupta
0c64d2705e Bug 1278009 - After changing the touch-action property, ensure we flush layout before waiting for the paint. r=botond
MozReview-Commit-ID: IVhg3FoPsW9
2016-07-25 17:27:05 -07:00
Mason Chang
4b1b00a0f7 Bug 1279063. Part 3: Memset RGBX surfaces to 0xFF in Factory::CreateDataSourceSurface. r=lsalzman 2016-07-25 16:36:36 -07:00
Mason Chang
259933fb0b Bug 1279063. Part 2: Use RGBA instead of RGBX surface format for DXVA video. r=bas 2016-07-25 16:36:36 -07:00
Mason Chang
74f3ee9f9b Bug 1279063 - Part 1: Don't assume cairo is the default software backend. r=lsalzman 2016-07-25 16:36:35 -07:00
Jeff Gilbert
6790ba91a7 Bug 1288649 - Remove NextPowerOfTwo. - r=jrmuizel
MozReview-Commit-ID: 9CR6lscs3d2
2016-07-25 14:46:28 -07:00
Jeff Gilbert
017f27acce Bug 1288649 - Use mfbt IsPowerOfTwo funcs in gfx/. - r=jrmuizel
While fixing non-unified-build errors in dom/canvas, I started hitting a
static_assert that we were calling IsPowerOfTwo with a signed type. It
turns out we have at least three copies of IsPowerOfTwo() in the tree.
Let's drop the non-mfbt ones.

MozReview-Commit-ID: 1fwQw0CrgiE
2016-07-25 14:46:23 -07:00
Andrew Comminos
1c43032b0b Bug 1286847 - Only enable scissor testing where required in the GL compositor. r=nical
MozReview-Commit-ID: 5mxlDtY1YgK

--HG--
extra : rebase_source : 9c9662fd6a43ece2b34b4468213e7f5bf98145a3
2016-07-18 14:34:40 -04:00
Andrew Comminos
6fa3ed32ec Bug 1286847 - Remove calls to XGetGeometry from the compositor thread. r=jgilbert,jrmuizel
MozReview-Commit-ID: IAd2y1FgiFn

--HG--
extra : rebase_source : 48bab0df53c02a0abc8bf65927882526aa54e0bf
2016-07-12 15:01:21 -04:00
Carsten "Tomcat" Book
b9a6c687fa merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Benoit Girard
90c16684c7 Bug 1288954 - Only log error if failureId is set. r=jrmuizel
MozReview-Commit-ID: HsjNnHTqaya

--HG--
extra : rebase_source : 17858078f32ecb34146453441bb4f6405c30fcd9
2016-07-24 11:11:09 -04:00
Botond Ballo
be99d4ba83 Bug 1214151 - If a sticky element does not consume all of the un-adjustment for an async transform, allow a descendant fixed or sticky element to consume it. r=mstange
MozReview-Commit-ID: HHGjs4GZGNX

--HG--
extra : rebase_source : 9e31e1135e7be90006529ce205d575b2dcd67c27
2016-06-29 18:25:31 -04:00
Lee Salzman
1e8ad08b0b Bug 1287552 - only set FC_PIXEL_SIZE in pattern if not already supplied. r=me
MozReview-Commit-ID: 9IVzZA4oohZ
2016-07-25 15:00:06 -04:00
Lee Salzman
db08b356a2 Bug 1288872 - verify cairo_scaled_font creation succeeds in SkFontHost_cairo. r=mchang
MozReview-Commit-ID: JKRiyQgi9Y2
2016-07-22 21:23:56 -04:00
Sotaro Ikeda
2c8122c501 Bug 1250914 - Create gl texture for each video frame drawing to SkiaGL canvas r=jrmuizel 2016-07-22 18:10:13 -07:00
Lee Salzman
53ccdb5268 Bug 1288762 - Fix gfxFontconfigFontBase constructor. r=me 2016-07-22 14:11:59 -04:00
Jamie Nicol
4c00494425 Bug 1164027 - Use MAP_ANONYMOUS instead of opening /dev/zero. r=jrmuizel
MozReview-Commit-ID: 5GeNG5Tm1GS

--HG--
extra : histedit_source : 31e30d68fce2f97015c6e84da953e1b6f04fca50
2016-07-22 14:16:22 +01:00
George Wright
01040de30f Bug 1288474 - Don't accept TextureClient returns if the pool has been destroyed r=nical 2016-07-22 12:17:21 -04:00
Carsten "Tomcat" Book
8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book
336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Sotaro Ikeda
8bd3135b4d Bug 1288569 - Add more mCanSend checks r=nical 2016-07-22 02:42:22 -07:00
Jonathan Kew
ecccb4c485 Bug 1276829 - Don't add fonts to mFontsUsingSVGGlyphs if they did not actually have an SVG table. r=karlt 2016-07-22 06:54:12 +01:00
Kartikaya Gupta
85fd233d34 Bug 1250024 - Fix touch-tap event coordinate transformations when a fullzoom is applied. r=botond
There were a couple of problems when delivering tap gestures to content with
full zoom applied. One was that the ConverToGecko function converted the coords
into "CSS pixel" space by using the web content's CSS-to-LD scale, but also
applied that on the translation from the chrome area. Moving that conversion
to later in the process (after the coords got passed through TabParent::
AdjustTapToChildWidget) corrected that issue.

The other problem was that bits of code in APZEventState and APZCCallbackHelper
were using the widget->GetDefaultScale() value as the CSS-to-LD scale, but that
omitted the full zoom value. Getting the CSS-to-LD scale from the presShell and
propagating that through corrected that issue.

MozReview-Commit-ID: KdrkdEZslHo
2016-07-29 14:44:29 -04:00
Kartikaya Gupta
42160174c0 Bug 1288799 - Add a hook to run a custom onload function in APZ group subtests, and a helper to inject scripts into documents. r=botond
MozReview-Commit-ID: CpNBgSMRIgU
2016-07-29 14:27:39 -04:00
Kartikaya Gupta
0b82edecaf Bug 1290330 - Properly handle pan-x pan-y regions in the APZ hit test. r=botond
MozReview-Commit-ID: BqXVOsVeLEe
2016-07-29 14:26:24 -04:00
Nicolas Silva
1fdb65d654 Bug 1289816 - Simplify CopyableCanvasLayer::UpdateTarget and remove unnecessary copies. r=jnicol 2016-07-29 20:19:28 +02:00
Nicolas Silva
63733308d3 Bug 1290081 - Make canvas layer transactions asynchronous. r=sotaro 2016-07-29 20:19:23 +02:00
Wes Kocher
0291de30b7 Backed out changeset 7d6baa38a04c (bug 1288938) for reftest crashes 2016-07-28 22:43:49 -07:00
Emilio Cobos Álvarez
4e30f13399 Bug 1288938: layout: Move the GlyphObserver to the text run instead of the frame. r=jfkthame
MozReview-Commit-ID: KphTCkcZeid
2016-07-28 15:19:14 -07:00
Wes Kocher
9ed0f44087 Backed out changeset 67cb195b1b45 (bug 1290081) for canvas reftest failures 2016-07-28 13:09:07 -07:00
Wes Kocher
f64e035802 Backed out changeset d51327ec371e (bug 1289816) for canvas reftest failures 2016-07-28 13:08:59 -07:00
Nicolas Silva
ea108a93f6 Bug 1289816 - Simplify CopyableCanvasLayer::UpdateTarget and remove unnecessary copies. r=jnicol 2016-07-28 17:58:42 +02:00
Nicolas Silva
521fea7499 Bug 1290081 - Make canvas layer transactions asynchronous. r=sotaro 2016-07-28 17:58:33 +02:00
eyim
4f99ba6e03 Bug 1288829 - Early return from bad bracket in CompositorOGL.cpp#l355 r=BenWa
MozReview-Commit-ID: 31rNnuNzFmE

--HG--
extra : rebase_source : 70cefa79c9ebb04d659e77170508eed525514a44
2016-07-22 16:53:07 -04:00
Benoit Girard
24566951d0 Bug 1251615 - Add poison values to Layer to check for errors. r=mstange
MozReview-Commit-ID: l22oL5b9oB

--HG--
extra : rebase_source : 376ba3a71ee2b3d8384878b0e0273d2df580ea64
2016-04-27 18:57:44 -04:00
Jim Chen
ce45a595ab Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Lee Salzman
1bc7c6bf66 Bug 1287552 - part 4 - add ScaledFontFontconfig to remember generating FcPattern. r=jrmuizel
MozReview-Commit-ID: AbWjvL5IWCN

--HG--
extra : rebase_source : 9ac07bee30de7b2cdcca84b31c1fb00d9f529c56
2016-07-20 15:07:11 -04:00
Lee Salzman
0956c335eb Bug 1287552 - part 3 - revise SkFontHost_cairo to properly parse Fontconfig options. r=gw280
MozReview-Commit-ID: 40REybKbB6P

--HG--
extra : rebase_source : 95b270ebf8a186f341ef4b6322b6c2296bc73742
2016-07-20 15:06:29 -04:00
Lee Salzman
02261affef Bug 1287552 - part 2 - fix transformed bitmaps with Skia and FreeType. r=gw280
MozReview-Commit-ID: BqiLfOfZZwR

--HG--
extra : rebase_source : 634873d2cc3069e06e2f9c3ea3dfa9e6c3f66961
2016-07-18 15:27:44 -04:00
Lee Salzman
3c3b9525b6 Bug 1287552 - part 1 - backport upstream Cairo fix for computing transform of bitmap fonts. r=jrmuizel
MozReview-Commit-ID: GFHoPOJEaxG

--HG--
extra : rebase_source : a492293691b6ca08e9ae65a6abb19e575aa7afdd
2016-07-18 15:27:40 -04:00
Benoit Girard
9f3f096a00 Bug 1287182 - log angle failureid via ANGLEPlatformInitialize. r=jrmuizel
MozReview-Commit-ID: 7Cg8AOVij1z

--HG--
extra : rebase_source : 16b3f68041ca9beb65409a9b3d59f4ca0d5f41a6
2016-07-15 18:12:46 -04:00
Benoit Girard
7ae0782b02 Bug 1287066 - Restore Layer::SetVisibleRegion behavior to fix invalidation bug. r=mstange
MozReview-Commit-ID: HcstO0EhiWz

--HG--
extra : rebase_source : 9b9f28a5b39a469ad7959ff053334f014acbc1e3
2016-07-21 12:32:53 -04:00
Milan Sreckovic
7b6a6a19d3 Bug 635464: Diagnostic crash in nightly and aurora, to see if we are asking basic content client for alpha. r=bas
MozReview-Commit-ID: 2DBdJZs0hlh

--HG--
extra : rebase_source : dabafda100d50b8308e4dc008254a7a4c6d80549
2016-07-20 10:26:02 -04:00
Carsten "Tomcat" Book
4a64baa9d4 merge mozilla-inbound to mozilla-central a=merge 2016-07-21 16:24:36 +02:00
Carsten "Tomcat" Book
ac018ea603 merge fx-team to mozilla-central a=merge 2016-07-21 16:23:11 +02:00
Jamie Nicol
64528a4fed Bug 1164027 - Do not call glTexImage2D if likely to fail on Adreno 3xx devices; r=jrmuizel,snorp
There is a bug in the graphics driver for Adreno 3xx GPUs on android
versions up to 4.4 which segfaults if a texture allocation fails due to
virtual memory exhaustion.

On affected devices, guess whether an allocation would succeed and avoid
calling glTexImage2D where we believe it would fail. As the texture will
not be allocated this will likely cause problems such as black
rectangles appearing on the screen, but that is preferable to crashing.

MozReview-Commit-ID: 7xVI22pAdwb

--HG--
extra : transplant_source : %12%2B%C9%E2%DC%10%BE%C9%A7%E4%2C%FF%27%80%5D7%E0%8B%A2U
2016-07-15 16:58:58 +01:00
Carsten "Tomcat" Book
021bec0a4e Merge mozilla-central to mozilla-inbound 2016-07-20 11:35:42 +02:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00