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

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.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/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
index 752acbf0933e674532747d9cb21eeb0558d0f70e..4606cebc789c203c09f5dd85a621370d4ff422fa 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
@@ -425,9 +425,9 @@ void OffscreenCanvasFrameDispatcherImpl::reclaimResource(unsigned resourceId) {
m_spareResourceLocks.remove(resourceId);
return;
}
- m_cachedImages.remove(resourceId);
- m_sharedBitmaps.remove(resourceId);
- m_cachedTextureIds.remove(resourceId);
+ m_cachedImages.erase(resourceId);
+ m_sharedBitmaps.erase(resourceId);
+ m_cachedTextureIds.erase(resourceId);
}
bool OffscreenCanvasFrameDispatcherImpl::verifyImageSize(

Powered by Google App Engine
This is Rietveld 408576698