Commit Graph

688 Commits

Author SHA1 Message Date
Nicholas Nethercote
0f5722f4da Bug 1211324 (part 5) - Remove GraphicsFilter and gfxGraphicsFilter. r=mattwoodrow. 2015-10-05 17:18:10 -07:00
Nicholas Nethercote
4fc2610c3c Bug 1211324 (part 4) - Replace GraphicsFilter constants with gfx::Filter equivalents. r=mattwoodrow.
The conversion is as follows:

- GraphicsFilter::FILTER_NEAREST == gfx::Filter::POINT
- GraphicsFilter::FILTER_GOOD    == gfx::Filter::GOOD
- GraphicsFilter::FILTER_BEST    == gfx::Filter::LINEAR

Also typedef GraphicsFilter to gfx::Filter; this will be removed in the next
patch.

These changes mean ToFilter() and ThebesFilter() are no longer needed.
2015-10-05 17:12:46 -07:00
jdashg
7d1bbd8f2d Bug 1188010 - Use MOZ_RELEASE_ASSERT. r=dglastonbury
Use MOZ_RELEASE_ASSERT when failure means overflows.
From b9fe1e06f63a785f309e1ce7e5053cb57e21e634 Mon Sep 17 00:00:00 2001
---
 dom/canvas/WebGLTexture.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--HG--
extra : rebase_source : 81b89bbd224d6f77f62c5fa5f2ac8b14a8373128
2015-07-29 14:37:54 -07:00
Wes Kocher
c1750b75c7 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
167e962979 Bug 709490 - Part 11: Diabled test_offscreencanvas_many.html on gonk, android, windows and linux. r=jgilbert
--HG--
extra : rebase_source : d6be9dc85ffee9cda6b57735bd8892ca427aa5d7
2015-10-05 10:50:17 +08:00
Morris Tseng
f5a52e7dea Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref. r=baku
--HG--
extra : rebase_source : 07b470b9a8865b7d833932c5425e796b852ab466
2015-10-05 10:50:17 +08:00
Morris Tseng
861bb61b91 Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer. r=roc
--HG--
extra : rebase_source : bfdf6a97f372a3a5a2ecdd4a3c216ec64ec98e84
2015-10-05 10:50:16 +08:00
Morris Tseng
6b999f3d6f Bug 709490 - Part 4: Mochitests for offscreencanvas. r=baku, r=jgilbert
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 08ff521b2ada4eb7f28ad1f5a2557b6d2ea670cb
2015-10-05 10:50:16 +08:00
Morris Tseng
2d11e76151 Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers. r=nical, r=jgilbert, r=jrmuizel, sr=ehsan
Thanks Jon Morton [:jmorton] (jonanin@gmail.com) for polishing patches.

--HG--
extra : rebase_source : 16b8b4eaa5f4c649c02cbae6425e895134d4ae41
2015-10-05 10:50:16 +08:00
Tooru Fujisawa
c8e5588008 Bug 1207494 - Part 4: Remove use of expression closure from dom/canvas/. r=gw280
--HG--
extra : commitid : AV7ENw6thCF
extra : rebase_source : 268370aa377bc398f0ca51aada382ad451df34aa
2015-09-23 18:39:13 +09:00
Milan Sreckovic
d781f5c2bd Bug 1205900 - Compare context and canvas element sizes before extracting the data. r=gwright 2015-10-02 09:18:26 +02:00
Nicholas Nethercote
7b70ebccdf Bug 1209206 (part 1) - Remove mgfx namespace synonym.
CanvasRenderingContext2D.cpp has a |namespace mgfx = mozilla::gfx;| synonym.
Since the entire file is within the |mozilla| namespace we can use |gfx::Foo|
anyway, which is shorter than |mgfx::Foo|.

