| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/html/canvas/WebGL2RenderingContextBase.h" | 6 #include "core/html/canvas/WebGL2RenderingContextBase.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/WebGLAny.h" | 8 #include "bindings/core/v8/WebGLAny.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 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 webContext()->bindVertexArrayOES(objectOrZero(vertexArray)); | 1142 webContext()->bindVertexArrayOES(objectOrZero(vertexArray)); |
| 1143 | 1143 |
| 1144 vertexArray->setHasEverBeenBound(); | 1144 vertexArray->setHasEverBeenBound(); |
| 1145 setBoundVertexArrayObject(vertexArray); | 1145 setBoundVertexArrayObject(vertexArray); |
| 1146 } else { | 1146 } else { |
| 1147 webContext()->bindVertexArrayOES(0); | 1147 webContext()->bindVertexArrayOES(0); |
| 1148 setBoundVertexArrayObject(nullptr); | 1148 setBoundVertexArrayObject(nullptr); |
| 1149 } | 1149 } |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 void WebGL2RenderingContextBase::trace(Visitor* visitor) | 1152 DEFINE_TRACE(WebGL2RenderingContextBase) |
| 1153 { | 1153 { |
| 1154 WebGLRenderingContextBase::trace(visitor); | 1154 WebGLRenderingContextBase::trace(visitor); |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 } // namespace blink | 1157 } // namespace blink |
| OLD | NEW |