| OLD | NEW |
| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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.insert(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.erase(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, |
| 415 GLint srcY1, | 415 GLint srcY1, |
| 416 GLint dstX0, | 416 GLint dstX0, |
| 417 GLint dstY0, | 417 GLint dstY0, |
| 418 GLint dstX1, | 418 GLint dstX1, |
| 419 GLint dstY1, | 419 GLint dstY1, |
| (...skipping 5173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5593 | 5593 |
| 5594 void WebGL2RenderingContextBase:: | 5594 void WebGL2RenderingContextBase:: |
| 5595 DrawingBufferClientRestorePixelUnpackBufferBinding() { | 5595 DrawingBufferClientRestorePixelUnpackBufferBinding() { |
| 5596 if (!contextGL()) | 5596 if (!contextGL()) |
| 5597 return; | 5597 return; |
| 5598 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, | 5598 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, |
| 5599 objectOrZero(m_boundPixelUnpackBuffer.get())); | 5599 objectOrZero(m_boundPixelUnpackBuffer.get())); |
| 5600 } | 5600 } |
| 5601 | 5601 |
| 5602 } // namespace blink | 5602 } // namespace blink |
| OLD | NEW |