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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.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/modules/webgl/WebGLFramebuffer.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
index ec3aac00e751e34cb3607503919948ec75730f06..70d4c4e6cf6c3320b0b2ac1a53ca19ca2af4420d 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp
@@ -435,7 +435,7 @@ void WebGLFramebuffer::setAttachmentInternal(GLenum target,
DCHECK(m_object);
removeAttachmentInternal(target, attachment);
if (texture && texture->object()) {
- m_attachments.add(
+ m_attachments.insert(
attachment, TraceWrapperMember<WebGLAttachment>(
this, WebGLTextureAttachment::create(texture, texTarget,
level, layer)));
@@ -451,7 +451,7 @@ void WebGLFramebuffer::setAttachmentInternal(GLenum target,
DCHECK(m_object);
removeAttachmentInternal(target, attachment);
if (renderbuffer && renderbuffer->object()) {
- m_attachments.add(
+ m_attachments.insert(
attachment,
TraceWrapperMember<WebGLAttachment>(
this, WebGLRenderbufferAttachment::create(renderbuffer)));

Powered by Google App Engine
This is Rietveld 408576698