Commit Graph

2457 Commits

Author SHA1 Message Date
Dan Glastonbury
c0332f9eca Bug 990851 - Fix TexSubImage with cubemap face failure. r=jgilbert 2014-04-22 14:09:33 +10:00
Jeff Gilbert
5264f23236 Bug 996282 - Cleanup getParameter. - r=kamidphish 2014-04-16 14:36:53 -07:00
Jeff Gilbert
10e41be39e Bug 996269 - Lazily clear the WebGL backbuffer. - r=kamidphish 2014-04-17 13:15:41 -07:00
Jonathan Watt
4d4f872270 Bug 991572 - Stop creating a Thebes backed gfxContext in CanvasRenderingContext2D.cpp, and kill off nsICanvasRenderingContextInternal::GetThebesSurface. r=mattwoodrow 2014-04-17 22:13:34 +12:00
Matt Woodrow
6446538454 Bug 997014 - Part 6: Remove duplicate code for retreiving a snapshot from a canvas in CanvasRenderingContext2D. r=roc 2014-04-17 17:32:41 +12:00
Matt Woodrow
6b7ca44df2 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
5f57c2e041 Bug 997014 - Part 4: Remove the external canvas API. r=roc 2014-04-17 17:31:12 +12:00
Matt Woodrow
86b6375508 Bug 997014 - Part 2: Make SurfaceFromElement use GetSurfaceSnapshot instead of the external API. r=roc 2014-04-17 17:29:52 +12:00
Matt Woodrow
9b9ba8d636 Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Carsten "Tomcat" Book
b546e22317 Backed out changeset ce1fe33d58a0 (bug 997014) for mochitest m-1 orange on a CLOSED TREE 2014-04-17 08:44:04 +02:00
Carsten "Tomcat" Book
ba19928c26 Backed out changeset 20b75bf44c1e (bug 997014) 2014-04-17 08:43:43 +02:00
Carsten "Tomcat" Book
6660a44984 Backed out changeset 29ed3c34af5e (bug 997014) 2014-04-17 08:43:40 +02:00
Carsten "Tomcat" Book
7d7feda648 Backed out changeset 8681fc7a918b (bug 997014) 2014-04-17 08:43:38 +02:00
Carsten "Tomcat" Book
c3cc67ccbe Backed out changeset 6ba917df6b41 (bug 997014) 2014-04-17 08:43:35 +02:00
Matt Woodrow
4c8de892c9 Bug 997014 - Part 6: Remove duplicate code for retreiving a snapshot from a canvas in CanvasRenderingContext2D. r=roc 2014-04-17 17:32:41 +12:00
Matt Woodrow
78bebb7704 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
b67c6c7a20 Bug 997014 - Part 4: Remove the external canvas API. r=roc 2014-04-17 17:31:12 +12:00
Matt Woodrow
09beb252fa Bug 997014 - Part 2: Make SurfaceFromElement use GetSurfaceSnapshot instead of the external API. r=roc 2014-04-17 17:29:52 +12:00
Matt Woodrow
ff324179b8 Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Dan Glastonbury
f4f90e3427 Bug 966630 - Clamp level to TexImage operations to [0..31]. r=jgilbert
--HG--
extra : rebase_source : 90ba0687cffd63a361f655b89bab077713a8a312
2014-04-16 11:23:41 +10:00
Jonathan Watt
200e95e9eb 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
Steve Singer
18537ce80a Bug 980891 - #ifdef out usage of Skia objects on non-skia builds. r=gal 2014-04-15 21:07:42 +02:00
Jeff Gilbert
aff8e61873 Bug 892990 - Cap waiting time for wait-for-composite in WebGL reftests. - r=bjacob 2014-04-14 15:43:57 -07:00
L. David Baron
066a90769d Bug 995661 followup - Skip mochitest on b2g desktop for now on a CLOSED TREE. 2014-04-14 13:21:28 -07:00
L. David Baron
395dc31ab1 Bug 995721 patch 2 - Run drawWindow mochitests on a toplevel window. r=mattwoodrow
Without patch 1, the final 4 of the set of 7 tests fail on Linux with
accelerated layers (whereas all the ones they were copied from, added in
bug 995661, pass, given the patches in that bug but not this one).  (I
don't need to enable skia-canvas to see the failures without patch 1.  I
thought that didn't match my earlier testing, but I probably just never
tested that combination.  This means the failures happen even without
CanvasRenderingContext2D::DrawWindow going through the codepath where it
creates a DrawTarget.)

--HG--
rename : content/canvas/test/test_drawWindow.html => content/canvas/test/chrome/test_drawWindow_widget_layers.html
2014-04-14 11:12:00 -07:00
L. David Baron
9fcd6a5b60 Bug 995661 patch 3 - Add mochitest for canvas drawWindow. r=mattwoodrow
This test covers some basic cases, such as drawing the complete window
to a canvas of the same size, drawing a part of the window to a
different offset within the canvas, drawing parts of the window against
different backgrounds and against a transparent background, and doing
multiple such drawWindow calls on the same canvas.

