Bug 632587 - 3/3 - add isContextLost - r=jrmuizel, a=joe
authorBenoit Jacob <bjacob@mozilla.com>
Tue, 01 Mar 2011 17:25:22 -0500
changeset 63221 c0b114d35e7b397e294f968f7894795a1f4909f4
parent 63220 4110a0918c4c3f6b93cc928f5c04102dbdcf8373
child 63222 7f63b0b1f7c064d09682f526df2cfd5b3e5ba4c5
push id19084
push userbjacob@mozilla.com
push dateTue, 01 Mar 2011 22:25:40 +0000
treeherdermozilla-central@c0b114d35e7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, joe
bugs632587
milestone2.0b13pre
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
Bug 632587 - 3/3 - add isContextLost - r=jrmuizel, a=joe
content/canvas/src/WebGLContext.cpp
dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl
--- a/content/canvas/src/WebGLContext.cpp
+++ b/content/canvas/src/WebGLContext.cpp
@@ -917,13 +917,20 @@ WebGLContext::GetSupportedExtensions(nsI
     if (NS_FAILED(rv))
         return rv;
 
     *retval = wrval.forget().get();
     return NS_OK;
 }
 
 NS_IMETHODIMP
+WebGLContext::IsContextLost(WebGLboolean *retval)
+{
+    *retval = PR_FALSE;
+    return NS_OK;
+}
+
+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
@@ -838,9 +838,10 @@ interface nsIDOMWebGLRenderingContext : 
   // extensions
   nsISupports getExtension(in DOMString name);
 };
 
 [scriptable, uuid(23182042-3d92-407d-9b9b-37c9886398f7)]
 interface nsIDOMWebGLRenderingContext_MOZILLA_2_0_BRANCH : nsISupports
 {
   nsIVariant getSupportedExtensions();
+  WebGLboolean isContextLost();
 };