Commit Graph

2221 Commits

Author SHA1 Message Date
Ehsan Akhgari
f1e576aab3 Bug 969870 - Use fallible allocations to store the used attributes of a WebGL program; r=bjacob
It seems like the sizes for these data structures can be controlled from
Web content, and we are already prepared to deal with OOM conditions,
except that we are using infallible allocations by mistake.
2014-02-09 18:16:38 -05:00
Ehsan Akhgari
4c364fa6ec Bug 969869 - Use fallible allocation in WebGL element array cache; r=bjacob
It seems like the sizes for these data structures can be controlled from
Web content, and we are already prepared to deal with OOM conditions,
except that we are using infallible allocations by mistake.
2014-02-09 18:16:03 -05:00
Ms2ger
b995cb3325 Bug 952033 - Part b: Use IntSize in CreateOffscreenSurface; r=roc 2014-02-09 09:04:38 +01:00
Phil Ringnalda
b8a00a6ff5 Back out 4 changesets (bug 777574) because it's the slaves, not the tests
Backed out changeset ce3f48acc244 (bug 777574)
Backed out changeset f3c918a0e91c (bug 777574)
Backed out changeset fd79a8abbbf8 (bug 777574)
Backed out changeset 371e42c987d6 (bug 777574)

--HG--
extra : rebase_source : 04c61c132e85f366088d2318f282acd63b5faa0e
2014-02-07 19:04:02 -08:00
Ryan VanderMeulen
7712bd0f3e Backed out changeset 8d885b139d7d (bug 912280) for bustage. 2014-02-07 10:38:27 -05:00
Jeff Gilbert
2969da41bc Bug 912280 - Implement OES_texture_half_float_linear for WebGL. r=kamidphish 2014-02-07 10:21:49 -05:00
Phil Ringnalda
bbda68683b Bug 777574 - Skip quickCheckAPI-C.html on Linux Mesa since it fails on ASan tests all the time 2014-02-03 17:04:53 -08:00
Phil Ringnalda
d1893ca9ac Bug 777574 - Skip quickCheckAPI-B4.html on Linux Mesa since it fails on ASan tests all the time 2014-02-02 21:19:46 -08:00
Phil Ringnalda
b19f3b9c4d Bug 777574 - Skip quickCheckAPI-B3.html on Linux Mesa since it fails on ASan tests all the time 2014-02-02 18:39:18 -08:00
Phil Ringnalda
ec11ed2164 Bug 777574 - Skip quickCheckAPI-B2.html on Linux Mesa since it fails on ASan tests all the time
--HG--
extra : rebase_source : 4e4304169755fe6fa28457c3b330e173296b6393
2014-02-02 11:43:55 -08:00
Vladimir Vukicevic
da5ce4a38a b=738872; implement WebGL OES_texture_half_float; part 3 - desktop GL compat; r=jgilbert 2014-01-27 13:30:33 -05:00
Vladimir Vukicevic
63cb3e650f b=738872, implement WebGL OES_texture_half_float; part 2 - core impl; r=jgilbert 2014-01-23 16:47:37 -05:00
Dan Glastonbury
b098c3e967 Bug 953221 - Split out DRAW_BUFFER/READ_BUFFER state setup. r=bjacob 2014-01-24 14:02:07 +10:00
Dan Glastonbury
ba8d11d8f9 Bug 953221 - Disable glDrawBuffer/glReadBuffer when no color attachment. r=bjacob
This is mainly for OSX where the OGL version requires this so that the
framebuffer complete checks pass.
2014-01-24 14:01:10 +10:00
Dan Glastonbury
4086562d80 Bug 953221 - Minor erroneous complete check fails. r=bjacob 2014-01-24 13:59:33 +10:00
Dan Glastonbury
3f1115ce41 Bug 948002 - Add extra comments of meaning of GLenum to IsValidFBOXXX calls. r=jgilbert 2014-01-24 16:28:47 +10:00
Dan Glastonbury
9e7275ca42 Bug 948002 - Fix WebGL framebuffer completeness checks. r=bjacob
When changing WebGLTexture::ImageInfo to consistently store GL internal format
instead of format, code that checked for depth textures broke because general
depth component format type was being checked instead of the sized formats.

