diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebKitLoseContext.cpp')
-rw-r--r-- | Source/WebCore/html/canvas/WebKitLoseContext.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/WebCore/html/canvas/WebKitLoseContext.cpp b/Source/WebCore/html/canvas/WebKitLoseContext.cpp index c594e32..3c0a5f3 100644 --- a/Source/WebCore/html/canvas/WebKitLoseContext.cpp +++ b/Source/WebCore/html/canvas/WebKitLoseContext.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2010 Google Inc. All rights reserved. + * Copyright (C) 2012 Sony Ericsson Mobile Communications AB * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -56,7 +57,13 @@ PassRefPtr<WebKitLoseContext> WebKitLoseContext::create(WebGLRenderingContext* c void WebKitLoseContext::loseContext() { if (m_context) - m_context->forceLostContext(); + m_context->forceLostContext(WebGLRenderingContext::SyntheticLostContext); +} + +void WebKitLoseContext::restoreContext() +{ + if (m_context) + m_context->forceRestoreContext(); } } // namespace WebCore |