--HG--
extra : rebase_source : abd76713f1741b1b4f078e21d89a0708b7bd65fb
2015-09-28 12:37:18 -07:00
Bas Schouten
1369a96bd4 Bug 1208465 - Part 1: Fix some reftest annotations. r=jrmuizel 2015-10-01 04:45:26 +02:00
Wes Kocher
8631de9c2b 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
6912bd6a09 Bug 709490 - Part 11: Diabled test_offscreencanvas_many.html on gonk, android, windows and linux, r=jgilbert 2015-09-29 11:51:26 +01:00
Morris Tseng
d99c93a009 Bug 709490 - Part 10: Using mechanism in RuntimeService to get pref in worker thread instead of gfxPref, r=baku 2015-09-29 11:51:25 +01:00
Morris Tseng
c5927f2dae Bug 709490 - Part 7: If layer is not available, fallback to BasicCanvasLayer, r=roc 2015-09-29 11:51:25 +01:00
Morris Tseng
90b7efb407 Bug 709490 - Part 4: Mochitests for offscreencanvas, r=baku, r=jgilbert 2015-09-29 11:51:24 +01:00
Morris Tseng
1d4157900a Bug 709490 - Part 2: Introduce OffscreenCanvas and let WebGL context work on workers., r=ehsan, r=jgilbert, r=nical 2015-09-29 11:51:24 +01:00
Kathy Brade
61c6a3b383 Bug 232227 - Do not expose system colors to CSS or canvas. r=jmuizelaar r=enndeakin tor-r=arthuredelstein
--HG--
extra : rebase_source : 54498135a11fb7d7e9f4154ad5d5bfbf87a927bd
2015-09-25 00:59:00 +02:00
Nicholas Nethercote
842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Jeff Gilbert
187dfafc29 Bug 1191042 - Use CreateOffscreen for WebGL instead of CreateHeadless. - r=jrmuizel 2015-09-24 12:21:05 -07:00
Matt Woodrow
469ca70375 Bug 1206161 - Make sure the DrawTarget is available when creating a CanvasLayer so that we can check for SkiaGL. r=Bas
--HG--
extra : rebase_source : 2d011ee3dbceecfa11a27fc1e1a65d7ec5080f85
2015-09-23 20:30:06 -04:00
Matt Woodrow
2597afb776 Bug 1150944 - Fuzz some reftests with SkiaGL. r=jrmuizel
--HG--
extra : rebase_source : 79e398d4c78f02d14582e1662e312c6c2cece40f
2015-09-23 20:28:23 -04:00
Phil Ringnalda
449e9119b4 Back out f84aedf7a62d (bug 1191042) for b2g emulator test failures
CLOSED TREE
2015-09-22 19:26:13 -07:00
Jeff Gilbert
8d443901df Bug 1191042 - Use CreateOffscreen for WebGL instead of CreateHeadless. - r=jrmuizel 2015-09-22 16:49:25 -07:00
Jeff Gilbert
0b43ed5707 Bug 1206907 - GenerateWarning should output to Web Console, not Browser Console. - r=bholley 2015-09-22 15:51:01 -07:00
Jeff Gilbert
8e1b61b7aa Bug 1192989 - Simplify handling by ifdefing in all.js. - r=kamidphish 2015-08-10 14:57:15 -07:00
Bas Schouten
74e595efb1 Bug 1206076: Use a specialized PersistentBufferProvider for Canvas2D when using a SkiaGL DrawTarget. r=jrmuizel 2015-09-21 00:30:59 +02:00
Andreas Pehrson
f0d1337fdc Bug 1177276 - Pref on canvas.captureStream by default. r=smaug,mt
--HG--
extra : commitid : 8EBhXM9AkEM
extra : rebase_source : 6f6171474350a20096db822e3524c6b2bbe20023
2015-09-17 22:09:24 +08:00
Andreas Pehrson
461b9f6576 Bug 1161913 - Part 3 - Relax requestFrame ordering guarantee in tests. r=mt
We used to fully guarantee the order of requestFrame() and draw calls.
For instance:
```
ctx.draw(red);
stream.requestFrame();
ctx.draw(green);
```
would guarantee that a red frame ended up in the stream, and not the
green unless another frame was requested.

Now with frames being requested and pushed out on next refresh, we can
only guarantee that everything up to the requestFrame() call is included
in the next frame. Everything after the requestFrame() and before the
next refresh (stable state in most cases) will now also be inevitably
included.

