diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLLoseContext.cpp')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLLoseContext.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/WebCore/html/canvas/WebGLLoseContext.cpp b/Source/WebCore/html/canvas/WebGLLoseContext.cpp index 9f4e0b01e..9bcb049b4 100644 --- a/Source/WebCore/html/canvas/WebGLLoseContext.cpp +++ b/Source/WebCore/html/canvas/WebGLLoseContext.cpp @@ -29,11 +29,11 @@ #include "WebGLLoseContext.h" -#include "WebGLRenderingContext.h" +#include "WebGLRenderingContextBase.h" namespace WebCore { -WebGLLoseContext::WebGLLoseContext(WebGLRenderingContext* context) +WebGLLoseContext::WebGLLoseContext(WebGLRenderingContextBase& context) : WebGLExtension(context) { } @@ -47,19 +47,14 @@ WebGLExtension::ExtensionName WebGLLoseContext::getName() const return WebGLLoseContextName; } -OwnPtr<WebGLLoseContext> WebGLLoseContext::create(WebGLRenderingContext* context) -{ - return adoptPtr(new WebGLLoseContext(context)); -} - void WebGLLoseContext::loseContext() { - m_context->forceLostContext(WebGLRenderingContext::SyntheticLostContext); + m_context.forceLostContext(WebGLRenderingContextBase::SyntheticLostContext); } void WebGLLoseContext::restoreContext() { - m_context->forceRestoreContext(); + m_context.forceRestoreContext(); } } // namespace WebCore |