Commit Graph

381 Commits

Author SHA1 Message Date
Benoit Jacob
065c46bd6f Bug 989325 - Make WebGLExtensionID a typed enum, and WebGLContext::mExtensions an enumerated array - r=jgilbert 2014-04-25 22:34:07 -04:00
Jeff Gilbert
b907ee022e Bug 996269 - Lazily clear the WebGL backbuffer. - r=kamidphish 2014-04-17 13:15:41 -07:00
Jonathan Watt
cc5c8ff0dc 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
30f65e3cc3 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
0bf873e24d Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Carsten "Tomcat" Book
35c906cff6 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
e0251f4acb Backed out changeset 8681fc7a918b (bug 997014) 2014-04-17 08:43:38 +02:00
Matt Woodrow
efb62922b5 Bug 997014 - Part 5: Remove nsICanvasRenderingContextInternal::Render. r=roc 2014-04-17 17:31:44 +12:00
Matt Woodrow
3c93570e0d Bug 997014 - Part 1: Improve GetSurfaceSnapshot. r=roc 2014-04-17 17:28:17 +12:00
Dan Glastonbury
a6163d0821 Bug 982464 - Disable extension functionality after a context lost happens. r=jgilbert 2014-03-12 12:51:39 +10:00
Jeff Gilbert
7aeaf1e88f Bug 978418 - Split GetError flags for WebGL. - r=kamidphish 2014-03-07 13:16:34 -08:00
Dan Glastonbury
c62cc5806b Bug 966624 - Refactor Tex Image checks. r=jgilbert 2014-02-20 20:20:28 -05:00
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