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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Issue 1917193006: WTF: Make PassOwnPtr<T> move-only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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/core/offscreencanvas/OffscreenCanvas.cpp
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
index e7422f9693d164383434f12856c59148b45bcf69..771219507b7f2ebed8f314f7ed7f67cd9ab77a24 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
@@ -99,7 +99,7 @@ void OffscreenCanvas::registerRenderingContextFactory(PassOwnPtr<CanvasRendering
CanvasRenderingContext::ContextType type = renderingContextFactory->getContextType();
ASSERT(type < CanvasRenderingContext::ContextTypeCount);
ASSERT(!renderingContextFactories()[type]);
- renderingContextFactories()[type] = renderingContextFactory;
+ renderingContextFactories()[type] = std::move(renderingContextFactory);
}
DEFINE_TRACE(OffscreenCanvas)

Powered by Google App Engine
This is Rietveld 408576698