Milan Sreckovic
f9a4fe7edd
Bug 1219494 - Part 4. gfx/layers and gfxCrash. r=mchang
2015-12-10 13:01:00 +01:00
Sotaro Ikeda
d130ed9c8e
Bug 1206763 - Enable SkiaGL canvas on gonk r=mattwoodrow
2015-10-20 01:35:00 -07: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
Nathan Froyd
bf7f6dda03
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
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
5d262e4409
Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
...
Thanks Jon Morton [:jmorton] ([email protected] ) for polishing patches.
2015-10-12 11:21:02 +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
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
f3a9959ded
Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async. r=nical
...
Thanks Jon Morton [:jmorton] ([email protected] ) for polishing patches.
2015-10-05 10:50:15 +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
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
276c20ec9e
Bug 709490 - Part 1: Let ImageBridge transfer CanvasClient async, r=nical
2015-09-29 11:51:23 +01:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Bas Schouten
69fc33898a
Bug 1167235 - Part 4: Remove DrawTarget as a possible means of initializing Canvas layers. r=nical
2015-06-19 01:07:22 +02:00
Bas Schouten
0d99964298
Bug 1167235 - Part 2: Add support for the basic buffer provider to CanvasLayer. r=nical
2015-06-19 01:07:21 +02:00
Jeff Gilbert
b9ee920350
Bug 1144906 - Add accel E10S backend for WebGL compositing. - r=jrmuizel,mattwoodrow,nical,sotaro
2015-06-04 17:15:38 -07:00
Wes Kocher
c801883c90
Backed out changeset c4d1692d88ee (bug 1144906) for OSX m(gl) permaorange
2015-06-04 16:50:59 -07:00
Jeff Gilbert
f857abecd5
Bug 1144906 - Add accel E10S backend for WebGL compositing. - r=jrmuizel,mattwoodrow,nical,sotaro
2015-06-04 14:21:32 -07:00
Amanda Sambath
86f2768844
Bug 1158120 - Edit include and comments that contained gfxIntSize and nsIntSize. r=nical
2015-05-29 17:01:46 +02:00
Wes Kocher
e3c99b1002
Backed out changeset 29bd04fc57f0 (bug 1144906) for b2g m12 orange
2015-05-28 17:08:53 -07:00
Jeff Gilbert
1e6d621331
Bug 1144906 - Fast WebGL compositing on E10S. - r=jrmuizel,mattwoodrow,nical
2015-05-28 14:51:39 -07:00
Thibaud Backenstrass
93145c402c
Bug 1158122 - Remove the remaining occurences of nsIntRect in gfx/layers. r=nical
2015-05-07 11:07:53 +02:00
Phil Ringnalda
b2bf3c92a2
Back out dc2fed1aa0af (bug 1144906) for ASan, Android debug, and OS X 10.10 mochitest-gl bustage
...
CLOSED TREE
2015-05-06 19:55:40 -07:00
Jeff Gilbert
56670c45c9
Bug 1144906 - Fast WebGL on E10S. - r=mattwoodrow,nical
2015-05-06 16:35:29 -07:00
Wes Kocher
d3991e8f5e
Backed out changeset 93af6e2a390d (bug 1144906) for build bustage
2015-05-06 16:01:47 -07:00
Jeff Gilbert
18916e6e17
Bug 1144906 - Support fast WebGL on E10S. - r=mattwoodrow,nical
2015-05-06 13:48:28 -07:00
Jeff Gilbert
4f9c932a23
Bug 1124394 - Support Core profiles for GLContext. - r=kamidphish
2015-02-12 19:00:41 -08:00
Jeff Gilbert
e2b7d174dd
Bug 1100699 - Use OriginPos instead of isInverted. - r=mattwoodrow,snorp
2014-11-17 17:02:19 -08:00
jdashg
bc7e26ddd9
Bug 1066280 - Review fixes. - r=kamidphish,mattwoodrow
2014-10-08 13:04:19 -07:00
jdashg
7faaf9266c
Bug 1066280 - Fixes for SurfaceStream removal. - r=kamidphish,mattwoodrow
2014-10-07 21:16:14 -07:00
jdashg
f4e7d402a7
Bug 1066280 - Remove SurfaceStream. - r=kamidphish,mattwoodrow
2014-10-07 21:15:39 -07:00
jdashg
e48648f8ea
Bug 1066280 - Add TexClient for ShSurf. - r=kamidphish,mattwoodrow
...
From a7c09c0f17e19fd2254cb1d7a8ddd07b327151ad Mon Sep 17 00:00:00 2001
---
gfx/2d/HelpersCairo.h | 2 +
gfx/gl/GLContext.cpp | 3 +-
gfx/gl/GLContext.h | 2 -
gfx/gl/GLReadTexImageHelper.cpp | 21 +--
gfx/gl/GLReadTexImageHelper.h | 6 +
gfx/gl/GLScreenBuffer.h | 6 +-
gfx/gl/ScopedGLHelpers.cpp | 40 +++++
gfx/gl/ScopedGLHelpers.h | 26 ++-
gfx/gl/SharedSurface.cpp | 94 +++++++++++
gfx/gl/SharedSurface.h | 19 +++
gfx/gl/SharedSurfaceIO.h | 4 +
gfx/layers/CopyableCanvasLayer.cpp | 3 +-
gfx/layers/client/CanvasClient.cpp | 276 +++++++++++++++++++++++++++++---
gfx/layers/client/CanvasClient.h | 34 ++++
gfx/layers/client/ClientCanvasLayer.cpp | 21 ++-
gfx/layers/client/ClientCanvasLayer.h | 9 +-
gfx/layers/client/TextureClient.cpp | 35 ++++
gfx/layers/client/TextureClient.h | 85 +++++++++-
gfx/layers/composite/TextureHost.cpp | 131 ++++++++++++++-
gfx/layers/composite/TextureHost.h | 64 ++++++++
gfx/layers/d3d10/CanvasLayerD3D10.cpp | 5 +-
gfx/layers/ipc/LayersSurfaces.ipdlh | 5 +
22 files changed, 828 insertions(+), 63 deletions(-)
2014-10-07 21:01:51 -07:00
Milan Sreckovic
e5735c90c6
Bug 1033310: Handle CreateDataSourceSurface* returning nullptr. f=nsilva, r=bschouten
2014-08-27 11:57:43 -04:00
David Zbarsky
20ea50717f
Bug 952977: Switch some remaining gfxMatrix uses in layers to gfx::Matrix r=nical
2014-07-21 21:37:57 -04:00
Jeff Gilbert
e9a9e7bc3d
Bug 1037151 - Merge SharedSurface_GL into SharedSurface. - r=mattwoodrow
2014-07-11 15:10:49 -07:00
Jeff Gilbert
6b722909fc
Bug 1000640 - Use new StreamTextureClient/Host with OMTC. - r=mattwoodrow
2014-06-18 17:04:06 -07:00
Jeff Gilbert
ae7b2f4ae8
Bug 1000640 - Handle non-premult alpha in Layers. - r=mattwoodrow
2014-06-18 17:04:05 -07:00
Wes Kocher
b05e0c6233
Backed out changeset f644eda342c2 (bug 1000640) for various gl-based failures on a CLOSED TREE
2014-06-04 18:29:21 -07:00
Wes Kocher
5de84ad908
Backed out changeset 3a764e34c366 (bug 1000640)
2014-06-04 18:27:22 -07:00
Jeff Gilbert
c1ad500e63
Bug 1000640 - Use new StreamTextureClient/Host with OMTC. - r=mattwoodrow
2014-06-04 15:20:26 -07:00
Jeff Gilbert
e48156b971
Bug 1000640 - Handle non-premult alpha in Layers. - r=mattwoodrow
2014-06-04 15:20:24 -07:00
Nicolas Silva
8a0c258ce9
Bug 1013292 - Fix some using namespace + unified build issues in gfx code. r=kats
2014-05-22 12:11:45 +02:00
Matt Woodrow
9274c56bf6
Bug 1006198 - Use 8byte aligned surface for CopyableCanvasLayer since that's the max WebGL supports for readback. r=nical
2014-05-13 14:20:27 +12:00
Matt Woodrow
9cae5a8112
Bug 1006198 - Add PremultiplyDataSurface. r=nical
2014-05-13 14:20:26 +12:00
Wes Kocher
296ba356fc
Backed out 6 changesets (bug 1006198) for webgl assertions on a CLOSED TREE
...
Backed out changeset 5be3c8c44eed (bug 1006198)
Backed out changeset 4b15abd14f28 (bug 1006198)
Backed out changeset bd11a10e7028 (bug 1006198)
Backed out changeset e1044a8ab189 (bug 1006198)
Backed out changeset 558abe22ab30 (bug 1006198)
Backed out changeset 5462b9babaed (bug 1006198)
2014-05-12 20:47:52 -07:00
Matt Woodrow
014b35901d
Bug 1006198 - Use 8byte aligned surface for CopyableCanvasLayer since that's the max WebGL supports for readback. r=nical
2014-05-13 14:20:27 +12:00
Matt Woodrow
c406e214aa
Bug 1006198 - Add PremultiplyDataSurface. r=nical
2014-05-13 14:20:26 +12:00
Benoit Girard
8c269c3452
Bug 1007897 - Release mSurface reference earlier to reduce copies and peak memory. r=mattwoodrow
2014-05-09 11:52:11 -04:00
Robert O'Callahan
69001d6e7b
Bug 995745 - Use LockPixels for WebGL readback directly into a DrawTarget instead of writing to an immutable snapshot. r=mattwoodrow
2014-05-01 11:12:41 +12:00
Jonathan Watt
55c20bd03b
Bug 996901 - Remove lots of gfxASurface.h and gfxImageSurface.h includes and forward declarations that are no longer needed. r=mattwoodrow
2014-04-16 01:41:40 +01:00