Commit Graph

741 Commits

Author SHA1 Message Date
Bas Schouten
1445b3303c Bug 1210560 - Part 4: Remove code to support non operator-over in nsRenderDocument and move to CanvasRenderingContext2D::DrawWindow. r=roc 2015-11-11 16:15:39 +01:00
Andreas Pehrson
378e2b660c Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib 2015-11-09 23:17:41 +08:00
Carsten "Tomcat" Book
b99a10013e merge mozilla-inbound to mozilla-central a=merge 2015-11-09 14:55:30 +01:00
Wes Kocher
323f28486f Merge m-c to b2ginbound, a=merge 2015-11-06 15:14:26 -08:00
Wes Kocher
8012c27726 Backed out 5 changesets (bug 1219711) for frequent android m(9) failures a=bustage
Backed out changeset 2d5f09d89424 (bug 1219711)
Backed out changeset cf14a6e5f340 (bug 1219711)
Backed out changeset 4eaa8cf9a752 (bug 1219711)
Backed out changeset 65abe62869df (bug 1219711)
Backed out changeset a21d79a94307 (bug 1219711)
2015-11-06 11:14:11 -08:00
Gregor Wagner
81a213c732 Bug 1222478 - Enable more mulet tests. r=gerard-majax 2015-11-06 20:01:45 +01:00
Lee Salzman
94f821f5ce Bug 1222083 - verify that a Skia GL context is actually available before trying to use it in Canvas2D drawImage. r=jmuizelaar 2015-11-05 12:33:12 -05:00
L. David Baron
1b093e6db8 Bug 1221436 patch 2 - For style attributes, only store a css::Declaration instead of a css::StyleRule. r=heycam
Now that Declaration implements nsIStyleRule, we don't need the memory
overhead of storing a StyleRule object for style attributes.

We also need to change this prior to patch 5, because the changes in
patch 5 that will allow rules to change (but declarations not) would
otherwise break due to style attribute object merging done by
nsAttrValue::ParseStyleAttribute.
2015-11-09 15:57:16 +08:00
Andreas Pehrson
207c4f7cf6 Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib 2015-11-05 17:15:50 +08:00
Nathan Froyd
2258a5261d Bug 1216611 - add mozilla::MakeUniqueFallible and convert uses throughout the tree; r=Waldo 2015-11-05 16:24:24 -05:00
L. David Baron
bd34fad9af Bug 978833 patch 18 - Eliminate StyleRule::RuleMatched and call Declaration::SetImmutable directly for style rules (like for @page and keyframe rules). r=heycam
This is just simplification (plus the addition of an assertion).
2015-11-05 16:44:10 +08:00
L. David Baron
c7d6d8dcfa Bug 978833 patch 12 - Use the css::Declaration instead of the css::StyleRule as the matching rule. r=heycam
This is the key change in this patch series; it changes the object we
use for style data (currently nsIStyleRule) identity.  It allows
removing some hacks we have to deal with that for StyleRule, and avoids
having to write similar hacks for nsCSSKeyframeRule and nsCSSPageRule
(which are broken without this).

