Commit Graph

15367 Commits

Author SHA1 Message Date
Mike Hommey
081a405fd8 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
cc44a4858b 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
dbb18481e6 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
77c2339647 Bug 1205521 - Part4: (v2) Align LayerScopePacket to fit changes in Bug 1211324. r=dglastonbury 2015-10-18 20:37:00 +02:00
Jeremy Chen
7cb7e2d90f Bug 1205521 - Part3: (v3) Dump texture/mask attributes on layerscope viewer. r=dglastonbury 2015-10-20 02:05:00 +02:00
Jeremy Chen
126b0c8fba Bug 1205521 - Part2: (v3) Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury 2015-10-18 20:32:00 +02:00
Jeremy Chen
1ec03924ae Bug 1205521 - Part1: (v3) Add texture/mask attribute fields in LayerScopePacket.proto. r=dglastonbury 2015-10-18 20:31:00 +02:00
Botond Ballo
1c3d5def4b Bug 1213273 - Use a chromium Task instead of an nsITimer for the timeout in TaskThrottler. r=mstange 2015-10-16 19:00:15 -04:00
Carsten "Tomcat" Book
bc79822ef3 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)
2015-10-20 10:45:31 +02:00
Botond Ballo
d9941384e5 Bug 1213762 - Clear AsyncCompositionManager::mIsFirstPaint on non-Android platforms, too. r=mstange 2015-10-16 18:33:35 -04:00
Sotaro Ikeda
a9ad5d1faa Bug 1206763 - Enable SkiaGL canvas on gonk r=mattwoodrow 2015-10-20 01:35:00 -07:00
Jeremy Chen
9cb8cd0925 Bug 1205521 - Part4: (v2) Align LayerScopePacket to fit changes in Bug 1211324. r=dglastonbury 2015-10-18 20:37:00 +02:00
Jeremy Chen
d938506401 Bug 1205521 - Part3: (v3) Dump texture/mask attributes on layerscope viewer. r=dglastonbury 2015-10-18 20:36:00 +02:00
Jeremy Chen
11febf9fb3 Bug 1205521 - Part2: (v3) Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury 2015-10-18 20:32:00 +02:00
Jeremy Chen
a66e2a8677 Bug 1205521 - Part1: (v3) Add texture/mask attribute fields in LayerScopePacket.proto. r=dglastonbury 2015-10-18 20:31:00 +02:00
Benoit Girard
4174137b56 Bug 1216287 - Properly invalidate the debug overlay. r=mattwoodrow 2015-10-19 18:03:48 -04:00
Nicholas Nethercote
e49efba560 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.
2015-10-19 18:05:20 -07:00
Chris Peterson
419277fbe5 Bug 1215899 - Suppress clang and gcc warnings in gfx/skia. r=gw280 2015-10-16 22:24:19 -07:00
Mason Chang
9c478fd39f Bug 1213545. Carry x,y offsets with inset box shadows. r=mstange 2015-10-19 10:53:04 -07:00
Ehsan Akhgari
8c81fdfe34 Bug 1216177 - Remove the remaining nsRefPtr forward declarations; r=froydnj 2015-10-19 12:02:14 -04:00
Jim Mathies
d0f545c0ef 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
18d76a5510 Merge m-c to mozilla-inbound 2015-10-19 11:40:29 +02:00
Carsten "Tomcat" Book
76bc088804 merge mozilla-inbound to mozilla-central a=merge 2015-10-19 11:38:22 +02:00
Carsten "Tomcat" Book
dc00b1c5b1 merge b2g-inbound to mozilla-central a=merge 2015-10-19 11:30:00 +02:00
Cervantes Yu
d3685e6ced Bug 1213795, Part 2: Fix protocol cloning of actor CrossProcessCompositorParent. r=khuey 2015-10-19 14:32:47 +08:00
Chris Peterson
e9ed95a07c 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
e4e2da55c9 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
2015-10-18 01:24:48 -04:00
Nathan Froyd
5254890206 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
502c35eafe Bug 1211506 - Respect the APZ lock ordering in AsyncPanZoomController::OnScrollWheel(). r=mstange 2015-10-16 16:33:41 -04:00
James Kitchener
dc63a578f6 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
59bfd76677 Back out changeset 2fe5dee8825d (not 1101020) for landing with the wrong bug number 2015-10-17 21:44:43 -07:00
James Kitchener
1c79827993 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
593bc99211 Bug 1213339 - Fix logic in WantsSmallTiles. r=nical 2015-10-15 21:01:42 -04:00
Nathan Froyd
b739a8d30c 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
3335b9795e Bug 1211363. Calculate min inset blur with max border radius. r=mstange 2015-10-16 08:27:51 -07:00
JerryShih
132cf7e64c Bug 1215050 - Make layerscope support TiledPaintedLayer when using HWC. r=mattwoodrow, r=cjku 2015-10-15 06:03:00 -04:00
John Daggett
487e13975f Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-19 11:16:43 +09:00
Aniket Vyas
eef4977b53 Bug 1197315 - remove PR_snprintf calls in gfx/; r=froydnj 2015-10-12 14:06:19 -07:00
Nicolas Silva
cb56eab45b Bug 1205559 - WError build fix on a CLOSED TREE 2015-10-16 15:22:06 +02:00
Jean-Yves Avenard
5a3e1763ff Bug 1205559: Make TextureChild/TextureClient thread-safe. r=nical 2015-10-16 14:46:33 +02:00
Lee Salzman
9d76d93e62 Bug 1214759 - backport SkDashPathEffect::asPoints fix from upstream Skia. r=jmuizelaar 2015-10-14 13:39:03 -04:00
Lee Salzman
40f8837424 Bug 1214309 - nudge zero dash intervals to be non-zero under Skia. r=jmuizelaar 2015-10-13 14:40:50 -04:00
Lee Salzman
375e2efa2d Bug 1161277 - verify SkPath is finite before doing ContainsPoint queries. r=jmuizelaar 2015-10-09 16:07:59 -04:00
Dan Glastonbury
7b306c1ddc Bug 1207205 - Remove fGetActiveUniformName. r=jrmuizel 2015-10-19 11:23:45 +10:00
Phil Ringnalda
8f424e8250 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
31d42bd9cd Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-18 22:17:46 +09:00
Cameron McCormack
664a49281f 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
263e73df6e Bug 1215027 - Fix EndFrameForExternalComposition() r=nical 2015-10-15 17:53:44 -07:00
Jeff Muizelaar
54d3ee4427 Bug 1214917. Update ANGLE to 2535 2015-10-15 00:07:30 -04:00
Milan Sreckovic
f8d315dab1 Bug 1213007 - Part 1. Implementing gfxCrash. r=dvander 2015-10-14 08:24:00 +02:00
Milan Sreckovic
37b32591ac 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
2722c1577e Bug 1214662 - Fix compile error for enabling APZES_LOG. r=botond
I got this error: use of undeclared identifier 'Stringify'. Add the
necessary header.
2015-10-15 10:49:26 +08:00
Matt Woodrow
7724b8bc93 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
002fc87c38 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
47f37fa078 Bug 1193050 - Update OTS to latest upstream version. r=jfkthame 2015-10-02 05:21:45 +02:00
Jonathan Kew
56a0771e19 Bug 1211141 - Update to latest harfbuzz from upstream (release 1.0.5). r=jdaggett 2015-10-14 16:00:36 +01:00
Wes Kocher
fa2ca613a0 Backed out changeset a94b86bdf54b (bug 1193050) 2015-10-14 09:04:38 -07:00
Wes Kocher
cd15606722 Backed out changeset acd7efb271c8 (bug 1211867) 2015-10-14 09:04:27 -07:00
Wes Kocher
63dd0a3a49 Backed out changeset 806b320566ac (bug 1211141) 2015-10-14 09:04:16 -07:00
Jonathan Kew
8992f9144f Bug 1211141 - Update to latest harfbuzz from upstream (release 1.0.5). r=jdaggett 2015-10-14 16:00:36 +01:00
Jonathan Kew
c75b6443a9 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
13da0bff4d Bug 1193050 - Update OTS to latest upstream version. r=jfkthame 2015-10-02 05:21:45 +02:00
Bas Schouten
536a1ef4f3 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
80bbe2880c 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.
2015-10-14 11:32:44 +05:30
Jamie Nicol
89235db67b Bug 1209801 - Part 1: Add TextureFlags parameter to TextureClientPool. r=mattwoodrow 2015-10-14 11:32:35 +05:30
Nathan Froyd
00fc20e1f7 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
ec8eccd51e Bug 1210250. Fallback to GDI fonts with a skia backend. r=jwatt 2015-10-12 09:54:15 -07:00
Wes Kocher
534aaa1373 Backed out changeset aced11aac8b8 (bug 1210250) for Windows build bustage 2015-10-12 09:23:24 -07:00
Mason Chang
6c7c0efbe7 Bug 1210250. Fallback to GDI fonts with a skia backend. r=jwatt 2015-10-12 08:21:55 -07:00
Nigel Babu
28a2d5b11d 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
6af640af93 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
62ed7ded96 Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku 2015-10-12 11:21:04 +08:00
Morris Tseng
91aa1baea6 Bug 709490 - Part 9: Readback without blocking main thread. r=jgilbert 2015-10-12 11:21:03 +08:00
Morris Tseng
5d86d6193b Bug 709490 - Part 8: Copy to a temp texture when readback from IOSurface. r=jgilbert 2015-10-12 11:21:03 +08:00
Morris Tseng
9baf236c2f Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc 2015-10-12 11:21:03 +08:00
Morris Tseng
e0d17ce5bd Bug 709490 - Part 6: Add frame ID to CanvasClient so compositor could update frame correctly. r=roc 2015-10-12 11:21:03 +08:00
Morris Tseng
b1e15627bf 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.
2015-10-12 11:21:03 +08:00
Morris Tseng
76ca7da268 Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.
2015-10-12 11:21:02 +08:00
Morris Tseng
8ab4182294 Bug 1212724 - Fix compile error in non-unified mode. r=nical 2015-10-12 11:21:02 +08:00
Tom Klein
9524cbb750 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
64ef92adbe Bug 1212288 - Make ImageContainer::AllocateProducerID callable on all threads; r=roc 2015-10-11 18:13:10 +02:00
Jamie Nicol
22bfcfd371 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
c13ab94c8e 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
fdc9a876b1 Bug 1196494 - part 1: remove unnecessary GetClientBounds call in CompositorParent. r=jrmuziel 2015-10-03 08:30:16 -04:00
Markus Stange
733701d783 Bug 1212876 - Fix a bug in UntransformVector and in code that was relying on that bug. r=botond 2015-10-09 12:57:56 +02:00
Jeff Muizelaar
98aef66d05 Bug 1213019. Get UnmapBuffer as part of MapBufferRanges features. r=jgilbert
This fixes laoding UnmapBuffer loading on GLES3
2015-10-08 18:16:36 -04:00
Lee Salzman
2e9b96bfd2 Bug 998042 - 4-byte align Skia surfaces to interoperate with Cairo r=jrmuizel 2015-10-08 12:16:46 -04:00
Milan Sreckovic
633a08f0b8 Bug 1208234: Stop the null pointer crash. r=bas 2015-10-08 15:03:36 -07:00
David Anderson
41eaa69e34 Fix layers.acceleration.force-enabled not working. (bug 1212659, r=jrmuizel) 2015-10-08 12:21:59 -07:00
Lee Salzman
c4abbadc17 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
cd95eee525 Bug 1203376 - Honor filter region settings for lighting filters. r=mstange 2015-10-07 08:25:00 +02:00
Milan Sreckovic
6ca138c4dd Bug 1200021 - Part 2: more diagnostics. r=bas 2015-09-24 10:44:40 -04:00
Jeremy Chen
9f5bb0123c 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
87d1978674 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
c1fd9341a3 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
c6d838a300 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
ac3f5eaf25 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
f1a6d52792 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
e487648280 Bug 1201318 - Factor out AddFamily. r=jdaggett 2015-09-03 13:44:43 -04:00
Markus Stange
e252d50cde Bug 1201318 - Use nsAutoReleasePool from nsCocoaUtils.h. r=jdaggett 2015-09-02 22:04:50 -04:00
Botond Ballo
ad6d7f2ade Bug 1212664 - Perform y-inversion correctly when dumping compositor surface. r=jrmuizel 2015-10-07 19:58:23 -04:00
David Anderson
60c1cbf0c5 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
4e6f0b3e1d Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow) 2015-10-07 16:34:41 -07:00
David Anderson
0011f60b88 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
49f6bfe259 Bug 1199885 - Part 10: Add APZTeeManager API to start an async scroll. r=kats 2015-09-28 17:00:21 -04:00
Benoit Girard
24d0310d3f Bug 1199885 - Part 9: Let APZC handle the drag events. r=kats 2015-09-28 14:44:37 -04:00
Benoit Girard
2f4adb8867 Bug 1199885 - Part 8: Add FindScrollNode to locate the scrollbar thumb. r=kats 2015-09-28 14:44:37 -04:00
Benoit Girard
5343d8a7c2 Bug 1199885 - Part 5: Make mRootLayerTreeID const to prove that there's no data races. r=kats 2015-09-28 14:44:36 -04:00
Benoit Girard
5480e3ec92 Bug 1199885 - Part 4: Let the hit testing tree know about the scroll thumb. r=kats 2015-09-28 14:44:36 -04:00
Benoit Girard
4c168e7c49 Bug 1199885 - Part 3: Add 'apz.drag.enabled' preference for async scrollbars. r=kats 2015-09-28 14:44:36 -04:00
Benoit Girard
d525698d71 Bug 1199885 - Part 2: Add AsyncDragMetrics. r=kats 2015-09-28 14:43:50 -04:00
Nicholas Nethercote
0c9936d9d3 Bug 1211324 (part 5) - Remove GraphicsFilter and gfxGraphicsFilter. r=mattwoodrow. 2015-10-05 17:18:10 -07:00
Nicholas Nethercote
e6cc09cd51 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
4461b88439 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
147a5bb519 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
453c05c3e7 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
dc47baadd4 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
012753246e Backed out changeset 79746e93020a (bug 1011020) for causing bug 1212267 2015-10-07 12:17:02 +02:00
James Kitchener
2d242c0078 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
2ad41b895f 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
329cc53de4 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
4d19fecd08 Bug 1195152. Pass correct YUV type when converting shared YUV image to RGB. r=nical 2015-10-06 16:36:10 +13:00
Kevin Wern
afb6de1fdd 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().
2015-10-05 11:47:01 -04:00
Jim Mathies
1137203dba Bug 1137944 - Add a pref to control plugin window hiding. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
35c072f6bd 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
1052af354d 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
38a7f7db28 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
4e5c5a80b6 Bug 1196539 - Apply plugin config using AutoResolveRefLayers during composition. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Nicholas Nethercote
44a64010c3 Bug 1208365 (part 4) - Remove gfxPattern::GraphicsExtend. r=bas. 2015-09-25 00:59:13 -07:00
Nicholas Nethercote
7393d982fb 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.
2015-09-25 00:58:23 -07:00
Nicholas Nethercote
eef391537b Bug 1208365 (part 2) - Remove gfxPattern::Extend(). r=bas.
It's unused.
2015-09-25 00:55:31 -07:00
Nicholas Nethercote
9daed6af96 Bug 1208365 (part 1) - Remove unused EXTEND_PAD_EDGE. r=Bas. 2015-09-25 00:53:20 -07:00
Milan Sreckovic
faa5c52d49 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
049a46caef Remove ISurfaceAllocator::GetCompositorBackend. (bug 1211109 part 4, r=mattwoodrow) 2015-10-05 23:40:13 -07:00
David Anderson
e1d5f8bc99 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
07ff755338 Remove the static compositor backend variable. (bug 1211109 part 2, r=mattwoodrow) 2015-10-05 23:39:00 -07:00
David Anderson
da7ac92eb9 Log initialization failures in CompositorD3D11.cpp. (bug 1211109 part 1, r=mattwoodrow) 2015-10-05 23:38:40 -07:00
Jeff Muizelaar
3cfebaf6a8 Bug 1211774. Update to ANGLE 2522. 2015-10-05 13:48:44 -04:00
Kartikaya Gupta
392927aa59 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/
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
e52e99aa64 Bug 1208973 - Move function bodies into .cpp file, and remove an unused one. r=botond 2015-10-05 16:18:56 -04:00
Kartikaya Gupta
ff318fb9db Bug 1208973 - Refactor and add logging to TaskThrottler. r=botond 2015-10-05 16:18:56 -04:00
Kartikaya Gupta
3627a3da39 Bug 1203901 - Increase the long-tap threshold time for test_basic_pan.html. r=botond 2015-10-05 16:18:24 -04:00
Kartikaya Gupta
c9a241122a Bug 1203901 - Ensure the page is painted before sending touch events to it. r=botond 2015-10-05 16:18:24 -04:00
Wes Kocher
0424030a6b Merge m-c to inbound, a=merge CLOSED TREE 2015-10-05 13:11:26 -07:00
Jeff Muizelaar
e330290bbd Bug 1211504. Remove unused member from RefLayer.
Indirectly caught by coverity
2015-10-05 11:42:53 -04:00
Wes Kocher
38e6ef5aee 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
bb69bb8abb 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 2015-10-02 20:53:30 -04:00
Nicholas Nethercote
07f15d61e6 Bug 1209351 (part 3) - Optimize nsTHashTable::RemoveEntry() usage in gfx/. r=jrmuizel. 2015-09-24 19:07:22 -07:00
Morris Tseng
9ae39aa599 Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku 2015-10-05 10:50:17 +08:00
Morris Tseng
5ee4f58d5e Bug 709490 - Part 9: Readback without blocking main thread. r=jgilbert 2015-10-05 10:50:16 +08:00