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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h

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/gpu/DrawingBufferTestHelpers.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
index d099d056a66dfb41d10b93dd2147e034281c0343..06218bc6d147796b8c595708d6b4235c1e260842 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h
@@ -251,10 +251,10 @@ class GLES2InterfaceForTests : public gpu::gles2::GLES2InterfaceStub,
MOCK_METHOD1(DestroyImageMock, void(GLuint imageId));
void DestroyImageCHROMIUM(GLuint imageId) {
- m_imageSizes.remove(imageId);
+ m_imageSizes.erase(imageId);
// No textures should be bound to this.
CHECK(m_imageToTextureMap.find(imageId) == m_imageToTextureMap.end());
- m_imageSizes.remove(imageId);
+ m_imageSizes.erase(imageId);
DestroyImageMock(imageId);
}
@@ -272,7 +272,7 @@ class GLES2InterfaceForTests : public gpu::gles2::GLES2InterfaceStub,
void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
if (target == imageCHROMIUMTextureTarget()) {
m_imageSizes.set(m_currentImageId, IntSize());
- m_imageToTextureMap.remove(imageId);
+ m_imageToTextureMap.erase(imageId);
ReleaseTexImage2DMock(imageId);
}
}

Powered by Google App Engine
This is Rietveld 408576698