--HG--
extra : transplant_source : %DF%A1%9C%A8%2B%3AzTS%EA%CE%0A%023%E2%EBWC%FD%3C
2015-09-17 11:37:05 +08:00
Andreas Pehrson
37ac1b6da7 Bug 1161913 - Part 1 - Add invalidation state for CaptureStream to Canvas and Contexts. r=mt
--HG--
extra : transplant_source : %C0%AFU%9CA%E9b%28%11%E0%EF%A6%81%9EZF9%5D%F3j
2015-09-17 11:37:05 +08:00
Nicholas Nethercote
6f036921dc Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)

--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Lee Salzman
d48f153499 Bug 655328 - remove obsolete canvas test test_2d.drawImage.outsidesource since out of bounds rects no longer throw IndexSizeError. r=jmuizelaar
--HG--
extra : rebase_source : 143dfe39b98f1f625d52e695d291189ac3ae762d
2015-09-11 10:13:23 -04:00
Lee Salzman
63f92dc6fe Bug 655328 - clip canvas drawImage source/dest rectangles instead of throwing IndexSizeError. r=jmuizelaar
--HG--
extra : rebase_source : acd776f44bffd060954a8b8a9a3317050a8a52de
2015-09-11 11:14:32 -04:00
Lee Salzman
71f11d170c Bug 1074733 - Part 4 - fix test_canvas.html tests with negative rects to no longer expect failure. r=jmuizelaar
--HG--
extra : rebase_source : 45ca0f5ae9a580a52029f963b508e709ce6f72ba
2015-09-10 14:10:59 -04:00
Lee Salzman
292611bac3 Bug 1074733 - Part 1 - Normalize Canvas 2D rects to be positive by flipping negative width or height. r=jmuizelaar
--HG--
extra : rebase_source : 233b379f66a679f8af89b4d6d6de09e3f5b19381
2015-09-11 11:29:17 -04:00
John Daggett
06366cd453 Bug 1203809 - pass textperf obj into gfxFontGroup constructor. r=m_kato
--HG--
extra : rebase_source : c9e9f4765b710937b046941a15e82eaf83c86b03
2015-09-11 13:24:33 +09:00
Phil Ringnalda
ae95aea501 Back out 71886d218c12 (bug 1200864) for Win8 mochitest-gl failures
CLOSED TREE
2015-09-02 20:35:45 -07:00
Jeff Gilbert
f2508b4907 Bug 1200864 - Skip DrawElements buffer validation when we have robust_buffer_access. - r=kamidphish 2015-09-02 14:06:58 -07:00
Geoff Brown
fbfe19ec95 Bug 1201075 - Increase timeout for webgl-color-test; r=jgilbert 2015-09-02 14:20:02 -06:00
Bas Schouten
7441c8825d Bug 1192159: Do not forget about the transform when not using an active target. r=jrmuizel 2015-09-02 12:20:59 +00:00
Ehsan Akhgari
0a90c052e6 Bug 1200492 - Do not add the top source directory to the include path in dom/canvas; r=gps
Otherwise, putting a file named a system header there
will get it included.
2015-09-01 19:48:31 -04:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Liam Middlebrook
8bd3711ef1 Bug 1178893 - Made state/gl-enum-tests Conformant. r=kamidphish
GL_NUM_COMPRESSED_TEXTURE_FORMATS isn't a valid enum for gl.getParameter so
instead of setting a GL_NO_ERROR it should set a GL_INVALID_ENUM.
2015-08-26 15:35:43 -04:00
Andrew Comminos
c3cdfadf07 Revert "Bug 1191042 - Establish correct EGLConfig at GLContext creation. r=jrmuizel" CLOSED TREE
This reverts commit 99120014586d20a2921b9157e5ec81b3605cd8bd.
2015-08-27 17:12:06 -04:00
Jeff Gilbert
7c5b24dcc5 Bug 1191042 - Establish correct EGLConfig at GLContext creation. r=jrmuizel 2015-08-27 16:55:45 -04:00
Andrea Marchesini
fdbfd864e7 Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 17:19:13 +01:00
Nigel Babu
d5f46aaf6c Backed out a19daae11647 (Bug 1186307) for W8 and W4 bustage on CLOSED TREE 2015-08-27 15:04:25 +05:30
Andrea Marchesini
b68734b7da Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 09:06:09 +01:00