Commit Graph

2368 Commits

Author SHA1 Message Date
Dan Glastonbury
abe7a046bc Bug 990851 - Fix TexSubImage with cubemap face failure. r=jgilbert 2014-04-22 14:09:33 +10:00
Jeff Gilbert
caa818abf9 Bug 996282 - Cleanup getParameter. - r=kamidphish 2014-04-16 14:36:53 -07:00
Jeff Gilbert
8b35684cba Bug 996269 - Lazily clear the WebGL backbuffer. - r=kamidphish 2014-04-17 13:15:41 -07:00
Jonathan Watt
f6274fcf70 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
c1ae41ee74 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
3e13bbf252 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
dcf31b7da4 Bug 997014 - Part 4: Remove the external canvas API. r=roc 2014-04-17 17:31:12 +12:00
Matt Woodrow
d817c835cb 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
03f8f93835 Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Carsten "Tomcat" Book
4686dd905a 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
672c8c479e Backed out changeset 20b75bf44c1e (bug 997014) 2014-04-17 08:43:43 +02:00
Carsten "Tomcat" Book
2b04bd5c8a Backed out changeset 29ed3c34af5e (bug 997014) 2014-04-17 08:43:40 +02:00
Carsten "Tomcat" Book
710a34c84c Backed out changeset 8681fc7a918b (bug 997014) 2014-04-17 08:43:38 +02:00
Carsten "Tomcat" Book
f86de035db Backed out changeset 6ba917df6b41 (bug 997014) 2014-04-17 08:43:35 +02:00
Matt Woodrow
871bc4e40f 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
38567cd2f2 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
ddc74478fa Bug 997014 - Part 4: Remove the external canvas API. r=roc 2014-04-17 17:31:12 +12:00
Matt Woodrow
aed9928e36 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
ba19a5ad4c Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Dan Glastonbury
7d0f27b9fe 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
0a0470e24e 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
cc8d53fe4d Bug 980891 - #ifdef out usage of Skia objects on non-skia builds. r=gal 2014-04-15 21:07:42 +02:00
Jeff Gilbert
9a24291eb6 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
b237f36aa4 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
c19320644f 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
fcf06897d6 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
b3e2047b6a 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
4227c5c53e 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
72845cb9a4 Bug 994793. Make the array bits of ToJSValue nicer. r=bholley 2014-04-10 14:57:42 -04:00
Boris Zbarsky
5fa570b94c 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
e233bf14f8 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
a0c3167371 Bug 991742 part 9. Remove the "scope" argument of WrapNewBindingObject. r=bholley 2014-04-08 18:27:19 -04:00
Boris Zbarsky
35fca5eeeb 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
56f44fdf10 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
652ce79f6e 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
5b2f8f3ee9 Backout e401dfeab8b7 (bug 991572) for crashtest assertion. r=orange 2014-04-04 10:03:41 +01:00
Jonathan Watt
58d370ca0b 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
abcd03dc1e Bug 989575 - Generate INVALID_OP for null-program draws. - r=kamidphish 2014-04-01 23:12:43 -07:00
Jeff Gilbert
c19a210835 Bug 989575 - Add test for null program draws. - r=kamidphish 2014-04-01 23:12:42 -07:00
Jeff Gilbert
257cc22574 Bug 985685 - Test that basic DrawArrays/Elements works. - r=kamidphish 2014-04-01 23:12:40 -07:00
Matt Woodrow
f888e0a10d Bug 990510 - Change reftest annotation ordering to be correct. 2014-04-01 21:40:15 +08:00
Matt Woodrow
8d04641cc2 Bug 990510 - Disable failing webgl tests because of sadness. rs=jgilbert 2014-04-01 17:47:13 +08:00
Rik Cabanier
0818ce4ca4 Bug 988088 - Cache path objects in Path2D implementation. r=bas 2014-03-31 08:55:00 +02:00
Jonathan Watt
6d7a9c9df9 Bug 988793 - Make DocumentRendererChild::RenderDocument use Moz2D. r=mattwoodrow 2014-03-31 12:52:33 +01:00
Benoit Jacob
89317548d7 Bug 987828 - 3/4 - Use IsGLES instead of IsGLES2 - r=jgilbert 2014-03-31 05:10:49 -04:00
Benoit Jacob
13ef4830a3 Bug 987828 - 2/4 - Optimize WebGL attrib0 stuff - r=jgilbert 2014-03-31 05:10:49 -04:00
Benoit Jacob
cf277719ab Bug 987828 - 1/4 - Move stuff to a new WebGLContextDraw.cpp file - r=jgilbert 2014-03-31 05:10:49 -04:00
Ben Kelly
e724a6ff36 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
9f11aa16d4 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
f81e59b0ae Bug 984195 - Remove MochiKit.js includes in the canvas tests; r=jrmuizel 2014-03-24 11:31:05 -04:00