Commit Graph

369 Commits

Author SHA1 Message Date
guozhu cheng
7cde7c73c3 Bug 927969 - Disable extensions when the WebGL context is lost. r=bjacob 2013-11-05 17:35:50 +08:00
Dan Glastonbury
4086562d80 Bug 953221 - Minor erroneous complete check fails. r=bjacob 2014-01-24 13:59:33 +10: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
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
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
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
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
Benoit Jacob
47e5f6dc26 Bug 949819 - Move remaining ReadPixels and GetTexImage helpers out of GLContext - r=jgilbert 2014-01-02 10:17:29 -05:00
Benoit Jacob
9a53357c9c Bug 877115 - some compilation fixes - no review, trivial build fix 2014-01-01 14:47:19 -05:00
Trevor Saunders
c2b2fcd3d4 bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
Dan Glastonbury
3fd4360014 Bug 942492 - Move ScopedGL* RAII helpers out of GLContext.* - r=bjacob 2013-11-26 13:25:25 +10:00
Nicholas Nethercote
c1d4029597 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
6220f98ec6 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
0b49067039 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
20940c8f1f Bug 938411 - Check for lost context in PresentScreenBuffer - r=jgilbert 2013-11-23 21:21:45 -05:00
Nathan Froyd
4b14bb683e Bug 938702 - check for a valid encoding before creating an input stream in canvas code; r=smaug 2013-11-20 19:55:53 -05:00
Nathan Froyd
c63b55e8d9 Bug 938612 - ensure the image buffers for canvases are freed; r=smaug
Landing this on a CLOSED TREE
2013-11-14 11:15:48 -05:00
Jeff Gilbert
f22901a7a1 Bug 924241 - Don't force-present after post-resize clear. r=bjacob 2013-10-31 09:52:24 -04:00
Stephen Pohl
a1933d949e Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-10-16 22:55:08 -04:00
Milan Sreckovic
4809fa2bff Bug 924573 - Deal with canvas 0 width and height more consistently. r=bas 2013-10-09 17:22:11 -04:00
Benoit Jacob
2998967184 Bug 924189 - Use MOZ_BEGIN_ENUM_CLASS for the WebGL VertexAttrib0 enum - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
f381117c01 Bug 922810 - Part 6: Clean up and optimize fake black textures implementation - r=jgilbert 2013-10-11 09:16:43 -04:00
Benoit Jacob
0ada058e54 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
5e11f6d43d Bug 922810 - Part 2: reorganize the tracking of fake back statuses - r=jgilbert 2013-10-11 09:16:43 -04:00
Boris Zbarsky
6195bac64d 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
b29a404ca7 Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures 2013-10-09 17:48:13 +01:00
Boris Zbarsky
cd528c76db 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
f63bf2b4f3 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
5be9f3080d Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-10-08 13:27:29 -04:00
Ehsan Akhgari
18ef76b0d7 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
2f361899e6 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
Benoit Jacob
0f90257361 Bug 913872 - Take nested enums out of gfxASurface - 1/3 : automatic changes - r=jrmuizel
Generated by these regexes:

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(ImageFormat\|SurfaceType\|ContentType\|MemoryLocation\)[0-9A-Za-z_]*\)/gfx\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(CONTENT_\|MEMORY_\)[0-9A-Za-z_]*\)/GFX_\1/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(CONTENT_COLOR\|CONTENT_ALPHA\|CONTENT_COLOR_ALPHA\|CONTENT_SENTINEL\|MEMORY_IN_PROCESS_HEAP\|MEMORY_IN_PROCESS_NONHEAP\|MEMORY_OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1GFX_\2\3/g'

find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(ImageFormatARGB32\|ImageFormatRGB24\|ImageFormatA8\|ImageFormatA1\|ImageFormatRGB16_565\|ImageFormatUnknown\|SurfaceTypeImage\|SurfaceTypePDF\|SurfaceTypePS\|SurfaceTypeXlib\|SurfaceTypeXcb\|SurfaceTypeGlitz\|SurfaceTypeQuartz\|SurfaceTypeWin32\|SurfaceTypeBeOS\|SurfaceTypeDirectFB\|SurfaceTypeSVG\|SurfaceTypeOS2\|SurfaceTypeWin32Printing\|SurfaceTypeQuartzImage\|SurfaceTypeScript\|SurfaceTypeQPainter\|SurfaceTypeRecording\|SurfaceTypeVG\|SurfaceTypeGL\|SurfaceTypeDRM\|SurfaceTypeTee\|SurfaceTypeXML\|SurfaceTypeSkia\|SurfaceTypeSubsurface\|SurfaceTypeD2D\|SurfaceTypeMax\)\($\|[^A-Za-z0-9_]\)/\1gfx\2\3/g'
2013-09-24 16:45:13 -04:00
Stephen Pohl
06ac3a989e Backout bug 817700 for causing various regressions. r=me 2013-09-13 14:14:36 -04:00
Stephen Pohl
896265ffe7 Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc,bz 2013-09-12 17:04:10 -04:00
Nicholas Nethercote
fd238cabbe Bug 910517 (3rd attempt) - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 2b2a1b2667d6562fcf803ec48b4a8c10fdd519a3
2013-08-27 16:24:51 -07:00
Ed Morley
50ba829a39 Backed out changeset 5c9f3fb14995 (bug 910517) for Android talos failures
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-09 16:07:48 +01:00
Ms2ger
8e0e691623 Merge backout. 2013-09-09 16:56:18 +02:00
Ms2ger
7cc7e62ccd Backout changesets 194d051724a8:89e680f30d31 (bug 817700) for insufficient review. 2013-09-09 16:56:00 +02:00
Stephen Pohl
1e6232e229 Bug 817700 - Make <canvas>.toBlob run asynchronously - canvas changes. r=roc 2013-09-06 12:30:21 -04:00
Nicholas Nethercote
9d7bc3d7f1 Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 76bf96ce8d6e16c8573584d9e8e70c80371f66eb
2013-08-27 16:24:51 -07:00
Benoit Jacob
d5baca5fc2 Bug 912255 - traverse/unlink mDefaultVertexArray - r=smaug 2013-09-04 11:29:36 -04:00
Benoit Jacob
94f74c705d Bug 912042 - Avoid including GLContext.h in headers that don't need it - r=jrmuizel 2013-09-04 08:14:52 -04:00
Benoit Jacob
e915fc8cb0 Bug 911856 - Remove the custom concept of "stable context" in favor of the standard concept of "lost context" - r=jgilbert 2013-09-04 08:14:44 -04:00
Benoit Jacob
a53a6563d1 Bug 911855 - Remove redundant WebGL integer typedefs - r=jgilbert 2013-09-04 08:14:43 -04:00
Guillaume Abadie
7b862f997f bug 908841 - step 1 - Move WebGL extension managment in WebGLContextExtensions.cpp - r=jgilbert 2013-08-26 17:12:53 -04:00
Jeff Gilbert
e7b98f217c Bug 783674 - WebGLContext::Render to use ReadScreen* and mark its surfaces as dirty. r=bjacob 2013-08-26 11:26:27 -04:00
Kyle Huey
f05ce97507 Bug 907595: Forward declare ImageData and stop including it in headers. r=bz 2013-08-22 22:17:11 -07:00
Guillaume Abadie
e9d0da63f5 bug 908232 - step 2 - [WebGL 2.0] Add RASTERIZER_DISCARD tracking - r=jgilbert 2013-08-22 20:11:40 -04:00
Guillaume Abadie
72ecad07aa bug 904330 - step 03 - Uses mozilla::GLFeature instead of old extension group queries - r=jgilbert 2013-08-22 13:42:05 -04:00