Commit Graph

430 Commits

Author SHA1 Message Date
Matt Woodrow
ba19a5ad4c Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12: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
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
Benoit Jacob
13ef4830a3 Bug 987828 - 2/4 - Optimize WebGL attrib0 stuff - r=jgilbert 2014-03-31 05:10:49 -04:00
Jeff Gilbert
c0214eb332 Bug 982960 - Use glDrawRangeElements in WebGL.drawElements. r=kamidphish 2014-03-17 10:52:56 -04:00
Rik Cabanier
fc29621ea7 Bug 982480 - Add support + test case for context alpha attribute. r=roc 2014-03-16 15:34:14 -04:00
Ryan VanderMeulen
04a55e8668 Backed out changeset 9a2aab98a8d0 (bug 982480) for reftest failures. 2014-03-15 19:18:13 -04:00
Rik Cabanier
72854581eb Bug 982480 - Add support + test case for context alpha attribute. r=roc 2014-03-15 17:29:24 -04:00
Jeff Gilbert
91352f644c Bug 943190 - Implement WEBGL_compressed_texture_et1. - r=kamidphish 2014-03-10 15:42:58 -07:00
Jeff Gilbert
bdd584a1f9 Bug 843666 - Implement color-buffer-(half-)float for WebGL. - r=kamidphish 2014-03-07 13:26:17 -08:00
Jeff Gilbert
174f9afdda Bug 978418 - Split GetError flags for WebGL. - r=kamidphish 2014-03-07 13:16:34 -08:00
Jeff Gilbert
776480c934 Bug 978422 - ReattachTextureToAnyFramebufferToWorkAroundBugs no longer needed. - r=bjacob 2014-03-03 18:50:45 -08:00
Dan Glastonbury
8a1cf924df Bug 966624 - Refactor Tex Image checks. r=jgilbert 2014-02-20 20:20:28 -05:00
Jeff Gilbert
4507e98ad6 Bug 823454 - Implement EXT_frag_depth for WebGL. - r=kamidphish 2014-02-13 15:00:12 -08:00
Jeff Gilbert
f293d9048e Bug 912280 - Implement OES_texture_half_float_linear for WebGL. r=kamidphish 2014-02-13 09:53:53 -05:00
Jeff Gilbert
57f9c5bee8 Bug 968374 - Implement WEBGL_debug_shaders. r=bjacob 2014-02-11 17:37:06 -05:00
Ryan VanderMeulen
15a84a312d Backed out changeset 8d885b139d7d (bug 912280) for bustage. 2014-02-07 10:38:27 -05:00
Jeff Gilbert
40f251b54b Bug 912280 - Implement OES_texture_half_float_linear for WebGL. r=kamidphish 2014-02-07 10:21:49 -05:00
Vladimir Vukicevic
a988bc2a34 b=738872, implement WebGL OES_texture_half_float; part 2 - core impl; r=jgilbert 2014-01-23 16:47:37 -05:00
Jeff Gilbert
fa8ee47d0f Bug 962392 - Clean up WebGLFramebuffer, particularly handling of RectangleObjects. - r=dglastonbury 2014-01-22 19:59:34 -08:00
Jeff Gilbert
8a8208c468 Bug 962392 - Whitespace fixes. - r=dglastonbury 2014-01-22 19:59:33 -08:00
Jeff Gilbert
8b8af90e99 Bug 933009 - Warn when drawing to a destination smaller than the viewport. r=bjacob 2014-01-10 08:41:04 -05:00
Ehsan Akhgari
ebd358dfd7 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Matt Woodrow
533d84ea6d Bug 948221 - Part 7: Convert SurfaceFromElement to Moz2D. r=roc,Bas,bjacob 2013-12-12 10:05:27 +13:00
Nicholas Nethercote
75e9a9bbf9 Bug 936964 (part 6, attempt 2) - Rename WebGLMemoryReporterWrapper as WebGLMemoryTracker. r=bjacob.
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryTracker.h
extra : rebase_source : a1acb54039e2273319d91cf705fb2a0b3eaa068c
2013-11-25 16:03:38 -08:00
Ehsan Akhgari
c3970a73fb Backed out 9 changesets (bug 943660, bug 936964) because of ASAN use-after-free crashes on browser-chrome and mochitest-other
Backed out changeset 85486c4aa3d8 (bug 936964)
Backed out changeset 25312eb71998 (bug 936964)
Backed out changeset 6dbb8333960c (bug 936964)
Backed out changeset da6465ad476f (bug 936964)
Backed out changeset a87ffc992f38 (bug 936964)
Backed out changeset 4ae3a61182db (bug 936964)
Backed out changeset 34e9c3137804 (bug 936964)
Backed out changeset fd1459e71585 (bug 936964)
Backed out changeset 3e8a701d8bdc (bug 943660)

Landed on a CLOSED TREE

