Commit Graph

20541 Commits

Author SHA1 Message Date
Ryan VanderMeulen
4706edf172 Bug 710149 - Add crashtest. 2015-10-25 00:06:23 -04:00
Ryan VanderMeulen
6454e0e49b Bug 557348 - Add crashtest. 2015-10-25 00:06:23 -04:00
Chris Peterson
8300ac181a Bug 1215901 - Suppress more clang and gcc warnings in gfx/angle. r=jgilbert 2015-10-17 13:29:16 -07:00
Botond Ballo
e2037b8b38 Bug 1217251 - In TaskThrottler, dispatch the timeout task correctly from the Java UI thread on Android. r=kats
--HG--
extra : source : 4d35b236cec7651049af00eac2dd38ba868c6cdd
2015-10-22 16:46:11 -04:00
Botond Ballo
534b661e0d Bug 1217251 - Add APZThreadUtils::RunDelayedTaskOnCurrentThread(). r=kats
--HG--
extra : source : 2f201dbbe6417bd41d616a5dcebc7a72f6918a6a
2015-10-22 16:45:26 -04:00
Robert O'Callahan
0e2b65352f Revert incorrectly committed changes ab657569f554 and a396f4262479
--HG--
extra : commitid : IHQ60dccnSZ
extra : amend_source : 9302339fd951446a37909b31a1ccb56aff470325
2015-10-24 22:38:22 +13:00
Robert O'Callahan
ff38db98f3 Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.

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

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

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

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

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

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

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

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

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

This will hopefully prevent confusion like that in bug 1215903.

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

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

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

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

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

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

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

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

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

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

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

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

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Botond Ballo
e235e119a9 Bug 1211506 - Respect the APZ lock ordering in AsyncPanZoomController::OnScrollWheel(). r=mstange
--HG--
extra : source : af0360acd0fa65d7bd526339212a909884afa40c
2015-10-16 16:33:41 -04:00
James Kitchener
1c9740d59e Bug 1011020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc (relanding with correct bug number, DONTBUILD) 2015-10-17 10:18:00 -07:00
Phil Ringnalda
31d432d507 Back out changeset 2fe5dee8825d (not 1101020) for landing with the wrong bug number 2015-10-17 21:44:43 -07:00
James Kitchener
9faa73de5f Bug 1101020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc 2015-10-17 10:18:00 -07:00
Bill Gianopoulos
3ac18fde52 Bug 1213339 - Fix logic in WantsSmallTiles. r=nical
--HG--
extra : rebase_source : 8affe1d0e34f452defc7ba95cd2c4f354ba7d8df
2015-10-15 21:01:42 -04:00
Nathan Froyd
fe57e31ffe Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00
Mason Chang
884b562d08 Bug 1211363. Calculate min inset blur with max border radius. r=mstange 2015-10-16 08:27:51 -07:00
JerryShih
66c7ddec13 Bug 1215050 - Make layerscope support TiledPaintedLayer when using HWC. r=mattwoodrow, r=cjku
--HG--
extra : rebase_source : 3a606457d9c7cd630b6c9ab38941e2619b03943e
2015-10-15 06:03:00 -04:00
John Daggett
f4458274bd Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-19 11:16:43 +09:00
Aniket Vyas
95a17ea52c Bug 1197315 - remove PR_snprintf calls in gfx/; r=froydnj 2015-10-12 14:06:19 -07:00
Nicolas Silva
bbb1b9b970 Bug 1205559 - WError build fix on a CLOSED TREE 2015-10-16 15:22:06 +02:00
Jean-Yves Avenard
70773dbaa0 Bug 1205559: Make TextureChild/TextureClient thread-safe. r=nical 2015-10-16 14:46:33 +02:00
Lee Salzman
dd9f9b224c Bug 1214759 - backport SkDashPathEffect::asPoints fix from upstream Skia. r=jmuizelaar 2015-10-14 13:39:03 -04:00
Lee Salzman
a4fe968b99 Bug 1214309 - nudge zero dash intervals to be non-zero under Skia. r=jmuizelaar 2015-10-13 14:40:50 -04:00
Lee Salzman
eaa82aedc8 Bug 1161277 - verify SkPath is finite before doing ContainsPoint queries. r=jmuizelaar 2015-10-09 16:07:59 -04:00
Dan Glastonbury
c5f6855012 Bug 1207205 - Remove fGetActiveUniformName. r=jrmuizel 2015-10-19 11:23:45 +10:00
Phil Ringnalda
adfbc1f710 Back out 2 changesets (bug 543715) because Mulet is why we can't have nice things
Backed out changeset 2d1d8e9b095c (bug 543715)
Backed out changeset bc90276ec090 (bug 543715)
2015-10-18 11:22:22 -07:00
John Daggett
72b6bcd6d6 Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-18 22:17:46 +09:00
Cameron McCormack
4872fb60dc Bug 1163877 - Part 3: Update state on, and reflow documents for, all FontFaceSets that contain a FontFace whose user font entry updated. r=jdaggett 2015-10-16 17:10:14 +11:00
Sotaro Ikeda
33e9987516 Bug 1215027 - Fix EndFrameForExternalComposition() r=nical 2015-10-15 17:53:44 -07:00
Jeff Muizelaar
239cde6079 Bug 1214917. Update ANGLE to 2535
--HG--
extra : rebase_source : 3dc40250a76d0cb9b7a9914bb04a01edc16e4d69
2015-10-15 00:07:30 -04:00
Milan Sreckovic
07eeb05f0f Bug 1213007 - Part 1. Implementing gfxCrash. r=dvander 2015-10-14 08:24:00 +02:00
Milan Sreckovic
ce072c79e4 Bug 1207750 - setting an environment variable will let us crash as Cairo errors happen. r=bschouten 2015-10-14 07:52:00 +02:00
Ting-Yu Lin
b136d8801b Bug 1214662 - Fix compile error for enabling APZES_LOG. r=botond
I got this error: use of undeclared identifier 'Stringify'. Add the
necessary header.