It runs its tests both with an iframe (whose background is transparent)
and content in a new window (which has a white backdrop).

Bug 995721 will add further tests (in mochitest-chrome) that exercise
drawWindow from a toplevel chrome window, which exercises the
DRAWWINDOW_USE_WIDGET_LAYERS codepath, which these tests do not.

The final 4 tests in each set of 7 fail without patch 2 in this bug.
2014-04-14 11:12:00 -07:00
L. David Baron
6e1f9ad41b Bug 995661 patch 2 - Use OP_OVER rather than OP_SOURCE to handle canvas drawWindow calls that don't cover the canvas or (I believe) that contain transparency. r=mattwoodrow
This is needed to allow us to return to using partial-canvas invalidates
in the reftest harness, though only for the platforms that go through
this codepath.
2014-04-14 11:12:00 -07:00
L. David Baron
9a54c3de5a Bug 995661 patch 1 - Remove dead code resulting from removal of gfxPlatform::SupportsAzureContent(). r=mattwoodrow
This should have been removed in bug 985049.

The changes here can be understood as a simplification based on drawSurf
always being null.
2014-04-14 11:11:59 -07:00
Boris Zbarsky
c420001bda Bug 994793. Make the array bits of ToJSValue nicer. r=bholley 2014-04-10 14:57:42 -04:00
Boris Zbarsky
6520e56560 Bug 994453 part 2. Use the new ToJSValue methods so we have an example. r=bholley 2014-04-10 14:57:41 -04:00
Boris Zbarsky
5a6f899f61 Bug 993889 part 5. Remove the "creator" argument of the version of TypedArray::Create that takes a JSObject* creator. r=bholley 2014-04-10 00:58:42 -04:00
Boris Zbarsky
feebd363fb Bug 991742 part 9. Remove the "scope" argument of WrapNewBindingObject. r=bholley 2014-04-08 18:27:19 -04:00
Boris Zbarsky
79dab91ff6 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
d4bd64ee2c Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Daniel Holbert
b6bb05e33b Bug 984786 part 8: Give NS_INLINE_DECL_*REFCOUNTING classes private destructor & MOZ_FINAL annotation where appropriate, in /gfx and /content/canvas. r=bjacob 2014-04-04 09:27:02 -07:00
Jonathan Watt
2aca4e1214 Backout e401dfeab8b7 (bug 991572) for crashtest assertion. r=orange 2014-04-04 10:03:41 +01:00
Jonathan Watt
c10f7fac73 Bug 991572 - Stop creating a Thebes backed gfxContext in CanvasRenderingContext2D.cpp, and kill off nsICanvasRenderingContextInternal::GetThebesSurface (Moz2D migration). r=mattwoodrow 2014-04-04 09:15:59 +01:00
Jeff Gilbert
1beecde47e Bug 989575 - Generate INVALID_OP for null-program draws. - r=kamidphish 2014-04-01 23:12:43 -07:00
Jeff Gilbert
98ab9ed66a Bug 989575 - Add test for null program draws. - r=kamidphish 2014-04-01 23:12:42 -07:00
Jeff Gilbert
110ab6d666 Bug 985685 - Test that basic DrawArrays/Elements works. - r=kamidphish 2014-04-01 23:12:40 -07:00
Matt Woodrow
67d1c09cde Bug 990510 - Change reftest annotation ordering to be correct. 2014-04-01 21:40:15 +08:00
Matt Woodrow
d000aa37ac Bug 990510 - Disable failing webgl tests because of sadness. rs=jgilbert 2014-04-01 17:47:13 +08:00
Rik Cabanier
e0487a5064 Bug 988088 - Cache path objects in Path2D implementation. r=bas 2014-03-31 08:55:00 +02:00
Jonathan Watt
7d93c92875 Bug 988793 - Make DocumentRendererChild::RenderDocument use Moz2D. r=mattwoodrow 2014-03-31 12:52:33 +01:00
Benoit Jacob
dcf7236aab Bug 987828 - 3/4 - Use IsGLES instead of IsGLES2 - r=jgilbert 2014-03-31 05:10:49 -04:00
Benoit Jacob
8bc46df497 Bug 987828 - 2/4 - Optimize WebGL attrib0 stuff - r=jgilbert 2014-03-31 05:10:49 -04:00
Benoit Jacob
1819defe43 Bug 987828 - 1/4 - Move stuff to a new WebGLContextDraw.cpp file - r=jgilbert 2014-03-31 05:10:49 -04:00
Ben Kelly
9594ac92bc Bug 982237: Add skia max size pref. Limit to screen size on b2g. r=snorp 2014-03-27 23:48:22 -04:00
Gorman Ho
2f3c5ba795 Bug 983285 - Add a generic destructor for property values allocated with new. r=kats, r=bz 2014-03-25 09:25:47 -04:00
Ehsan Akhgari
dbac3cbee7 Bug 984195 - Remove MochiKit.js includes in the canvas tests; r=jrmuizel 2014-03-24 11:31:05 -04:00