From a83d8031c7388f9b5940ab71047cee94d6e4c1c9 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Wed, 5 Jan 2011 13:08:53 -0800 Subject: [PATCH] b=622956; [webgl] add stub extension mechanism, fixes extension tests; r=bjacob --- content/canvas/src/WebGLContextGL.cpp | 7 +++++++ dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl | 3 +++ 2 files changed, 10 insertions(+) diff --git a/content/canvas/src/WebGLContextGL.cpp b/content/canvas/src/WebGLContextGL.cpp index 0cada0bbfa9..50baae43c84 100644 --- a/content/canvas/src/WebGLContextGL.cpp +++ b/content/canvas/src/WebGLContextGL.cpp @@ -4201,3 +4201,10 @@ int mozilla::GetWebGLTexelFormat(GLenum format, GLenum type) } } } + +NS_IMETHODIMP +WebGLContext::GetExtension(const nsAString& aName, nsISupports **retval) +{ + *retval = nsnull; + return NS_OK; +} diff --git a/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl index d93178e4618..87541839802 100644 --- a/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl +++ b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl @@ -834,4 +834,7 @@ interface nsIDOMWebGLRenderingContext : nsISupports // 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); };