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

Unified Diff: Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp

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 | « no previous file | Source/core/html/canvas/EXTFragDepth.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp
diff --git a/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp b/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp
index bf1689ad1af1015135078c1c0235c7a336e15863..30392d7721a91f050f7bb09df347e4bdb3e0784f 100644
--- a/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp
+++ b/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp
@@ -351,8 +351,8 @@ void V8WebGLRenderingContext::getExtensionMethodCustom(const v8::FunctionCallbac
return;
}
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]);
- WebGLExtension* extension = imp->getExtension(name);
- v8SetReturnValue(args, toV8Object(extension, args.Holder(), args.GetIsolate()));
+ RefPtr<WebGLExtension> extension(imp->getExtension(name));
+ v8SetReturnValue(args, toV8Object(extension.get(), args.Holder(), args.GetIsolate()));
}
void V8WebGLRenderingContext::getFramebufferAttachmentParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
« no previous file with comments | « no previous file | Source/core/html/canvas/EXTFragDepth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698