--HG--
extra : commitid : 9Ro5V20eFmP
extra : rebase_source : 11a46af1c8d3576fd4e30b17f788e62b4d69c92d
2015-10-15 10:49:26 +08:00
Matt Woodrow
0735fa738c Bug 1120490 - Take the 'GetRotateForLandscape' gfxASurface configuration into account when creating printing surfaces. r=jwatt 2015-10-15 15:13:38 +13:00
Jonathan Kew
3211a0b116 Bug 1211867 - Use the font's NBSP glyph (if present) rather than rendering NBSP using the standard <space> glyph. r=jdaggett 2015-10-14 16:00:35 +01:00
Frédéric Wang
7324f7cce8 Bug 1193050 - Update OTS to latest upstream version. r=jfkthame 2015-10-02 05:21:45 +02:00
Jonathan Kew
ad69a6c9c5 Bug 1211141 - Update to latest harfbuzz from upstream (release 1.0.5). r=jdaggett 2015-10-14 16:00:36 +01:00
Wes Kocher
d70ea0dbd0 Backed out changeset a94b86bdf54b (bug 1193050) 2015-10-14 09:04:38 -07:00
Wes Kocher
5166673512 Backed out changeset acd7efb271c8 (bug 1211867) 2015-10-14 09:04:27 -07:00
Wes Kocher
8dd36993ac Backed out changeset 806b320566ac (bug 1211141) 2015-10-14 09:04:16 -07:00
Jonathan Kew
b602970574 Bug 1211141 - Update to latest harfbuzz from upstream (release 1.0.5). r=jdaggett 2015-10-14 16:00:36 +01:00
Jonathan Kew
573a197e03 Bug 1211867 - Use the font's NBSP glyph (if present) rather than rendering NBSP using the standard <space> glyph. r=jdaggett 2015-10-14 16:00:35 +01:00
Frédéric Wang
6a97734fc7 Bug 1193050 - Update OTS to latest upstream version. r=jfkthame 2015-10-02 05:21:45 +02:00
Bas Schouten
d7e5ec0950 Bug 1211615: Upload the full texture on the first upload for component alpha textures. r=nical 2015-10-14 17:00:42 +02:00
Jamie Nicol
2e1135737e Bug 1209801 - Part 2: Do not allow big image textures to be used with TiledLayerBuffers. r=mattwoodrow
Big-image textures (where multiple textures are tiled together to act as
a single larger texture, e.g. TiledTextureImage) were in some cases
being used to back the TextureSources associated with each Tile in a
TiledLayerBuffer. CompositorOGL was unaware of this, so when compositing
would only render the first tile in each big image, stretching it to the
size of the entire big image.

It doesn't make much sense to allow tiling-within-tiling, so set the
DISALLOW_BIGIMAGE flag for textures created for use with TiledLayerBuffers.

--HG--
extra : histedit_source : 7783b2132cb2037dda2a736b1497dc13231b4dee
2015-10-14 11:32:44 +05:30
Jamie Nicol
7bf802c0be Bug 1209801 - Part 1: Add TextureFlags parameter to TextureClientPool. r=mattwoodrow
--HG--
extra : histedit_source : d33f4c7f92f0903d1324a153e5243634acda594d
2015-10-14 11:32:35 +05:30
Nathan Froyd
d8393ccd5b Bug 1207245 - part 2 followup - add more mozilla/RefCounted.h includes where appropriate; r=me 2015-10-12 22:24:05 -04:00
Mason Chang
ced85cbc4f Bug 1210250. Fallback to GDI fonts with a skia backend. r=jwatt 2015-10-12 09:54:15 -07:00
Wes Kocher
0191dbf4b6 Backed out changeset aced11aac8b8 (bug 1210250) for Windows build bustage 2015-10-12 09:23:24 -07:00
Mason Chang
897d53deb1 Bug 1210250. Fallback to GDI fonts with a skia backend. r=jwatt 2015-10-12 08:21:55 -07:00
Nigel Babu
da9545f635 Backed out changeset ae5f03f140a8 (bug 1209801) on suspicion of Android reftest bustage ON A CLOSED TREE 2015-10-12 09:43:19 +05:30
Nigel Babu
fabdcab137 Backed out changeset 9e69375c47ed (bug 1209801) for suspicion of Android reftest bustage ON A CLOSED TREE 2015-10-12 09:43:06 +05:30
Morris Tseng
d1d37e3f9b Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku
--HG--
extra : rebase_source : 55ae1e1fc1f88bffd43800eefaed4506789e608c
2015-10-12 11:21:04 +08:00
Morris Tseng
dd98b66ab0 Bug 709490 - Part 9: Readback without blocking main thread. r=jgilbert
--HG--
extra : rebase_source : 83fe8ec524c061622465221f51e15747e30420fa
2015-10-12 11:21:03 +08:00
Morris Tseng
24726cbcb0 Bug 709490 - Part 8: Copy to a temp texture when readback from IOSurface. r=jgilbert
--HG--
extra : rebase_source : 32ad14acd4dd3857e480fdc279528dec2e89d47c
2015-10-12 11:21:03 +08:00
Morris Tseng
a8eab58fba Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : cc7761567d60d652b8d0bc9cab04cf310ef100e3
2015-10-12 11:21:03 +08:00
Morris Tseng
83252e218f Bug 709490 - Part 6: Add frame ID to CanvasClient so compositor could update frame correctly. r=roc
--HG--
extra : rebase_source : 6bd6f11189fc431f24d5bdd1381ea5adc7ffcebe
2015-10-12 11:21:03 +08:00
Morris Tseng
d5147a9b2a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : ce16acdc340cbe67102da651552f574eee897ca9
2015-10-12 11:21:03 +08:00
Morris Tseng
acf60f0d3e Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : f4ec56dc106357e30660343166ff51e7d9dc0c62
2015-10-12 11:21:02 +08:00
Morris Tseng
7e228f0ac3 Bug 1212724 - Fix compile error in non-unified mode. r=nical
--HG--
extra : rebase_source : 20afdb05ded3d8e4b454a26d18c803f42dc84f37
2015-10-12 11:21:02 +08:00
Tom Klein
a52e52dfb5 Bug 1212954 - Make BaseSize::IsEmpty return true for negative sizes to avoid NS_ERROR in VectorImage::GetFrameAtSize when root svg doesn't have intrinsic width or height. r=roc 2015-10-11 18:13:10 +02:00
Sebastian Hengst
724e8623c9 Bug 1212288 - Make ImageContainer::AllocateProducerID callable on all threads; r=roc 2015-10-11 18:13:10 +02:00
Jamie Nicol
a4433bab57 Bug 1209801 - Part 2: Do not allow big image textures to be used with TiledLayerBuffers. r=mattwoodrow
Big-image textures (where multiple textures are tiled together to act as
a single larger texture, e.g. TiledTextureImage) were in some cases
being used to back the TextureSources associated with each Tile in a
TiledLayerBuffer. CompositorOGL was unaware of this, so when compositing
would only render the first tile in each big image, stretching it to the
size of the entire big image.

