b=622956; [webgl] add stub extension mechanism, fixes extension tests; r=bjacob
authorVladimir Vukicevic <vladimir@pobox.com>
Wed, 05 Jan 2011 13:08:53 -0800
changeset 60040 d2cec4c938307f3bcf8db6e9317d8c1260fe830f
parent 60039 a432b56defb3f84e4ee18001b98aad0db3936154
child 60041 64a35318b09ea46208ab862dc26f8cc810d0706a
push id17838
push uservladimir@mozilla.com
push dateWed, 05 Jan 2011 21:09:32 +0000
treeherdermozilla-central@64a35318b09e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs622956
milestone2.0b9pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
b=622956; [webgl] add stub extension mechanism, fixes extension tests; r=bjacob
content/canvas/src/WebGLContextGL.cpp
dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl
--- a/content/canvas/src/WebGLContextGL.cpp
+++ b/content/canvas/src/WebGLContextGL.cpp
@@ -4196,8 +4196,15 @@ int mozilla::GetWebGLTexelFormat(GLenum 
             case LOCAL_GL_UNSIGNED_SHORT_5_6_5:
                 return WebGLTexelFormat::RGB565;
             default:
                 NS_ASSERTION(PR_FALSE, "Coding mistake?! Should never reach this point.");
                 return WebGLTexelFormat::Generic;
         }
     }
 }
+
+NS_IMETHODIMP
+WebGLContext::GetExtension(const nsAString& aName, nsISupports **retval)
+{
+    *retval = nsnull;
+    return NS_OK;
+}
--- a/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl
+++ b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl
@@ -829,9 +829,12 @@ interface nsIDOMWebGLRenderingContext : 
   void vertexAttribPointer(in WebGLuint idx, in WebGLint size, in WebGLenum type, in WebGLboolean normalized, in WebGLsizei stride, in WebGLsizeiptr offset);
 
   void viewport(in WebGLint x, in WebGLint y, in WebGLsizei width, in WebGLsizei height);
 
   // get an underlying GL parameter, without any WebGL intervention.
   // Most useful for querying GL_VENDOR/GL_RENDERER for identifying
   // the underlying renderer to the user.
   [noscript] DOMString mozGetUnderlyingParamString(in WebGLenum pname);
+
+  // extensions
+  nsISupports getExtension(in DOMString name);
 };