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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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()

Powered by Google App Engine
This is Rietveld 408576698