It doesn't make much sense to allow tiling-within-tiling, so set the
DISALLOW_BIGIMAGE flag for textures created for use with TiledLayerBuffers.
---
 gfx/layers/client/SingleTiledContentClient.cpp | 2 +-
 gfx/layers/client/TiledContentClient.cpp       | 2 +-
 gfx/layers/composite/TextureHost.cpp           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
2015-10-11 18:13:10 +02:00
Jamie Nicol
d732d18df0 Bug 1209801 - Part 1: Add TextureFlags parameter to TextureClientPool. r=mattwoodrow
---
 gfx/layers/client/ClientLayerManager.cpp | 19 ++++++++++++-------
 gfx/layers/client/ClientLayerManager.h   |  2 +-
 gfx/layers/client/TextureClientPool.cpp  |  6 ++++--
 gfx/layers/client/TextureClientPool.h    |  8 +++++++-
 gfx/layers/client/TiledContentClient.cpp |  3 ++-
 5 files changed, 26 insertions(+), 12 deletions(-)
2015-10-11 18:13:10 +02:00
Lee Salzman
3f0cb30f96 Bug 1196494 - part 1: remove unnecessary GetClientBounds call in CompositorParent. r=jrmuziel 2015-10-03 08:30:16 -04:00
Markus Stange
dbc6bd7a9c Bug 1212876 - Fix a bug in UntransformVector and in code that was relying on that bug. r=botond
--HG--
extra : commitid : 3OPpYKTjeE8
extra : amend_source : bf9d214f17da7d226729dba602466d45761ab240
2015-10-09 12:57:56 +02:00
Jeff Muizelaar
ae3e59c2dc Bug 1213019. Get UnmapBuffer as part of MapBufferRanges features. r=jgilbert
This fixes laoding UnmapBuffer loading on GLES3

--HG--
extra : rebase_source : 76571bb9805ae56aa85383c9f537a67b4383424d
2015-10-08 18:16:36 -04:00
Lee Salzman
dd33849286 Bug 998042 - 4-byte align Skia surfaces to interoperate with Cairo r=jrmuizel 2015-10-08 12:16:46 -04:00
Milan Sreckovic
e5a53c61f3 Bug 1208234: Stop the null pointer crash. r=bas 2015-10-08 15:03:36 -07:00
David Anderson
b2ef93be8f Fix layers.acceleration.force-enabled not working. (bug 1212659, r=jrmuizel) 2015-10-08 12:21:59 -07:00
Lee Salzman
01520325c9 Bug 1210493 - enlarge stroke bounds by line width when doing a quick-reject in SkDraw::drawRect. r=jmuizelaar 2015-10-01 14:24:43 -04:00
Tom Klein
7893b08d5b Bug 1203376 - Honor filter region settings for lighting filters. r=mstange
--HG--
extra : rebase_source : adecead97d734b9bb9b5b104b88edf81c82a13a4
2015-10-07 08:25:00 +02:00
Milan Sreckovic
f18b559b55 Bug 1200021 - Part 2: more diagnostics. r=bas
--HG--
extra : rebase_source : 41c8648c26d2b7a8c2ee68b823e911b0fdce7f96
2015-09-24 10:44:40 -04:00
Jeremy Chen
988dfc2cc6 Bug 1195653 - Part1.5: Send isMask info to LayerScope viewer by TexturePacket. r=dglastonbury (v3) 2015-09-29 23:32:00 +02:00
Jeremy Chen
e6234471ad Bug 1195653 - Part1.4: Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury (v1, carry r+) 2015-09-29 23:24:00 +02:00
Jeremy Chen
9387f36033 Bug 1195653 - Part1.3: Add isMask attribute field to LayerScopePacket.proto. r=dglastonbury (v2, carry r+) 2015-09-29 23:23:00 +02:00
Jeremy Chen
16750fede1 Bug 1195653 - Part1.2: Use sSentTextureIds instead of sTextureIdList and move HasTextureIdBeenSent into SendTextureSource. r=dglastonbury (v3, carry r+) 2015-09-29 23:21:00 +02:00
Jeremy Chen
454f308775 Bug 1195653 - Part1.1: Dump SecondaryEffects (EffectTypes::MASK) on Layerscope viewer. r=dglastonbury (v2, carry r+) 2015-09-29 23:19:00 +02:00
John Daggett
1b7d8ac5fd Bug 1201318 - revise OSX system font handling. r=mstange
Rework system font lookup under OSX so that the style system passes around the same "meta" name used by Webkit, -apple-system. This makes it so that the hidden system fonts used aren't exposed to authors. It also allows us to handle the two optical sizes of font families used under OSX 10.11, which uses San Francisco as the new UI font, with one family for text sizes and another for larger, display sizes. The patch here:

  - moves system font lookup into gfxMacPlatformFontList
  - assigns the font family name to "-apple-system"
  - derives FindFamily to take a gfxFontStyle parameter to allow size-based lookups
  - maintains a list of hidden system font families (not exposed to authors)
  - maintains a mapping from -apple-system to the underlying hidden font families
