| 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 #ifndef WebGL2RenderingContextBase_h | 5 #ifndef WebGL2RenderingContextBase_h |
| 6 #define WebGL2RenderingContextBase_h | 6 #define WebGL2RenderingContextBase_h |
| 7 | 7 |
| 8 #include "modules/webgl/WebGLExtension.h" | 8 #include "modules/webgl/WebGLExtension.h" |
| 9 #include "modules/webgl/WebGLRenderingContextBase.h" | 9 #include "modules/webgl/WebGLRenderingContextBase.h" |
| 10 | 10 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 void removeBoundBuffer(WebGLBuffer*) override; | 209 void removeBoundBuffer(WebGLBuffer*) override; |
| 210 | 210 |
| 211 PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding; | 211 PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding; |
| 212 PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; | 212 PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; |
| 213 GLint m_max3DTextureSize; | 213 GLint m_max3DTextureSize; |
| 214 GLint m_max3DTextureLevel; | 214 GLint m_max3DTextureLevel; |
| 215 | 215 |
| 216 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; | 216 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; |
| 217 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; | 217 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; |
| 218 PersistentWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; | |
| 219 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; | 218 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; |
| 220 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; | 219 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; |
| 221 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; | 220 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; |
| 222 | 221 |
| 223 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; | 222 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; |
| 224 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt
enQuery; | 223 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt
enQuery; |
| 225 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; | 224 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; |
| 226 }; | 225 }; |
| 227 | 226 |
| 228 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 227 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 229 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 228 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 230 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 229 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 231 | 230 |
| 232 } // namespace blink | 231 } // namespace blink |
| 233 | 232 |
| 234 #endif | 233 #endif |
| OLD | NEW |