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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webgl/WebGL2RenderingContextBase.h" 5 #include "modules/webgl/WebGL2RenderingContextBase.h"
6 6
7 #include "bindings/modules/v8/WebGLAny.h" 7 #include "bindings/modules/v8/WebGLAny.h"
8 #include "core/frame/ImageBitmap.h" 8 #include "core/frame/ImageBitmap.h"
9 #include "core/html/HTMLCanvasElement.h" 9 #include "core/html/HTMLCanvasElement.h"
10 #include "core/html/HTMLImageElement.h" 10 #include "core/html/HTMLImageElement.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 if (!mappedData) 394 if (!mappedData)
395 return; 395 return;
396 396
397 memcpy(destinationDataPtr, mappedData, destinationByteLength); 397 memcpy(destinationDataPtr, mappedData, destinationByteLength);
398 398
399 contextGL()->UnmapBuffer(target); 399 contextGL()->UnmapBuffer(target);
400 } 400 }
401 401
402 void WebGL2RenderingContextBase::registerGetBufferSubDataAsyncCallback( 402 void WebGL2RenderingContextBase::registerGetBufferSubDataAsyncCallback(
403 WebGLGetBufferSubDataAsyncCallback* callback) { 403 WebGLGetBufferSubDataAsyncCallback* callback) {
404 m_getBufferSubDataAsyncCallbacks.add(callback); 404 m_getBufferSubDataAsyncCallbacks.insert(callback);
405 } 405 }
406 406
407 void WebGL2RenderingContextBase::unregisterGetBufferSubDataAsyncCallback( 407 void WebGL2RenderingContextBase::unregisterGetBufferSubDataAsyncCallback(
408 WebGLGetBufferSubDataAsyncCallback* callback) { 408 WebGLGetBufferSubDataAsyncCallback* callback) {
409 m_getBufferSubDataAsyncCallbacks.remove(callback); 409 m_getBufferSubDataAsyncCallbacks.remove(callback);
410 } 410 }
411 411
412 void WebGL2RenderingContextBase::blitFramebuffer(GLint srcX0, 412 void WebGL2RenderingContextBase::blitFramebuffer(GLint srcX0,
413 GLint srcY0, 413 GLint srcY0,
414 GLint srcX1, 414 GLint srcX1,
(...skipping 4439 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 4854
4855 void WebGL2RenderingContextBase:: 4855 void WebGL2RenderingContextBase::
4856 DrawingBufferClientRestorePixelUnpackBufferBinding() { 4856 DrawingBufferClientRestorePixelUnpackBufferBinding() {
4857 if (!contextGL()) 4857 if (!contextGL())
4858 return; 4858 return;
4859 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 4859 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER,
4860 objectOrZero(m_boundPixelUnpackBuffer.get())); 4860 objectOrZero(m_boundPixelUnpackBuffer.get()));
4861 } 4861 }
4862 4862
4863 } // namespace blink 4863 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698