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

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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 4606cebc789c203c09f5dd85a621370d4ff422fa..a180f8de557b0bad0c4120966ec8d4754e582e5b 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
@@ -85,7 +85,7 @@ void OffscreenCanvasFrameDispatcherImpl::setTransferableResourceToSharedBitmap(
// Hold ref to |bitmap|, to keep it alive until the browser ReclaimResources.
// It guarantees that the shared bitmap is not re-used or deleted.
- m_sharedBitmaps.add(m_nextResourceId, std::move(bitmap));
+ m_sharedBitmaps.insert(m_nextResourceId, std::move(bitmap));
}
void OffscreenCanvasFrameDispatcherImpl::
@@ -146,7 +146,7 @@ void OffscreenCanvasFrameDispatcherImpl::
// Hold ref to |textureId| for the piece of GPU memory where the pixel data
// is uploaded to, to keep it alive until the browser ReclaimResources.
- m_cachedTextureIds.add(m_nextResourceId, textureId);
+ m_cachedTextureIds.insert(m_nextResourceId, textureId);
}
void OffscreenCanvasFrameDispatcherImpl::
@@ -161,7 +161,7 @@ void OffscreenCanvasFrameDispatcherImpl::
// Hold ref to |image|, to keep it alive until the browser ReclaimResources.
// It guarantees that the resource is not re-used or deleted.
- m_cachedImages.add(m_nextResourceId, std::move(image));
+ m_cachedImages.insert(m_nextResourceId, std::move(image));
}
namespace {

Powered by Google App Engine
This is Rietveld 408576698