Commit Graph

2368 Commits

Author SHA1 Message Date
Dan Glastonbury
c334f64c9c Bug 990851 - Fix TexSubImage with cubemap face failure. r=jgilbert 2014-04-22 14:09:33 +10:00
Jeff Gilbert
ec21c1973f Bug 996282 - Cleanup getParameter. - r=kamidphish 2014-04-16 14:36:53 -07:00
Jeff Gilbert
b907ee022e Bug 996269 - Lazily clear the WebGL backbuffer. - r=kamidphish 2014-04-17 13:15:41 -07:00
Jonathan Watt
cc5c8ff0dc 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
5771ca7992 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
30f65e3cc3 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
6fd7bb378f Bug 997014 - Part 4: Remove the external canvas API. r=roc 2014-04-17 17:31:12 +12:00
Matt Woodrow
8006e4b32d 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
0bf873e24d Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Carsten "Tomcat" Book
35c906cff6 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
502139c768 Backed out changeset 20b75bf44c1e (bug 997014) 2014-04-17 08:43:43 +02:00
Carsten "Tomcat" Book
9a457afe93 Backed out changeset 29ed3c34af5e (bug 997014) 2014-04-17 08:43:40 +02:00
Carsten "Tomcat" Book
e0251f4acb Backed out changeset 8681fc7a918b (bug 997014) 2014-04-17 08:43:38 +02:00
Carsten "Tomcat" Book
d9dbca87f4 Backed out changeset 6ba917df6b41 (bug 997014) 2014-04-17 08:43:35 +02:00
Matt Woodrow
c86a13d275 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
efb62922b5 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
941a17d27c Bug 997014 - Part 4: Remove the external canvas API. r=roc 2014-04-17 17:31:12 +12:00
Matt Woodrow
b0d6dd3888 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
3c93570e0d Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Dan Glastonbury
6076136d6e 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
61a8971526 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
325583bbc7 Bug 980891 - #ifdef out usage of Skia objects on non-skia builds. r=gal 2014-04-15 21:07:42 +02:00
Jeff Gilbert
1553a0f695 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
96aafebc66 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
1b583590cd 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
b5bb8d4250 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
662312cab0 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
39f1eb287e 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
cdf5e0db10 Bug 994793. Make the array bits of ToJSValue nicer. r=bholley 2014-04-10 14:57:42 -04:00
Boris Zbarsky
04539ac550 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
989b2cfcff 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
172c0446fa Bug 991742 part 9. Remove the "scope" argument of WrapNewBindingObject. r=bholley 2014-04-08 18:27:19 -04:00
Boris Zbarsky
fdbb455d4f 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
3f26a82832 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
6a7faff5d3 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
6a5abb5bbb Backout e401dfeab8b7 (bug 991572) for crashtest assertion. r=orange 2014-04-04 10:03:41 +01:00
Jonathan Watt
d8311bf9a7 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
fa2f80dbdc Bug 989575 - Generate INVALID_OP for null-program draws. - r=kamidphish 2014-04-01 23:12:43 -07:00
Jeff Gilbert
aa498ce46b Bug 989575 - Add test for null program draws. - r=kamidphish 2014-04-01 23:12:42 -07:00
Jeff Gilbert
5887a8fcb0 Bug 985685 - Test that basic DrawArrays/Elements works. - r=kamidphish 2014-04-01 23:12:40 -07:00
Matt Woodrow
4c694e7045 Bug 990510 - Change reftest annotation ordering to be correct. 2014-04-01 21:40:15 +08:00
Matt Woodrow
65116108ba Bug 990510 - Disable failing webgl tests because of sadness. rs=jgilbert 2014-04-01 17:47:13 +08:00
Rik Cabanier
41ac854d12 Bug 988088 - Cache path objects in Path2D implementation. r=bas 2014-03-31 08:55:00 +02:00
Jonathan Watt
0831821e03 Bug 988793 - Make DocumentRendererChild::RenderDocument use Moz2D. r=mattwoodrow 2014-03-31 12:52:33 +01:00
Benoit Jacob
7fff2c454f Bug 987828 - 3/4 - Use IsGLES instead of IsGLES2 - r=jgilbert 2014-03-31 05:10:49 -04:00
Benoit Jacob
0691e30a3d Bug 987828 - 2/4 - Optimize WebGL attrib0 stuff - r=jgilbert 2014-03-31 05:10:49 -04:00
Benoit Jacob
0f568328d8 Bug 987828 - 1/4 - Move stuff to a new WebGLContextDraw.cpp file - r=jgilbert 2014-03-31 05:10:49 -04:00
Ben Kelly
949315e412 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
f829937556 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
441ff4bba8 Bug 984195 - Remove MochiKit.js includes in the canvas tests; r=jrmuizel 2014-03-24 11:31:05 -04:00