2015-10-08 15:04:08 +09:00
Markus Stange
46eb0fcaa5 Bug 1201318 - Factor out AddFamily. r=jdaggett 2015-09-03 13:44:43 -04:00
Markus Stange
caba23281a Bug 1201318 - Use nsAutoReleasePool from nsCocoaUtils.h. r=jdaggett 2015-09-02 22:04:50 -04:00
Botond Ballo
541fb0cd68 Bug 1212664 - Perform y-inversion correctly when dumping compositor surface. r=jrmuizel
--HG--
extra : source : d378fad1aa9ceb67dbfcc7afaf5138542b292459
2015-10-07 19:58:23 -04:00
David Anderson
497eea35bc Disable screen and multiply mix-blend-mode support in the D3D11 and OGL compositors. (bug 1135271, r=mattwoodrow) 2015-10-07 16:38:19 -07:00
David Anderson
3b183cc62a Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow) 2015-10-07 16:34:41 -07:00
David Anderson
fb11b16545 Fix inactive scroll frames sometimes creating very large, incorrect hit regions. (bug 1190112, r=tn) 2015-10-07 12:08:53 -07:00
Benoit Girard
de3c586402 Bug 1199885 - Part 10: Add APZTeeManager API to start an async scroll. r=kats
--HG--
extra : commitid : Bcuo2Zbt0IB
2015-09-28 17:00:21 -04:00
Benoit Girard
5e9f05f89c Bug 1199885 - Part 9: Let APZC handle the drag events. r=kats
--HG--
extra : commitid : 5eL9kMtaPPT
2015-09-28 14:44:37 -04:00
Benoit Girard
48624c592c Bug 1199885 - Part 8: Add FindScrollNode to locate the scrollbar thumb. r=kats
--HG--
extra : commitid : 9yE7xtzOs3I
2015-09-28 14:44:37 -04:00
Benoit Girard
6803a546d5 Bug 1199885 - Part 5: Make mRootLayerTreeID const to prove that there's no data races. r=kats
--HG--
extra : commitid : 5WndwzOuLdi
2015-09-28 14:44:36 -04:00
Benoit Girard
eb3b891bbc Bug 1199885 - Part 4: Let the hit testing tree know about the scroll thumb. r=kats
--HG--
extra : commitid : 2sY04WntME0
extra : rebase_source : 98008b1dcc3236ef65e1809fd849fae6c31c76f7
2015-09-28 14:44:36 -04:00
Benoit Girard
2a2fca7ffa Bug 1199885 - Part 3: Add 'apz.drag.enabled' preference for async scrollbars. r=kats
--HG--
extra : commitid : FT9vDNL0XDw
extra : rebase_source : f5cd5f6e53c669f33fc628915cab1f6c57beaa11
2015-09-28 14:44:36 -04:00
Benoit Girard
fd05a3df17 Bug 1199885 - Part 2: Add AsyncDragMetrics. r=kats
--HG--
extra : commitid : Bq9QdYWF3v3
extra : rebase_source : bdd10ec82cd18811fa8fe75477d02dc862ece99b
2015-09-28 14:43:50 -04:00
Nicholas Nethercote
0f5722f4da Bug 1211324 (part 5) - Remove GraphicsFilter and gfxGraphicsFilter. r=mattwoodrow. 2015-10-05 17:18:10 -07:00
Nicholas Nethercote
4fc2610c3c Bug 1211324 (part 4) - Replace GraphicsFilter constants with gfx::Filter equivalents. r=mattwoodrow.
The conversion is as follows:

- GraphicsFilter::FILTER_NEAREST == gfx::Filter::POINT
- GraphicsFilter::FILTER_GOOD    == gfx::Filter::GOOD
- GraphicsFilter::FILTER_BEST    == gfx::Filter::LINEAR

Also typedef GraphicsFilter to gfx::Filter; this will be removed in the next
patch.

These changes mean ToFilter() and ThebesFilter() are no longer needed.
2015-10-05 17:12:46 -07:00
Nicholas Nethercote
b06269a38d Bug 1211324 (part 3) - Remove GraphicsFilter::FILTER_FAST and replace it with FILTER_BEST. r=mattwoodrow.
This may sound like an odd change but it's what the current code effectively
already does due to the way ToFilter() and ThebesFilter() are defined.
2015-10-05 16:59:32 -07:00
Nicholas Nethercote
b44999f110 Bug 1211324 (part 2) - Make gfx::FILTER::GOOD convert to GraphicsFilter::FILTER_GOOD. r=mattwoodrow. 2015-10-04 22:37:47 -07:00
Nicholas Nethercote
f904c9c3c8 Bug 1211324 (part 1) - Remove BILINEAR and GAUSSIAN filter constants.
These aren't used meaningfully.
2015-10-04 20:05:28 -07:00
Nicholas Nethercote
0e521772de Bug 1208945 - Rename Color::{To,From}ARGB() so they aren't easily confused with {To,From}ABGR(). r=Bas. 2015-09-24 18:16:50 -07:00
Carsten "Tomcat" Book
c1f520e05c Backed out changeset 79746e93020a (bug 1011020) for causing bug 1212267
--HG--
extra : rebase_source : 16ad5f13377beb3075b06d97a793059a575d55cb
2015-10-07 12:17:02 +02:00
James Kitchener
590b916a4a Bug 1011020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc - relanding with correct bug number on a CLOSED TREE 2015-10-05 05:00:00 +02:00
Carsten "Tomcat" Book
903a88eacc Backed out 1 changesets (bug 1101020) for landing with wrong bugnumber on a CLOSED TREE
Backed out changeset 18d4a0ca8cc1 (bug 1101020)
2015-10-07 09:24:27 +02:00
James Kitchener
0eb9204d80 Bug 1101020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc 2015-10-07 11:18:08 +05:30
Robert O'Callahan
d5e52e1fca Bug 1195152. Pass correct YUV type when converting shared YUV image to RGB. r=nical
--HG--
extra : commitid : 6wWAshcHBaB
extra : rebase_source : b9099c20a74f3cc569ae5b3bf895ac749cabd9fa
2015-10-06 16:36:10 +13:00
Kevin Wern
98513a1124 Bug 1202050 - Use UntransformTo in a few more places in APZ code. r=botond
We previously believed these matrices could only be 2D, but it turns out
they can potentially be 3D projective transforms, so we need to use
UntransformTo() when applying them.

The patch also removes the unused function APZCTreeManager::TransformCoordinateToGecko().

