Kan-Ru Chen
f8100451db
Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
...
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.
MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Bill McCloskey
b47737ed9f
Bug 792652 - Move FatalError to IProtocol (r=dvander)
...
This patch moves FatalError to IProtocol. I had to make a few changes.
- I added a ProtocolName() method to find the name of the protocol.
- I gave the two-argument version of FatalError its own name. Otherwise
C++ doesn't like there to be two virtual methods with the same name
in cases where one is overridden and the other isn't (as happens
in IToplevelProtocol).
2016-11-08 15:22:45 -08:00
Wes Kocher
4b3d16605a
Backed out 18 changesets (bug 792652) for build bustage on linux64 a=backout CLOSED TREE
...
Backed out changeset 90eaf6aec002 (bug 792652)
Backed out changeset ddd915ab4a48 (bug 792652)
Backed out changeset 95eff6c45cae (bug 792652)
Backed out changeset 75855b5a9ab9 (bug 792652)
Backed out changeset b658ebaad5d7 (bug 792652)
Backed out changeset 2ba36b8ac60c (bug 792652)
Backed out changeset 94fcd3bf3f34 (bug 792652)
Backed out changeset cf9c4164eb43 (bug 792652)
Backed out changeset 59e6d0a4f35b (bug 792652)
Backed out changeset bdf86b8b9c43 (bug 792652)
Backed out changeset 8edf4b247250 (bug 792652)
Backed out changeset 63a3c8e4016e (bug 792652)
Backed out changeset e3e496eab991 (bug 792652)
Backed out changeset 5a1e3136323a (bug 792652)
Backed out changeset dbbe3a8c00e7 (bug 792652)
Backed out changeset 1829d5358808 (bug 792652)
Backed out changeset 004cd692ba6d (bug 792652)
Backed out changeset 92e7fee81fa2 (bug 792652)
2016-11-08 12:05:28 -08:00
Bill McCloskey
35fc224b71
Bug 792652 - Move FatalError to IProtocol (r=dvander)
...
This patch moves FatalError to IProtocol. I had to make a few changes.
- I added a ProtocolName() method to find the name of the protocol.
- I gave the two-argument version of FatalError its own name. Otherwise
C++ doesn't like there to be two virtual methods with the same name
in cases where one is overridden and the other isn't (as happens
in IToplevelProtocol).
2016-11-08 11:32:30 -08:00
Matt Woodrow
6dad1a961a
Bug 1300676 - Part 3 - Implement readback for GPU videos. r=dvander,nical
2016-11-04 13:28:28 +13:00
Matt Woodrow
4f998dbe2b
Bug 1300676 - Part 1: Allow asynchronous deletion of Shmem for VideoDecoderManagerChild. r=dvander
2016-11-04 13:28:28 +13:00
Matt Woodrow
6250728c9c
Bug 1313281 - Part 5: Remove NeedsFenceHandle. r=sotaro
2016-10-27 21:02:12 +13:00
Matt Woodrow
db63ec0ace
Bug 1313281 - Part 2: Remove DeliverFence. r=sotaro
2016-10-27 20:59:50 +13:00
Matt Woodrow
bda6eacad9
Bug 1313281 - Part 1: Remove AsyncTransactionTracker. r=sotaro
2016-10-27 20:59:23 +13:00
Matt Woodrow
4d0b10822d
Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro
2016-10-27 13:17:10 +13:00
Matt Woodrow
6b75399b35
Bug 1297826 - Override FatalError for IPDL protocols that access the GPU process and make it non-fatal. r=billm
2016-10-04 21:31:27 +13:00
Matt Woodrow
f0b6731a16
Bug 1305361 - Implement IPCOpen for ImageBridgeChild. r=nical
2016-10-03 21:20:27 +13:00
Matt Woodrow
a0aad01631
Bug 1305897 - Move ActiveResourceTracker onto ShadowLayerForwarder, since it's not used anywhere else. r=nical
2016-10-03 21:20:13 +13:00
Matt Woodrow
55f506db9f
Bug 1281456 - Decouple TextureForwarder and CompositableForwarder. r=gw280
2016-09-27 16:22:20 +13:00
David Anderson
81234feb8d
Recreate content compositor endpoints when the GPU process dies. (bug 1300936
part 3, r=mattwoodrow,billm)
...
--HG--
extra : rebase_source : 054937d0adf92ab90c0a630034808e5069b6a956
2016-09-20 01:18:50 -07:00
David Anderson
5625cb3c96
Remove FallbackDestroyActors. (bug 1301780 part 1, r=nical)
2016-09-15 23:57:17 -07:00
David Anderson
b5c10b4d4e
Ensure IPDL owns a reference to ImageBridgeChild. (bug 1298938 part 6, r=billm)
...
--HG--
extra : rebase_source : 958b9b9cb6704d5b1d5096f63ef31fb0a8828009
2016-09-13 16:30:57 -07:00
David Anderson
07336b7d13
Protect ImageBridgeChild's singleton with a StaticMutex. (bug 1298938 part 5, r=mattwoodrow)
...
--HG--
extra : rebase_source : 974ad32cfaf3ba6d1af75d8857f0a35da5aa3641
2016-09-13 16:30:57 -07:00
David Anderson
62129d7cb4
Remove racy ImageBridgeChild shutdown/creation checks. (bug 1298938 part 4, r=nical)
...
--HG--
extra : rebase_source : 0419df6221d59c4e9b085015d8483267fb3d446f
2016-09-13 16:30:57 -07:00
David Anderson
f80736e0c8
Shutdown XPCOM-dependent resources in ImageBridgeChild at the appropriate time. (bug 1298938 part 3.1, r=mattwoodrow)
...
--HG--
extra : rebase_source : 9579e1ca6ec1af2fac7cd0fc4574b849cc8b8e12
2016-09-13 16:30:57 -07:00
David Anderson
3da3b0f45c
Simplify ImageBridgeChild asynchronous shutdown. (bug 1298938 part 3, r=nical)
...
--HG--
extra : rebase_source : 04516571d48f85a94d88a8eb424f8e41e04483ca
2016-09-13 16:30:56 -07:00
David Anderson
d1ef6f2696
Simplify ImageBridgeChild asynchronous initialization. (bug 1298938 part 2, r=mattwoodrow)
...
--HG--
extra : rebase_source : 1bdb57079ca7f3b4c2be6d1bcd5dd3f0ee0c92c1
2016-09-13 16:30:56 -07:00
David Anderson
82339b2d66
Route dispatches in ImageBridgeChild through |this|, not the singleton. (bug 1298938 part 1, r=mattwoodrow)
...
--HG--
extra : rebase_source : bfadf1b91ad88503d4c37a6b4ac6dcc32cd78ca6
2016-09-13 16:30:56 -07:00
David Anderson
7d3f5ed5b4
Simplify ImageContainerChild memory management. (bug 1299621 part 2, r=nical)
2016-09-06 15:20:41 -07:00
David Anderson
1c2785873c
Refactor CompositableClient memory management. (bug 1299375 part 2, r=nical)
2016-09-02 16:08:49 -07:00
David Anderson
471ed8630a
Implement ImageBridge support for the GPU process. (bug 1287366 part 3, r=mattwoodrow,billm)
...
--HG--
extra : rebase_source : 0fc5f5bab52e6f49ed2c607e63c9a14d0509dd9a
2016-07-20 00:19:27 -07:00
David Anderson
6aca1d9865
Use Endpoints for content-process ImageBridges. (bug 1287366 part 2, r=billm)
...
--HG--
extra : rebase_source : 388c44e8df0ff45eb32e12d2b98c654cb0592bf0
2016-07-20 00:18:30 -07:00
David Anderson
20e7252a49
Move parent-process ImageBridgeChild startup to GPUProcessManager. (bug 1287366 part 1, r=mattwoodrow)
...
--HG--
extra : rebase_source : c8c1ca6fdea8f4f87bd5da392e120834c3c27a24
2016-07-20 00:17:28 -07:00
Nicolas Silva
f541fa5146
Bug 1281775
- Make dib textures not rely on accessing a ShadowLayerForwarder. r=gw280
2016-06-29 11:18:35 +02:00
Sebastian Hengst
d467495de4
Backed out changeset dbd3759d9489 (bug 1281775
)
2016-06-28 20:28:23 +02:00
Nicolas Silva
ef48def7da
Bug 1281775
- Make dib textures not rely on accessing a ShadowLayerForwarder. r=gw280
2016-06-28 14:06:48 +02:00
Sotaro Ikeda
f731d220ed
Bug 1252835 - Make TextureHost recycling implicit r=nical
2016-06-15 04:28:10 -07:00
Nicolas Silva
bd7973ab2d
Bug 1256693 - ISurfaceAllocator cleanup. r=sotaro
2016-03-17 14:58:58 +01:00
Nicolas Silva
f02f7a61e4
Bug 1221056 - Make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
2016-01-07 11:17:40 +01:00
Johan Lorenzo
8612fa1f8c
Backout Bug 1221056 - make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
...
For breaking Firefox OS boot startup (see bug 1237197)
--HG--
extra : commitid : Eoiq2mNqfw9
2016-01-06 14:59:35 +01:00
Nicolas Silva
4d9fc4395b
Bug 1221056 - make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
2016-01-05 14:03:26 +01:00
Jean-Yves Avenard
647eadb92b
Bug 1223193: P2. Cancel ImageBridge proxy functions if shutdown has started. r=nical
2015-12-30 16:52:41 +11:00
Jean-Yves Avenard
eb979d623f
Bug 1223193: P1. Make ImageBridgeChild::mShuttingDown atomic. r=nical
2015-12-30 15:13:19 +11:00
Nicolas Silva
8baf8f2c04
Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow
2015-11-20 14:25:03 +01:00
Wes Kocher
72261b4523
Backed out 12 changesets (bug 1200595) for b2g mochitest crashes in SharedBufferManagerParent CLOSED TREE
...
Backed out changeset cf8cf1a039dd (bug 1200595)
Backed out changeset 65da564f952c (bug 1200595)
Backed out changeset 7663208f1582 (bug 1200595)
Backed out changeset fc1fbb97c8eb (bug 1200595)
Backed out changeset 3ad5a4c457fe (bug 1200595)
Backed out changeset add3fe9afc0c (bug 1200595)
Backed out changeset 68aba6b39588 (bug 1200595)
Backed out changeset ab326c34f1cf (bug 1200595)
Backed out changeset ed34bc528a1b (bug 1200595)
Backed out changeset 0dc93424546c (bug 1200595)
Backed out changeset 8cc12f12f3d1 (bug 1200595)
Backed out changeset bb84403701b7 (bug 1200595)
--HG--
extra : commitid : AMC6i05xyTh
2015-11-24 10:07:02 -08:00
Nicolas Silva
c89268e8b1
Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow
2015-11-20 14:25:03 +01:00
Carsten "Tomcat" Book
1a584aca79
Backed out 13 changesets (bug 1200595) for possibly breaking Reftest [TC] Crashtest tc-R on a CLOSED TREE
...
Backed out changeset e7278af0a484 (bug 1200595)
Backed out changeset c13228f84d85 (bug 1200595)
Backed out changeset 4b88e8a3d8af (bug 1200595)
Backed out changeset e55376bd2cf8 (bug 1200595)
Backed out changeset 9c27c8e2c021 (bug 1200595)
Backed out changeset a369a2983ceb (bug 1200595)
Backed out changeset 09e71ba15ea8 (bug 1200595)
Backed out changeset b555b130d439 (bug 1200595)
Backed out changeset 6819f6d82287 (bug 1200595)
Backed out changeset a8cdfbf443d8 (bug 1200595)
Backed out changeset 0092c9d7a86b (bug 1200595)
Backed out changeset 6dc38a1e6073 (bug 1200595)
Backed out changeset fe2164aa1468 (bug 1200595)
2015-11-20 16:55:26 +01:00
Nicolas Silva
4b5d77112d
Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow
...
* * *
Bug 1200595 - Rebase fixes
2015-11-20 14:25:03 +01:00
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
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
David Anderson
3716363c72
Remove the static compositor backend variable. (bug 1211109 part 2, r=mattwoodrow)
2015-10-05 23:39:00 -07: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
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
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