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

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

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 11 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 1d0669ebd5dfe670516ebdc23f9dce03182ccc56..0fd366cf0f29b56f549a661ab72c4ef2c60448d5 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -239,7 +239,7 @@ void WebGLRenderingContextBase::addToEvictedList(
void WebGLRenderingContextBase::removeFromEvictedList(
WebGLRenderingContextBase* context) {
- forciblyEvictedContexts().remove(context);
+ forciblyEvictedContexts().erase(context);
}
void WebGLRenderingContextBase::restoreEvictedContext(
@@ -255,7 +255,7 @@ void WebGLRenderingContextBase::restoreEvictedContext(
forciblyEvictedContexts().size()) {
WebGLRenderingContextBase* evictedContext = oldestEvictedContext();
if (!evictedContext->m_restoreAllowed) {
- forciblyEvictedContexts().remove(evictedContext);
+ forciblyEvictedContexts().erase(evictedContext);
continue;
}
@@ -265,7 +265,7 @@ void WebGLRenderingContextBase::restoreEvictedContext(
// If there's room in the pixel budget for this context, restore it.
if (!desiredSize.isEmpty()) {
- forciblyEvictedContexts().remove(evictedContext);
+ forciblyEvictedContexts().erase(evictedContext);
evictedContext->forceRestoreContext();
}
break;
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp ('k') | third_party/WebKit/Source/modules/webusb/USB.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698