--HG--
extra : rebase_source : e73862963df275036f35272b688f65c271ca659a
extra : source : b04cab83c7f061b9b934d30f7e5adb831206972e
2015-10-05 11:47:01 -04:00
Jim Mathies
d44a5df7b4 Bug 1137944 - Add a pref to control plugin window hiding. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
2d784d0391 Bug 1137944 - On Windows defer composition until we receive confirmation plugin window metrics have been updated. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
4f6da4f6c9 Bug 1137944 - Move plugin window metrics updates to a point during comososition where we know the remote layer tree is hooked up to the chrome layer tree. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Jim Mathies
36f1f86bc4 Bug 1137944 - Cache compositor plugin update data to avoid sending updates to the main thread when the data doesn't change. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
ef553da542 Bug 1196539 - Apply plugin config using AutoResolveRefLayers during composition. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Nicholas Nethercote
e68c9e3a2d Bug 1208365 (part 4) - Remove gfxPattern::GraphicsExtend. r=bas.
--HG--
extra : rebase_source : baafed207a286892e36575ad24b3e896a1943ad6
2015-09-25 00:59:13 -07:00
Nicholas Nethercote
b4181c38e0 Bug 1208365 (part 3) - Change gfxPattern::mExtend from a GraphicsExtend to a gfx::ExtendMode. r=bas.
At this point, the relationship between GraphicsExtend and gfx::ExtendMode is
as follows.

- EXTEND_REPEAT matches up with REPEAT.
- EXTEND_REFLECT matches up with REFLECT.
- EXTEND_PAD matches up with CLAMP.
- EXTEND_NONE has no matching value in gfx::ExtendMode.

The only use of EXTEND_NONE is with nsSVGGradientFrame::mExtend. That field
gets assigned EXTEND_NONE in the various constructors, and other values via
SetExtend(). And all uses of that field go immediately into ToExtend() calls,
which convert EXTEND_NONE to CLAMP. So it's safe to change this field to
gfx::ExtendMode and initialize it to CLAMP.

--HG--
extra : rebase_source : 8873174223e77b341e046093d25b320a33f0582b
2015-09-25 00:58:23 -07:00
Nicholas Nethercote
5fbb397d4c Bug 1208365 (part 2) - Remove gfxPattern::Extend(). r=bas.
It's unused.

--HG--
extra : rebase_source : a6dcbcea47f8093ec18e4e9f50ae2165e00e11b9
2015-09-25 00:55:31 -07:00
Nicholas Nethercote
3ad5853beb Bug 1208365 (part 1) - Remove unused EXTEND_PAD_EDGE. r=Bas.
--HG--
extra : rebase_source : 47f0cf49279cad1a8bcc5ae00ea45af36c5cf063
2015-09-25 00:53:20 -07:00
Milan Sreckovic
471eeeeab2 Bug 1207258 - Give back the ability to run direct write without D2D, but only with a *force* preference. r=dvander 2015-10-05 11:40:00 +02:00
David Anderson
2f7c2f2b2f Remove ISurfaceAllocator::GetCompositorBackend. (bug 1211109 part 4, r=mattwoodrow) 2015-10-05 23:40:13 -07:00
David Anderson
8c32d3122a Allow top-level window changes to the remembered compositor type. (bug 1211109 part 3, r=mattwoodrow) 2015-10-05 23:39:28 -07:00
David Anderson
3716363c72 Remove the static compositor backend variable. (bug 1211109 part 2, r=mattwoodrow) 2015-10-05 23:39:00 -07:00
David Anderson
f35bf0138b Log initialization failures in CompositorD3D11.cpp. (bug 1211109 part 1, r=mattwoodrow) 2015-10-05 23:38:40 -07:00
Jeff Muizelaar
48d057951d Bug 1211774. Update to ANGLE 2522.
--HG--
extra : rebase_source : 61b730037c24fc6d4ce6cd47a7bc176a6336d477
2015-10-05 13:48:44 -04:00
Kartikaya Gupta
bdb1f426ad Bug 1208973 - Ensure all code in TaskThrottler is threadsafe since it gets called from various threads. r=botond
Hat tip to :froydnj for describing the proof-of-lock technique used in this patch
in his blog at https://blog.mozilla.org/nfroyd/2015/09/17/compiler-enforced-locked-accesses/

--HG--
extra : commitid : 4jVEAYGsCvY
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
b5d5d0a876 Bug 1208973 - Move function bodies into .cpp file, and remove an unused one. r=botond
--HG--
extra : commitid : DfuxghUHabo
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
9d9b349ef7 Bug 1208973 - Refactor and add logging to TaskThrottler. r=botond
--HG--
extra : commitid : 2jSGP022pln
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
b41507aa42 Bug 1203901 - Increase the long-tap threshold time for test_basic_pan.html. r=botond
--HG--
extra : commitid : 2XXaQZK7q6a
2015-10-05 16:18:24 -04:00
Kartikaya Gupta
cf8ced3692 Bug 1203901 - Ensure the page is painted before sending touch events to it. r=botond
--HG--
extra : commitid : 6AgCi7DcqCN
2015-10-05 16:18:24 -04:00
Wes Kocher
0628e22f00 Merge m-c to inbound, a=merge CLOSED TREE 2015-10-05 13:11:26 -07:00
Jeff Muizelaar
5f0bc91be5 Bug 1211504. Remove unused member from RefLayer.
Indirectly caught by coverity