I confirmed locally that it is this patch that fixes both of the todo_is
mochitests, by building and testing with the patch queue through patch
11, and again through patch 12.
2015-11-05 16:44:10 +08:00
Jeff Muizelaar
3e6bd6f644 Bug 1220783. Map GetUniformIndices names. r=jgilbert
This is needed for things to work with the shader translator
2015-11-04 13:35:35 -05:00
Jeff Muizelaar
f752f50ee6 Bug 1218559. Implement FindUniformBlockByMappedName. r=jgilbert 2015-11-04 13:35:35 -05:00
Jeff Muizelaar
193b3cac9a Bug 1218944. Transform feedback linking should use varyings intead of attribs. r=jgilbert 2015-11-04 13:35:35 -05:00
Matt Woodrow
c52383a285 Bug 1217225 - Differentiate between images optimized for skia and skia-gl in the CanvasImageCache. r=mstange 2015-11-04 15:12:24 +13:00
Joel Maher
466013036a Bug 1216549 - osx 10.10.5 error in /test_conformance__canvas__viewport-unchanged-upon-resize.html. r=jgilbert 2015-11-03 01:32:04 -08:00
Wes Kocher
42739fea04 Backed out 5 changesets (bug 1219711) for frequent android m(9) failures
Backed out changeset 2d5f09d89424 (bug 1219711)
Backed out changeset cf14a6e5f340 (bug 1219711)
Backed out changeset 4eaa8cf9a752 (bug 1219711)
Backed out changeset 65abe62869df (bug 1219711)
Backed out changeset a21d79a94307 (bug 1219711)
2015-11-06 11:14:11 -08:00
Wes Kocher
73f1aa2fe0 Backed out 2 changesets (bug 1207546, bug 1213154) for gij(11) bustage
Backed out changeset 771ace622de1 (bug 1207546)
Backed out changeset 786bc35f327a (bug 1213154)
2015-11-06 10:58:46 -08:00
Andrea Marchesini
ef408da370 Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-11-06 16:16:57 +00:00
Birunthan Mohanathas
94998cf5fe Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Ryan VanderMeulen
a46beb2ec9 No bug - Various crashtest manifest cleanups. 2015-10-31 19:35:27 -04:00
Jeff Muizelaar
f87c7deafe Bug 1219027. Fix unbinding transformfeedback when deleting it. r=djg
I believe this was the original intention of the code.
This fixes deletion conformance tests.
2015-10-27 18:01:29 -04:00
Phil Ringnalda
038f516afe Back out changeset 5e23a96f0b4f (bug 1219027)on suspicion of causing Mulet bustage in webgl-capturestream-test.html?preserve 2015-10-31 14:14:23 -07:00
Phil Ringnalda
aac5854d85 Back out changeset 81b802b69a74 (bug 1213154) for Linux/Mulet webgl reftest failures
CLOSED TREE
2015-10-31 11:58:18 -07:00
Jeff Muizelaar
ac415edee1 Bug 1219027. Fix unbinding transformfeedback when deleting it. r=djg
I believe this was the original intention of the code.
This fixes deletion conformance tests.
2015-10-27 18:01:29 -04:00
Andrea Marchesini
8d493aad3f Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-10-31 15:20:59 +00:00
Nicholas Nethercote
cd0d639069 Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas. 2015-10-22 23:01:31 -07:00
Nathan Froyd
55609900e0 Bug 1218488 - clarify buffer ownership for nsICanvasRenderingContextInternal::GetBuffer; r=Bas,baku
This patch started life as making ImageEncoder.cpp:EncodingRunnable not
use nsAutoArrayPtr, but the API effects rippled out from there.  On the
whole, I think using UniquePtr throughout has made the code clearer.
2015-10-26 14:31:12 -04:00
Milan Sreckovic
45d627755d Bug 1217550 - In debug build, drop a note if we use SkiaGL canvas. Simplify logging defines and flags for non-critical errors. r=benwa 2015-10-23 14:08:00 +02:00
Birunthan Mohanathas
a535083ab4 Bug 1217320 - Remove more XPIDL signature comments in .cpp files. r=froydnj
Comment-only, DONTBUILD.
2015-10-27 06:54:25 +02:00
Nathan Froyd
1bfe0f9919 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
Dan Glastonbury
23eddea26c Bug 1215414 - Fix ClearBuffer taking TypedArrays. r=jgilbert 2015-10-23 15:35:09 +10:00
Sotaro Ikeda
a9ad5d1faa Bug 1206763 - Enable SkiaGL canvas on gonk r=mattwoodrow 2015-10-20 01:35:00 -07:00
Dan Glastonbury
15e7563a26 Bug 1193070 - Implement GetFramebufferAttachmentParameter. r=jgilbert 2015-10-20 12:46:28 +10:00
Ehsan Akhgari
8c81fdfe34 Bug 1216177 - Remove the remaining nsRefPtr forward declarations; r=froydnj 2015-10-19 12:02:14 -04:00
Dan Glastonbury
b569a22b2c Bug 1209384 - Check active query has same type as target. r=jgilbert 2015-10-19 10:05:54 +10:00
Olli Pettay
7316d2caa5 Bug 1215072 - throw in case dictionary initialization fails in canvas.getContext, r=baku 2015-10-18 14:14:22 +03: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
Phil Ringnalda
4593027ee8 Back out changeset 09e059daabae (bug 1215072) for adding a permaorange-on-b2g test
CLOSED TREE
2015-10-16 18:42:41 -07:00
Olli Pettay
753b624eda Bug 1215072 - throw in case dictionary initialization fails in canvas.getContext, r=baku 2015-10-16 22:52:11 +03:00
Lee Salzman
375e2efa2d Bug 1161277 - verify SkPath is finite before doing ContainsPoint queries. r=jmuizelaar 2015-10-09 16:07:59 -04:00
Jeff Muizelaar
9ad3a4d985 Bug 1207288. Enable the ANGLE shader validator for WebGL 2. r=jgilbert
ANGLE's shader parser has much better support for ES3 now. Let's
no longer disable it by default.
2015-10-13 14:40:26 -04:00
Jed Davis
c9d8e74b0f Bug 1213491 - Change CanvasRenderingContext2D::ContextState::clipsPushed to an nsTArray. r=nical 2015-10-09 16:20:00 +02:00
Jukka Jylanki
bb0cc73d64 Bug 1147441 - Add SharedArrayBuffer support to WebGL and WebGL 2. r=jgilbert, r=bzbarsky 2015-10-14 11:18:19 +05:30
Phil Ringnalda
9276f87c84 Back out changeset d34a1af95066 (bug 1207288) for Windows mochitest-gl not being that into being validated
CLOSED TREE
2015-10-13 20:00:38 -07:00
Jeff Muizelaar
9f5eada2ae Bug 1207288. Enable the ANGLE shader validator for WebGL 2. r=jgilbert
ANGLE's shader parser has much better support for ES3 now. Let's
no longer disable it by default.
2015-10-13 14:40:26 -04:00
Morris Tseng
3a1685318e Bug 709490 - Part 11: Diabled test_offscreencanvas_many.html on gonk, android, windows and linux. r=jgilbert 2015-10-12 11:21:04 +08:00
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