Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Unified Diff: Source/core/html/canvas/WebGLLoseContext.h

Issue 15876011: Make WebGL extensions get lost when context is lost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/WebGLExtension.h ('k') | Source/core/html/canvas/WebGLLoseContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLLoseContext.h
diff --git a/Source/core/html/canvas/WebGLLoseContext.h b/Source/core/html/canvas/WebGLLoseContext.h
index 4f81813c7ff52c5a216045ec38a53629ef01dda0..aa0c5933f86f41971b9f5345afa955bb535a475c 100644
--- a/Source/core/html/canvas/WebGLLoseContext.h
+++ b/Source/core/html/canvas/WebGLLoseContext.h
@@ -28,7 +28,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/html/canvas/WebGLExtension.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PassRefPtr.h"
namespace WebCore {
@@ -36,12 +36,13 @@ class WebGLRenderingContext;
class WebGLLoseContext : public WebGLExtension, public ScriptWrappable {
public:
- static PassOwnPtr<WebGLLoseContext> create(WebGLRenderingContext*);
+ static PassRefPtr<WebGLLoseContext> create(WebGLRenderingContext*);
static bool supported(WebGLRenderingContext*);
static const char* getExtensionName();
virtual ~WebGLLoseContext();
virtual ExtensionName getName() const;
+ virtual void lose(bool);
void loseContext();
void restoreContext();
« no previous file with comments | « Source/core/html/canvas/WebGLExtension.h ('k') | Source/core/html/canvas/WebGLLoseContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698