--HG--
extra : rebase_source : 95772cfe2d54d532b62e5fe23117c0d63bb1772f
2015-10-05 11:42:53 -04:00
Wes Kocher
c1750b75c7 Backed out 11 changesets (bug 709490) for webgl-color-test.html failures a=backout
Backed out changeset fc04c5d43550 (bug 709490)
Backed out changeset cd8f9410d335 (bug 709490)
Backed out changeset 6e687c9143c1 (bug 709490)
Backed out changeset 9b20f2c833c4 (bug 709490)
Backed out changeset f9d130aea88e (bug 709490)
Backed out changeset fc513b410949 (bug 709490)
Backed out changeset acf6220b431a (bug 709490)
Backed out changeset 9bceaf913791 (bug 709490)
Backed out changeset 37fba20111e2 (bug 709490)
Backed out changeset 2285ce1596b8 (bug 709490)
Backed out changeset fb4e09920569 (bug 709490)
2015-10-05 08:28:25 -07:00
Botond Ballo
3244f0ea4d Bug 1209964 - In AlignFixedAndStickyLayers(), properly handle the case where a fixed or sticky layer is its own subtree root and has a local transform. r=kats
--HG--
extra : source : f1e0e06914605c33c10931e08e4de614c63dadcb
2015-10-02 20:53:30 -04:00
Nicholas Nethercote
1dbfbe1606 Bug 1209351 (part 3) - Optimize nsTHashTable::RemoveEntry() usage in gfx/. r=jrmuizel.
--HG--
extra : rebase_source : 6de68bea02948d4a1e886da3f9b05d46c9762463
2015-09-24 19:07:22 -07:00
Morris Tseng
f5a52e7dea Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku
--HG--
extra : rebase_source : 07b470b9a8865b7d833932c5425e796b852ab466
2015-10-05 10:50:17 +08:00
Morris Tseng
27bcae10e8 Bug 709490 - Part 9: Readback without blocking main thread. r=jgilbert
--HG--
extra : rebase_source : a8fc936aa9a9096f70f5e58b3b0450943f7215ba
2015-10-05 10:50:16 +08:00
Morris Tseng
f27289323c Bug 709490 - Part 8: Copy to a temp texture when readback from IOSurface. r=jgilbert
--HG--
extra : rebase_source : d1d0d60ba4c5c40b4fb555b1da83699f9bb2f571
2015-10-05 10:50:16 +08:00
Morris Tseng
861bb61b91 Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : bfdf6a97f372a3a5a2ecdd4a3c216ec64ec98e84
2015-10-05 10:50:16 +08:00
Morris Tseng
d56ca7414d Bug 709490 - Part 6: Add frame ID to CanvasClient so compositor could update frame correctly. r=roc
--HG--
extra : rebase_source : 1c2226028988ecc166152be7d567491de149d540
2015-10-05 10:50:16 +08:00
Morris Tseng
2d11e76151 Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 16b8b4eaa5f4c649c02cbae6425e895134d4ae41
2015-10-05 10:50:16 +08:00
Morris Tseng
298e6642c3 Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 9833dd57592081737ce74ad5b6ba8441a243ca0b
2015-10-05 10:50:15 +08:00
Kartikaya Gupta
e501333b17 Bug 1208023 - Add a reftest. r=botond
--HG--
extra : commitid : DSHoZcPIQul
2015-10-02 23:08:23 -04:00
Carsten "Tomcat" Book
e91d5a31b6 Merge m-c to mozilla-inbound 2015-10-02 13:37:27 +02:00
Jacek Caban
03a3ea9f9b Bug 1207437 - Extra qualification fixup. 2015-10-02 12:27:16 +02:00
Carsten "Tomcat" Book
ca77b70a8d merge mozilla-inbound to mozilla-central a=merge 2015-10-02 11:52:49 +02:00
Carsten "Tomcat" Book
e27620864a merge fx-team to mozilla-central a=merge 2015-10-02 11:44:11 +02:00
Jared Wein
7726e7e3d1 Backout of bug 1208636 due to it causing large black areas on long pages (bug 1210411). rs=kats 2015-10-02 00:04:21 -04:00
Jeff Gilbert
555331554c Bug 1178601 - Don't crash on incomplete FB. - r=jrmuizel 2015-09-24 14:26:20 -07:00
Nicholas Nethercote
a249f7cf80 Bug 1209206 (part 3) - Use sinf() and cosf() instead of sin() and cos() in a couple of places. r=Bas.
--HG--
extra : rebase_source : 0e282b829a48738fdcfde5b79c5ec3b36eb0bd06
2015-09-28 17:12:07 -07:00
Nicholas Nethercote
d9e0f6607b Bug 1209206 (part 2) - Rename and re-comment HasNonOpaqueColor(). r=jdaggett.
So that the comment and the name match what the code is doing.

--HG--
extra : rebase_source : cb2f741968567b22a46949640625efcc95ddcee3
2015-09-28 13:20:06 -07:00
Bas Schouten
55fc81be8b Bug 1208465 - Part 2: Disable using Direct2D when 1.1 is unavailable. r=jrmuizel 2015-09-25 13:30:57 +00:00
Wes Kocher
eff494e681 Backed out changeset 919a831786f1 (bug 1208638) for windows build failures 2015-09-30 16:43:26 -07:00
David Anderson
b0e2473678 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel)
--HG--
extra : rebase_source : 2c0b1febd9bcc3a52f48a98243ab853f5b58848d
2015-09-30 16:16:16 -07:00
Cervantes Yu
8dd6d71efe Bug 1204837, Part 2: Cloned ImageBridgeParent and CompositorParent should hold a reference to the compositor thread. r=nical 2015-10-01 20:58:12 +08:00
Mason Chang
854ec93cb7 Bug 1209649. Take into account border radius sizes for min inset box shadow. r=mstange 2015-09-30 14:20:23 -07:00
Botond Ballo
6613119c24 Bug 1201889 - When adjusting fixed and sticky layers in AsyncCompsitionManager, unapply all async transforms on the path from the fixed layer to the layer it's fixed with respect to. r=kats
--HG--
extra : rebase_source : 27fd2449043a6485dabda41a1aebd5a3686d0dd7
extra : source : cd449490efc2341d8ca7891f2d975a0f51db47bf
2015-09-28 20:35:13 -04:00
David Major
22cc61a3c8 Bug 1149318 - Fix the calling convention on SkGetUserDefaultLocaleNameProc. r=eihrul
I believe this issue was introduced when 8124bf072c was incorrectly pulled in as https://hg.mozilla.org/mozilla-central/rev/3a3820a17f0b, so this needs to be fixed only in the Mozilla repo.

