| 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 "core/html/canvas/WebGLExtension.h" | 8 #include "core/html/canvas/WebGLExtension.h" |
| 9 #include "core/html/canvas/WebGLRenderingContextBase.h" | 9 #include "core/html/canvas/WebGLRenderingContextBase.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 RefPtrWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; | 210 RefPtrWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; |
| 211 GLint m_max3DTextureSize; | 211 GLint m_max3DTextureSize; |
| 212 GLint m_max3DTextureLevel; | 212 GLint m_max3DTextureLevel; |
| 213 | 213 |
| 214 RefPtrWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; | 214 RefPtrWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; |
| 215 RefPtrWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; | 215 RefPtrWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; |
| 216 RefPtrWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; | 216 RefPtrWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; |
| 217 RefPtrWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; | 217 RefPtrWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; |
| 218 RefPtrWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; | 218 RefPtrWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; |
| 219 RefPtrWillBeMember<WebGLBuffer> m_boundUniformBuffer; | 219 RefPtrWillBeMember<WebGLBuffer> m_boundUniformBuffer; |
| 220 |
| 221 RefPtrWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; |
| 222 RefPtrWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWrittenQu
ery; |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 225 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 223 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 226 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 224 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 227 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 225 | 228 |
| 226 } // namespace blink | 229 } // namespace blink |
| 227 | 230 |
| 228 #endif | 231 #endif |
| OLD | NEW |