| Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
|
| index 813b2a239b2d1f832467abd15ae033761df9202b..a7cc8ecd233ae3a17bd1e49ba4087926d1748c92 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
|
| @@ -51,7 +51,7 @@ RawPtr<CanvasRenderingContext> WebGL2RenderingContext::Factory::create(HTMLCanva
|
| gl->PushGroupMarkerEXT(0, contextLabel.ascii().data());
|
| }
|
|
|
| - RawPtr<WebGL2RenderingContext> renderingContext = new WebGL2RenderingContext(canvas, contextProvider.release(), attributes);
|
| + WebGL2RenderingContext* renderingContext = new WebGL2RenderingContext(canvas, contextProvider.release(), attributes);
|
|
|
| if (!renderingContext->drawingBuffer()) {
|
| canvas->dispatchEvent(WebGLContextEvent::create(EventTypeNames::webglcontextcreationerror, false, true, "Could not create a WebGL2 context."));
|
| @@ -61,7 +61,7 @@ RawPtr<CanvasRenderingContext> WebGL2RenderingContext::Factory::create(HTMLCanva
|
| renderingContext->initializeNewContext();
|
| renderingContext->registerContextExtensions();
|
|
|
| - return renderingContext.release();
|
| + return renderingContext;
|
| }
|
|
|
| void WebGL2RenderingContext::Factory::onError(HTMLCanvasElement* canvas, const String& error)
|
| @@ -81,7 +81,7 @@ WebGL2RenderingContext::~WebGL2RenderingContext()
|
|
|
| void WebGL2RenderingContext::setCanvasGetContextResult(RenderingContext& result)
|
| {
|
| - result.setWebGL2RenderingContext(RawPtr<WebGL2RenderingContext>(this));
|
| + result.setWebGL2RenderingContext(this);
|
| }
|
|
|
| void WebGL2RenderingContext::registerContextExtensions()
|
|
|