--HG--
extra : rebase_source : 3557349e242cbe45886a1a38964f210a54b2ed80
2015-09-30 14:50:28 -04:00
Thinker K.F. Li
53c8508d85 Bug 1206418 - Fix origin of animations and scissors for preserves3d. r=roc 2015-09-28 03:43:00 -04:00
Nicolas Silva
73f9225037 Bug 1209724 - Cancel ImageBridge proxy functions if they are called too late. r=sotaro 2015-09-30 18:17:34 +02:00
Nicolas Silva
3f970ed6d0 Bug 1208071 - Ensure that only valid texture actors are added to ImageBridge tarnsactions. r=sotaro 2015-09-30 18:17:30 +02:00
Ehsan Akhgari
6157d50ebb Bug 1208927 - Initialize queryD3DKMTStatistics so that it can't be accessed uninitialized; r=jrmuizel 2015-09-30 11:55:49 -04:00
David Anderson
1befc42825 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-10-01 23:06:43 -07:00
Jonathan Kew
0dba7fb3e7 Bug 1207061 - Update graphite2 library to release 1.3.3. r=jdaggett 2015-09-30 08:45:05 +01:00
Piotr Tworek
6a441f56a8 Bug 1209446 - Make sure mFrameInProgress flag is set to true only when we actually begin drawing new frame. r=nical
--HG--
extra : rebase_source : ebb7d61be07e6cd9f2bcd920e3987dca9ac8c358
2015-09-29 08:18:00 +02:00
David Anderson
6f796a3c17 Treat mix-blend-mode layers as transparent for occlusion culling. (bug 1207041, r=mstange)
--HG--
extra : rebase_source : 33afa0174cac1cdb4b83b2e695532b36984974cd
2015-09-30 00:02:00 -07:00
Botond Ballo
9ef3739d7c Bug 1208661 - Remove some no-longer-used debugging code. r=BenWa
--HG--
extra : rebase_source : 86284453c89bd54929a8796b07a1aff33536cd13
extra : source : fb878d6d883364011b32d3634d2138d5aa6d9ef0
2015-09-28 15:20:03 -04:00
Botond Ballo
514da6416f Bug 1208661 - Show display list and layer textures in-line in the HTML paint dump. r=BenWa
--HG--
extra : rebase_source : 83b8aa0650599932297bb75aa3e9bdeed589f87b
extra : source : 9ba5b04a7a416c7cace04b2191e105aa694ff2ef
2015-09-28 15:22:05 -04:00
Botond Ballo
f2c090e79a Bug 1208661 - Implement SourceSurfaceDual::GetDataSurface() for debugging purposes. r=BenWa
--HG--
extra : rebase_source : f8b2ec3b5fafacebe1ae667fd87b6aaaa4beb9ce
extra : source : 0d99556fe0e4992d5da0fda720b5eeae37c13ab4
2015-09-25 19:24:13 -04:00
Botond Ballo
2b1cabf9d4 Bug 1208661 - Dump client-side layer textures. r=BenWa
--HG--
extra : rebase_source : b1783955ec294d070b127bb1430d7a90115753a0
extra : source : c08ff4574e333a1772c0f6233de4ba17cadd44bb
2015-09-28 17:06:35 -04:00
Botond Ballo
e9f06a158c Bug 1208661 - Support dumping client-side layer textures without compression. r=BenWa
Compression is used by the profiler, but we need uncompressed textures for the
browser to be able to render them when we include them in the HTML paint dump.

--HG--
extra : rebase_source : 0929ccdc87e9f6643777360571422d904a9e327c
extra : source : ff03d3963ff87cfeac5ebaac1a004d3ebed047e3
2015-09-28 18:51:37 -04:00
Botond Ballo
e5ea447a92 Bug 1208661 - Make ContentClient dumping play nicely with HTML dumping. r=BenWa
--HG--
extra : rebase_source : 65ee70200cc217adedf867f272c0d2766bdd3d2b
extra : source : 43d4167e87e4c87b45466855dad7ea61cd654f0e
2015-09-25 19:19:04 -04:00
Botond Ballo
724b745500 Bug 1208661 - Move Dump() up from ContentClient to CompositableClient. r=BenWa
Only some ContentClient implementations implement it, but it allows it to be
called from more general code. Other CompositableClient implementations can
be provided later.

--HG--
extra : rebase_source : ae8cee4501bc6c1fa00809b7e6fdc4a98da66b40
extra : source : 70568b823d6ecf1b50c18d5712556a89ef954b12
2015-09-25 19:16:38 -04:00
Jeff Muizelaar
43a087cc38 Bug 1179280. Update ANGLE from chromium/2214 to chromium/2466. 2015-09-29 19:04:17 -04:00
Jeff Gilbert
41fcf39971 Bug 1149728. Move CreateXForOffscreen functions. r=jrmuizel 2015-09-28 23:35:46 -04:00
Mason Chang
dda611f73d Bug 1208636 - Adjust displayport size based on available system memory. r=kats 2015-09-29 15:42:37 -07:00
David Anderson
e0b771c314 Fail gracefully when we can't get a texture sync handle. (bug 1207665 part 4, r=bas,vladan) 2015-09-29 11:20:01 -07:00
David Anderson
ce3e7b5ae7 Get the sync texture's sync handle during compositor initialization, where it can be made to fail gracefully. (bug 1207665 part 3, r=bas) 2015-09-29 11:16:16 -07:00
Wes Kocher
8631de9c2b Backed out 13 changesets (bug 709490) for android webgl-color-test.html failures
Backed out changeset 5be7514914b6 (bug 709490)
Backed out changeset 04b6f94fbe8a (bug 709490)
Backed out changeset 00c0e85dd8cd (bug 709490)
Backed out changeset 221385b7b81a (bug 709490)
Backed out changeset ecc38c18734f (bug 709490)
Backed out changeset 22878c936384 (bug 709490)
Backed out changeset 0edcbb60eee3 (bug 709490)
Backed out changeset 5feceec2014b (bug 709490)
Backed out changeset 835b655cb873 (bug 709490)
Backed out changeset 6fbb4a3f8cf7 (bug 709490)
Backed out changeset a5f8646fa156 (bug 709490)
Backed out changeset 2ae1386916b3 (bug 709490)
Backed out changeset 6b29a2a0a8fb (bug 709490)
2015-09-29 08:57:36 -07:00
Sotaro Ikeda
9b595ca634 Bug 1186793 - Replace nsBaseHashtable::EnumerateRead() calls in gfx/ with iterators r=njn 2015-09-29 07:49:41 -07:00
Bas Schouten
dd395e3023 Bug 1208833: Disable DWrite when D2D device creation fails. r=dvander 2015-09-29 16:39:14 +02:00
Andrea Marchesini
745da49b7b Bug 709490 - Part 12 - explicit CTORs for a couple of runnables, CLOSED TREE 2015-09-29 12:54:54 +01:00
Morris Tseng
d99c93a009 Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref, r=baku 2015-09-29 11:51:25 +01:00
Morris Tseng
7c548ee466 Bug 709490 - Part 9: Readback without blocking main thread, r=jgilbert 2015-09-29 11:51:25 +01:00
Morris Tseng
173c50c555 Bug 709490 - Part 8: Copy to a temp texture when readback from IOSurface, r=jgilbert 2015-09-29 11:51:25 +01:00
Morris Tseng
c5927f2dae Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer, r=roc 2015-09-29 11:51:25 +01:00
Morris Tseng
2b5f7394c9 Bug 709490 - Part 6: Add frame ID to CanvasClient so compositor could update frame correctly, r=roc 2015-09-29 11:51:24 +01:00
Morris Tseng
1d4157900a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers., r=ehsan, r=jgilbert, r=nical 2015-09-29 11:51:24 +01:00
Morris Tseng
6c605d106d Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async, r=nical 2015-09-29 11:51:23 +01:00
Nicholas Nethercote
d0c4a9db1b Bug 1208300 (part 4) - Remove gfxRGBA and some related things. r=jwatt.
Hooray!

