Bug 822404 - Shouldn't use WANT_NEW_SURFACE when uploading DOM elements to WebGL textures - r=jgilbert
authorBenoit Jacob <bjacob@mozilla.com>
Mon, 17 Dec 2012 16:59:51 -0500
changeset 121892 852237e60012814caca184adb2692127eeb94f81
parent 121891 2ac511266b2cded3484994810ac38da0a3f0e6eb
child 121893 97061a5509355424f622279a0d4464a01bf77780
push idunknown
push userunknown
push dateunknown
reviewersjgilbert
bugs822404
milestone20.0a1
Bug 822404 - Shouldn't use WANT_NEW_SURFACE when uploading DOM elements to WebGL textures - r=jgilbert
content/canvas/src/WebGLContext.h
--- a/content/canvas/src/WebGLContext.h
+++ b/content/canvas/src/WebGLContext.h
@@ -973,17 +973,16 @@ protected:
                       WebGLTexelFormat srcFormat, bool srcPremultiplied,
                       WebGLTexelFormat dstFormat, bool dstPremultiplied,
                       size_t dstTexelSize);
 
     template<class ElementType>
     nsLayoutUtils::SurfaceFromElementResult SurfaceFromElement(ElementType* aElement) {
         MOZ_ASSERT(aElement);
         uint32_t flags =
-            nsLayoutUtils::SFE_WANT_NEW_SURFACE |
             nsLayoutUtils::SFE_WANT_IMAGE_SURFACE;
 
         if (mPixelStoreColorspaceConversion == LOCAL_GL_NONE)
             flags |= nsLayoutUtils::SFE_NO_COLORSPACE_CONVERSION;
         if (!mPixelStorePremultiplyAlpha)
             flags |= nsLayoutUtils::SFE_NO_PREMULTIPLY_ALPHA;
         return nsLayoutUtils::SurfaceFromElement(aElement, flags);
     }