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

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

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index 7886287a4fc8d23dadb9386fca86a1dd20a5e346..d0af592d9811f0c15d0a843e8838eb48ca441c54 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -1053,7 +1053,7 @@ WebGLRenderingContextBase::WebGLRenderingContextBase(
return;
}
- drawing_buffer_ = buffer.Release();
+ drawing_buffer_ = std::move(buffer);
drawing_buffer_->AddNewMailboxCallback(
WTF::Bind(&WebGLRenderingContextBase::NotifyCanvasContextChanged,
WrapWeakPersistent(this)));
@@ -4871,8 +4871,9 @@ void WebGLRenderingContextBase::TexImageHelperHTMLImageElement(
if (canvas()) {
UseCounter::Count(canvas()->GetDocument(), UseCounter::kSVGInWebGL);
}
- image_for_render = DrawImageIntoBuffer(
- image_for_render.Release(), image->width(), image->height(), func_name);
+ image_for_render =
+ DrawImageIntoBuffer(std::move(image_for_render), image->width(),
+ image->height(), func_name);
}
TexImageFunctionType function_type;
@@ -7532,7 +7533,7 @@ void WebGLRenderingContextBase::MaybeRestoreContext(TimerBase*) {
return;
}
- drawing_buffer_ = buffer.Release();
+ drawing_buffer_ = std::move(buffer);
drawing_buffer_->AddNewMailboxCallback(
WTF::Bind(&WebGLRenderingContextBase::NotifyCanvasContextChanged,
WrapWeakPersistent(this)));
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/GLStringQuery.h ('k') | third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698