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

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

Issue 2623513003: [wrapper-tracing] Fix tracing of WebGL2RenderingContextBase (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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4532 matching lines...) Expand 10 before | Expand all | Expand 10 after
4543 visitor->trace(m_boundIndexedUniformBuffers); 4543 visitor->trace(m_boundIndexedUniformBuffers);
4544 visitor->trace(m_currentBooleanOcclusionQuery); 4544 visitor->trace(m_currentBooleanOcclusionQuery);
4545 visitor->trace(m_currentTransformFeedbackPrimitivesWrittenQuery); 4545 visitor->trace(m_currentTransformFeedbackPrimitivesWrittenQuery);
4546 visitor->trace(m_currentElapsedQuery); 4546 visitor->trace(m_currentElapsedQuery);
4547 visitor->trace(m_samplerUnits); 4547 visitor->trace(m_samplerUnits);
4548 visitor->trace(m_getBufferSubDataAsyncCallbacks); 4548 visitor->trace(m_getBufferSubDataAsyncCallbacks);
4549 WebGLRenderingContextBase::trace(visitor); 4549 WebGLRenderingContextBase::trace(visitor);
4550 } 4550 }
4551 4551
4552 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContextBase) { 4552 DEFINE_TRACE_WRAPPERS(WebGL2RenderingContextBase) {
4553 if (isContextLost()) {
4554 return;
4555 }
4556
4557 visitor->traceWrappers(m_transformFeedbackBinding); 4553 visitor->traceWrappers(m_transformFeedbackBinding);
4558 visitor->traceWrappers(m_readFramebufferBinding); 4554 visitor->traceWrappers(m_readFramebufferBinding);
4559 visitor->traceWrappers(m_boundCopyReadBuffer); 4555 visitor->traceWrappers(m_boundCopyReadBuffer);
4560 visitor->traceWrappers(m_boundCopyWriteBuffer); 4556 visitor->traceWrappers(m_boundCopyWriteBuffer);
4561 visitor->traceWrappers(m_boundPixelPackBuffer); 4557 visitor->traceWrappers(m_boundPixelPackBuffer);
4562 visitor->traceWrappers(m_boundPixelUnpackBuffer); 4558 visitor->traceWrappers(m_boundPixelUnpackBuffer);
4563 visitor->traceWrappers(m_boundTransformFeedbackBuffer); 4559 visitor->traceWrappers(m_boundTransformFeedbackBuffer);
4564 visitor->traceWrappers(m_boundUniformBuffer); 4560 visitor->traceWrappers(m_boundUniformBuffer);
4565 for (auto& buf : m_boundIndexedTransformFeedbackBuffers) { 4561 for (auto& buf : m_boundIndexedTransformFeedbackBuffers) {
4566 visitor->traceWrappers(buf); 4562 visitor->traceWrappers(buf);
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
4858 4854
4859 void WebGL2RenderingContextBase:: 4855 void WebGL2RenderingContextBase::
4860 DrawingBufferClientRestorePixelUnpackBufferBinding() { 4856 DrawingBufferClientRestorePixelUnpackBufferBinding() {
4861 if (!contextGL()) 4857 if (!contextGL())
4862 return; 4858 return;
4863 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 4859 contextGL()->BindBuffer(GL_PIXEL_UNPACK_BUFFER,
4864 objectOrZero(m_boundPixelUnpackBuffer.get())); 4860 objectOrZero(m_boundPixelUnpackBuffer.get()));
4865 } 4861 }
4866 4862
4867 } // namespace blink 4863 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698