David Anderson
d2688451ad
Remove racy ImageBridgeChild shutdown/creation checks. (bug 1298938 part 4, r=nical)
2016-09-13 16:30:57 -07:00
David Anderson
a3c9f738b5
Refactor CompositableClient memory management. (bug 1299375 part 2, r=nical)
2016-09-02 16:08:49 -07:00
eyim
e2c2b0b56c
Bug 1277027 - fix MOZ_CRASH to have GFX prefix in webGL code r=BenWa,milan
...
MozReview-Commit-ID: FjLA9xNH3zD
2016-06-06 11:17:23 -04:00
Aryeh Gregor
1c3d681cd3
Bug 1193762 part 8 - Fix things that will break; r=froydnj
...
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Phil Ringnalda
712fd4e2ee
Back out 9 changesets (bug 801176) for frequent crashes in test_offscreencanvas_dynamic_fallback.html
...
Backed out changeset 82320c900699 (bug 801176)
Backed out changeset 624fb8512ba5 (bug 801176)
Backed out changeset a2a7b1c4dc5b (bug 801176)
Backed out changeset e210473d793c (bug 801176)
Backed out changeset 0fb279e041e1 (bug 801176)
Backed out changeset c090dc98c670 (bug 801176)
Backed out changeset fc509e59a0cd (bug 801176)
Backed out changeset 134a8c56335a (bug 801176)
Backed out changeset 2022afa9aef2 (bug 801176)
2016-03-05 07:20:47 -08:00
vincentliu
26c1035700
Bug 801176 - part8-v1: Fix memory leak in OffscreenCanvas. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 2 ++
dom/canvas/OffscreenCanvas.cpp | 12 +++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
2016-03-04 15:24:50 +08:00
vincentliu
e5802e9840
Bug 801176 - part6-v1: Modify BufferProvider operations to fix assertions. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 12 +++--
dom/canvas/OffscreenCanvas.cpp | 2 -
gfx/layers/AsyncCanvasRenderer.cpp | 85 +++++++++++++++++++++++++--------
gfx/layers/AsyncCanvasRenderer.h | 1 +
4 files changed, 73 insertions(+), 27 deletions(-)
2016-03-04 15:24:00 +08:00
vincentliu
fd0afbeb0e
Bug 801176 - part2-v5: Let Canvas 2d context works on Workers. r=roc
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 53 ++++++++++++-----------
dom/canvas/OffscreenCanvas.cpp | 46 +++++++++++---------
dom/html/HTMLCanvasElement.cpp | 1 +
gfx/layers/AsyncCanvasRenderer.cpp | 17 ++++++++
gfx/layers/AsyncCanvasRenderer.h | 16 +++++++
gfx/layers/Effects.cpp | 6 +++
gfx/layers/GLImages.cpp | 5 +--
gfx/layers/client/CanvasClient.cpp | 74 +++++++++++++++++++++++++--------
gfx/layers/client/CanvasClient.h | 10 ++++-
9 files changed, 162 insertions(+), 66 deletions(-)
2016-03-04 15:22:39 +08:00
Morris Tseng
e28be5fbce
Bug 1172796 - Part 7: Implements ImageBitmapRenderingContext. r=roc r=smaug
2015-12-18 14:52:17 +08:00
Morris Tseng
c50939d622
Bug 1172796 - Part 5: Implements OffscreenCanvas::TransferImageBitmap. r=roc r=smaug
2015-12-18 14:52:17 +08:00
Morris Tseng
8a5d96d30d
Bug 1172796 - Part 4: Implement OffscreenCanvas::ToBlob. r=roc r=smaug
2015-12-18 14:52:17 +08:00
Morris Tseng
990e75c3da
Bug 1172796 - Part 3: Implement OffscreenCanvas constructor. r=roc r=smaug
2015-12-18 14:52:17 +08:00
Morris Tseng
d68a981993
Bug 1172796 - Part 2: Add write-only flag for origin-clean check. r=roc
2015-12-18 14:52:17 +08:00
Nathan Froyd
4e6d8f6705
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
Morris Tseng
6429de4191
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
8ce8403338
Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
2015-10-12 11:21:03 +08:00
Morris Tseng
7a41b6b29e
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
Wes Kocher
bbd458236d
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
f58b975847
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
c17e9b2c66
Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
2015-10-05 10:50:16 +08:00
Morris Tseng
3d989074c9
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-05 10:50:16 +08:00
Wes Kocher
20f2b1dd4d
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
Morris Tseng
b60592f411
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
a0c3fca880
Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer, r=roc
2015-09-29 11:51:25 +01:00
Morris Tseng
af4e4ca4d9
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