--HG--
extra : rebase_source : d691b55eef5a8655aa98b81b5398452a5ebe860d
2015-09-24 19:24:16 -07:00
Nicholas Nethercote
0b89111ec3 Bug 1208300 (part 3) - Convert gfxRGBA uses to gfx::Color in LayerScope.cpp. r=jwatt.
--HG--
extra : rebase_source : 8393efea38fb7df8138c0ec2f894eff2808c5a81
2015-09-24 19:18:03 -07:00
Nicholas Nethercote
58378c408e Bug 1208300 (part 2) - Convert gfxRGBA uses to gfx::Color in CompositorBench.cpp. r=jwatt.
I don't know how those modf() calls were compiling without error given that the
second arg was a |float*|.

--HG--
extra : rebase_source : 0ecf7bda4664aa6eb735aff676341b7e063e0f29
2015-09-24 19:13:50 -07:00
Nicholas Nethercote
461e2332ff Bug 1208300 (part 1) - Remove unused default arguments from ClearThebesSurface. r=jwatt.
--HG--
extra : rebase_source : 8d91060e8ac1458b858bf961b608bb4b68eff6dc
2015-09-24 19:09:04 -07:00
Cameron McCormack
9293060eef Bug 1198708 - Part 1: Store exact timing-function type on nsTimingFunction and ComputedTimingFunction. r=birtles
Since Keyframe.easing should reflect the {transition,animation}-timing-
function value relevant to each keyframe, we'll need to store on
nsTimingFunction the specific timing function value that was used, and
copy it down into ComputedTimingFunction for
KeyframeEffectReadOnly.getFrames() to access.  This includes storing
whether the optional start/end keyword in a steps() function was
specified.
2015-09-29 12:20:13 +10:00
John Daggett
84f181826e Bug 1182361 p7 - fixups based on review comments. r=heycam 2015-09-29 10:51:29 +09:00
John Daggett
06a6d26415 Bug 1182361 p6 - eliminate old pref font caching. r=heycam 2015-09-29 10:51:29 +09:00
John Daggett
6e5f907544 Bug 1182361 p5 - cache pref fonts per langGroup. r=heycam 2015-09-29 10:51:29 +09:00
John Daggett
72bb57d48b Bug 1182361 p4 - move pref font util methods to platform fontlist. r=heycam 2015-09-29 10:51:28 +09:00
John Daggett
f2ee55e64a Bug 1182361 p3 - move generic lookup methods to platform fontlist. r=heycam 2015-09-29 10:51:28 +09:00
John Daggett
6d66c5e817 Bug 1182361 p2 - count generic lookups. r=heycam 2015-09-29 10:51:28 +09:00
John Daggett
c84b59dee7 Bug 1182361 p1 - move old generic lookup methods into gfxPangoFontGroup. r=heycam 2015-09-29 10:51:28 +09:00
Mason Chang
b3bcc68629 Bug 1208554 - Take Velocity into account for WheelScrollAnimations. r=kats 2015-09-28 17:07:06 -07:00
Nicholas Nethercote
5930cc971e Bug 1208937 - Remove gfxPattern::GraphicsPatternType. r=jwatt.
This is easy because the only remaining uses occur in uncalled functions, which
can be removed.

--HG--
extra : rebase_source : 7c1ec2c175a8a73f1ce2375c3231891ecc6bfb22
2015-09-27 20:38:20 -07:00
Jeff Gilbert
bc525759f2 Bug 1209022 - Fix AA handling in EGL's CreateOffscreen. - r=jrmuizel 2015-09-28 15:53:37 -07:00
David Anderson
a2ff08cf74 Don't use Direct 2D 1.0 if Direct3D11 is using WARP. (bug 1207665 part 2, r=jmuizelaar) 2015-09-28 12:45:43 -07:00
Botond Ballo
1ebccfe52b Bug 1206915 - Move dumping of compositor textures under its own environment variable. r=mattwoodrow
The rationale is that it's broken at least on some platforms (e.g.
TextureHost::GetAsSurface() is not implemented), and moving it under its own
environment variable allows us to use the client-side parts of paint dumping
without crashing while attempting to do the compositor-side parts.

--HG--
extra : source : 5b2f6ad05b647f3ef499074014522339f6c08efa
2015-09-21 18:27:27 -04:00
James Willcox
026a03ab87 Bug 1201541 - Add a pref for disabling single tile layers r=mattwoodrow 2015-09-28 09:37:01 -05:00