--HG--
rename : content/canvas/src/WebGLMemoryTracker.h => content/canvas/src/WebGLMemoryReporterWrapper.h
2013-11-27 20:05:00 -05:00
Nicholas Nethercote
e5485e4832 Bug 936964 (part 6) - Rename WebGLMemoryReporterWrapper as WebGLMemoryTracker. r=bjacob.
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryTracker.h
extra : rebase_source : 7a215cf3dbcf0b78f8ab823828360dd0cfba26d3
2013-11-25 16:03:38 -08:00
Benoit Jacob
408ab9b951 Bug 924600 - WebGL.getUniform should not throw - r=jgilbert 2013-11-23 21:20:48 -05:00
Benoit Jacob
bc4b90e06f Bug 935303 - WebGL.texImage2D should not throw when passed a not-yet-loaded image - r=jgilbert 2013-11-23 21:20:48 -05:00
Dan Glastonbury
607685cff8 Bug 843668 - Implement WebGL -draft- extension EXT_sRGB. r=jgilbert
https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/
See content/canvas/test/webgl/conformance/extensions/ext-sRGB.html for example
usage.

OSX 10.6 has a failure when reading back the results from an sRGB format
texture attached to an FBO. Blacklist MacOSX 10.6 and all lower versions.
2013-11-04 16:05:04 -05:00
Ehsan Akhgari
19c3c317bc Bug 928900 - Reduce some content/ #includes; r=jst
--HG--
extra : rebase_source : d2932ff888affe7e1e7a10233dfacac6fb9f07a7
2013-10-21 17:23:33 -04:00
Stephen Pohl
58f93a680b Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-10-16 22:55:08 -04:00
Ed Morley
d2181e5021 Backed out changeset f8e64e91e443 (bug 843668) for webgl test failures 2013-10-16 15:18:20 +01:00
Dan Glastonbury
5fef90e0a1 Bug 843668 - Implement WebGL -draft- extension EXT_sRGB. r=jgilbert
https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/
See content/canvas/test/webgl/conformance/extensions/ext-sRGB.html for example
usage.
2013-10-16 08:27:59 -04:00
Benoit Jacob
4737a2f39a Bug 924191 - Use MOZ_BEGIN_ENUM_CLASS for the WebGLTexelFormat enum - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
0af3a472b6 Bug 924189 - Use MOZ_BEGIN_ENUM_CLASS for the WebGL VertexAttrib0 enum - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
4f7ecb11e8 Bug 922810 - Part 6: Clean up and optimize fake black textures implementation - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
96fd1f039f Bug 922810 - Part 3: introduce transparent fake black textures alongside existing opaque ones - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
583a85a3d0 Bug 922810 - Part 2: reorganize the tracking of fake back statuses - r=jgilbert 2013-10-11 09:16:43 -04:00
Boris Zbarsky
48ef79b3bb Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey 2013-10-09 12:05:22 -04:00
Ed Morley
2c635d5d0c Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures 2013-10-09 17:48:13 +01:00
Boris Zbarsky
cf8ba5ee47 Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey 2013-10-09 12:05:22 -04:00
Ryan VanderMeulen
7f5276fcb1 Backed out changesets 5fa68d64f749, 103b40656e24, b1ff3efb43cf, 096455736704, and 4afd6fa3da19 (bug 817700) for mochitest-1 failures.
CLOSED TREE
2013-10-08 15:00:17 -04:00
Stephen Pohl
778109106b Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-10-08 13:27:29 -04:00
Ehsan Akhgari
6c364e9615 Bug 921753 - Part 2: Move GraphicsFilters outside of gfxPattern.h so that we won't need to #include that header everywhere GraphicsFilter is needed; r=roc
This patch reduces the number of files that transitively #include
gfx/2d.h from 1582 to 1362.
2013-10-01 17:01:19 -04:00
Milan Sreckovic
1dc55c080a Bug 916322 - Add UnsetAttr to HTMLCanvasElement to catch the removal of attributes and keep the context it owns of matching size. r=khuey, r=jmuizelaar
The test is debug only, asserting without this fix.
2013-09-30 17:02:40 -04:00
Ehsan Akhgari
0a3a2ee94a Bug 921876 - Stop #including nsIFrame.h in nsLayoutUtils.h; r=roc
This patch does the following:
* Move nsIFrame::IntrinsicSize to mozilla::IntrinsicSize so that it can
  be forward-declared.
* Move a number of templated inline nsLayoutUtils methods to nsIFrame.
* Use mozilla::layout::FrameChildListID instead of the
  nsIFrame::ChildListID typedef in nsLayoutUtils.h.
* Move nsReflowFrameRunnable to its only user, nsProgressMeterFrame.cpp.
* Make a number of functions requiring nsIFrame.h out-of-line.
* Remove the nsIFrame.h #include from nsLayoutUtils.h and add it to the
  places which require it implicitly.
2013-09-30 17:26:04 -04:00
Jeff Gilbert
c97feedb8c Bug 911394 - Allow non-instanced drawing with no zero divisor attrib. - r=bjacob 2013-09-19 15:30:19 -07:00
Stephen Pohl
5a04a52cb9 Backout bug 817700 for causing various regressions. r=me 2013-09-13 14:14:36 -04:00
Stephen Pohl
dbecfcc4e2 Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-09-12 17:04:10 -04:00