With :bjacob, we audited the locations of the checks and updated the code to
accept the internal formats by utilizing helper functions that check the
GLenum.
2014-01-24 13:53:53 +10:00
Dan Glastonbury
78c24fc871 Bug 948002 - Remove trailing whitespace. r=jgilbert 2014-01-24 13:52:33 +10:00
Dan Glastonbury
c913854ce2 Bug 948002 - Add functions getExtensionWithKnownPrefixes and getSupportedExtensionWithKnownPrefixes to fix tests that fail to parse. r=bjacob, r=jgilbert 2014-01-10 12:23:56 +10:00
Masatoshi Kimura
806a1ed8bb Bug 959958 - Implement ImageData constructor. r=bz 2014-01-28 22:04:40 +09:00
Dan Glastonbury
f80e7bac82 Bug 913597 - Remove support for obsolete 'moz-webgl' name for creation of WebGL contexts. r=jgilbert 2014-01-28 05:59:24 +09:00
Benoit Jacob
28ff3ad25f Bug 959380 - 4/5 - Make gfxContentType a typed enum - r=jrmuizel
find . -type f | grep -v '\./obj' | grep -v '\.hg' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)GFX_CONTENT_\(COLOR\|ALPHA\|COLOR_ALPHA\|SENTINEL\)\($\|[^A-Za-z0-9_]\)/\1gfxContentType::\2\3/g'
2014-01-23 13:26:40 -05:00
Benoit Jacob
981c6431d3 Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Boris Zbarsky
6d43e0116e Bug 958576 part 1. Create a binding_detail namespace and move AutoSequence to it. r=peterv
Note that we can't name this namespace "detail", because then we'd
have both ::mozilla::detail and ::mozilla::dom::detail namespaces in
the tree and various template name lookups that look for "detail::Foo"
would get confused, and the code would not compile.  C++ strikes
again.
2014-01-22 14:37:10 -05:00
Jeff Gilbert
f8ef9a2fc3 Bug 962392 - Clean up WebGLFramebuffer, particularly handling of RectangleObjects. - r=dglastonbury 2014-01-22 19:59:34 -08:00
Jeff Gilbert
6f66fd7621 Bug 962392 - Whitespace fixes. - r=dglastonbury 2014-01-22 19:59:33 -08:00
Wes Kocher
6ceffa63c0 Backed out 2 changesets (bug 958576) for osx 10.8 m-oth bustage on a CLOSED TREE
Backed out changeset 2ec09c9a9df1 (bug 958576)
Backed out changeset 49bec226f30e (bug 958576)
2014-01-22 16:17:25 -08:00
Boris Zbarsky
9f27c4fd14 Bug 958576 part 1. Create a binding_detail namespace and move AutoSequence to it. r=peterv
Note that we can't name this namespace "detail", because then we'd
have both ::mozilla::detail and ::mozilla::dom::detail namespaces in
the tree and various template name lookups that look for "detail::Foo"
would get confused, and the code would not compile.  C++ strikes
again.
2014-01-22 14:37:10 -05:00
Ryan VanderMeulen
d1deda9bb5 Backed out changeset 07e5bf2cb7c8 (bug 913597) for desktop B2G failures.
CLOSED TREE
2014-01-22 12:48:44 -05:00
Dan Glastonbury
b1ebdd4f6a Bug 939117 - Don't reference NULL ptr. r=jgilbert 2014-01-20 14:13:23 +10:00
Dan Glastonbury
26eb4494f0 Bug 913597 - Remove support for obsolete 'moz-webgl' name for creation of WebGL contexts. r=jgilbert 2014-01-23 00:44:16 +09:00
Rik Cabanier
f0b8114e7c Bug 960195 - Put drawSystemFocusRing behind a new runtime flag. r=roc 2014-01-16 08:27:03 -05:00
Rik Cabanier
55f07ac63c Bug 959820 - Rename drawSystemFocusRing to drawFocusIfNeeded. r=roc
--HG--
rename : content/canvas/test/reftest/drawSystemFocusRing-ref.html => content/canvas/test/reftest/drawFocusIfNeeded-ref.html
rename : content/canvas/test/reftest/drawSystemFocusRing.html => content/canvas/test/reftest/drawFocusIfNeeded.html
2014-01-15 09:50:31 -05:00
David Zbarsky
f528a10bbe Bug 952977: Remove DocumentRendererShmem and DocumentRendererNativeID r=nical 2014-01-15 09:26:51 -05:00
James Kolb
e2d10c7177 Bug 603488 part 2: Draw vector images using imgIContainer::Draw() r=roc
--HG--
extra : rebase_source : 008db87e0322b9e7fa15e21b2b3e51b368225e58
2014-01-13 13:29:48 +13:00
Guillaume Abadie
817571e666 bug 958491 - Fixes bug in WebGLContext::GetFramebufferAttachmentParameter(gl.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING) when sRGB extension is not enabled - r=jgilbert 2014-01-10 22:42:09 +01:00
Benoit Jacob
873406e3f0 Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Benoit Jacob
535a216635 Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
Specifically:
  r=Bas for manual changes
  f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Benoit Jacob
d1458b6337 Bug 958369 - 5/5 - Make ContextType a typed enum - r=jgilbert 2014-01-10 13:55:24 -05:00
Benoit Jacob
0061fc3d55 Bug 958369 - 4/5 - remove the ContextFlags enum - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
3e8029331c Bug 958369 - 2/5 - Make GLVendor and GLRenderer typed enums - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
c15d7a8ebe Bug 958369 - 1/5 - Make GLFeature a typed enum - r=jgilbert 2014-01-10 13:55:23 -05:00
Benoit Jacob
685a9f25c6 Bug 958368 - Remove the code paths to load a custom Mesa/llvmpipe build instead of system OpenGL (sadface) - r=jgilbert 2014-01-10 13:55:23 -05:00
Rik Cabanier
b01c72c2c5 Bug 958232 - Remove incorrect use of setRect in drawCustomFocusRing. r=roc 2014-01-10 08:48:56 -05:00
Jeff Gilbert
bef4e5a4a1 Bug 933009 - Warn when drawing to a destination smaller than the viewport. r=bjacob 2014-01-10 08:41:04 -05:00
Jeff Gilbert
5a24d9af80 Bug 942951 - Add missing GL_RGB32F and GL_RBGA32F formats to WebGLContext::GetBitsPerTexel. r=bjacob 2014-01-10 08:08:37 -05:00
Ryan VanderMeulen
813dd1df24 Bug 777574 - Skip quickCheckAPI-B2.html on Linux. r=bjacob 2014-01-06 15:24:25 -05:00
Ehsan Akhgari
ac73237d97 Merge m-c into inbound 2014-01-04 12:14:57 -05:00
Ehsan Akhgari
eaa7491d77 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
4a3d19468d Bug 940811 - Enable the gradient cache for canvas. r=Bas 2013-11-20 16:50:46 +13:00