Commit eb781549 authored by Boris Zbarsky's avatar Boris Zbarsky
Browse files

Bug 749539. Make IsContextStable an inline function. r=bjacob

parent 89ee3323
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1527,10 +1527,3 @@ WebGLContext::IsContextLost(WebGLboolean *retval)
    *retval = mContextStatus != ContextStable;
    return NS_OK;
}

// Internalized version of IsContextLost.
bool
WebGLContext::IsContextStable() const
{
    return mContextStatus == ContextStable;
}
+3 −1
Original line number Diff line number Diff line
@@ -1279,7 +1279,9 @@ protected:
                             const GLvoid *data);

    void MaybeRestoreContext();
    bool IsContextStable() const;
    bool IsContextStable() const {
        return mContextStatus == ContextStable;
    }
    void ForceLoseContext();
    void ForceRestoreContext();