| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 WebGLBuffer* validateBufferDataTarget(const char* functionName, GLenum targe
t) override; | 230 WebGLBuffer* validateBufferDataTarget(const char* functionName, GLenum targe
t) override; |
| 231 bool validateBufferDataUsage(const char* functionName, GLenum usage) overrid
e; | 231 bool validateBufferDataUsage(const char* functionName, GLenum usage) overrid
e; |
| 232 | 232 |
| 233 void removeBoundBuffer(WebGLBuffer*) override; | 233 void removeBoundBuffer(WebGLBuffer*) override; |
| 234 | 234 |
| 235 PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding; | 235 PersistentWillBeMember<WebGLFramebuffer> m_readFramebufferBinding; |
| 236 PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; | 236 PersistentWillBeMember<WebGLTransformFeedback> m_transformFeedbackBinding; |
| 237 GLint m_maxArrayTextureLayers; | 237 GLint m_maxArrayTextureLayers; |
| 238 | 238 |
| 239 std::set<GLenum> m_supportedInternalFormatsStorage; | 239 std::set<GLenum> m_supportedInternalFormatsStorage; |
| 240 std::set<GLenum> m_compressedTextureFormatsETC2EAC; | |
| 241 | 240 |
| 242 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; | 241 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; |
| 243 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; | 242 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; |
| 244 PersistentWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; | 243 PersistentWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; |
| 245 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; | 244 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; |
| 246 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; | 245 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; |
| 247 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; | 246 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; |
| 248 | 247 |
| 249 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedTran
sformFeedbackBuffers; | 248 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedTran
sformFeedbackBuffers; |
| 250 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedUnif
ormBuffers; | 249 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedUnif
ormBuffers; |
| 251 size_t m_maxBoundUniformBufferIndex; | 250 size_t m_maxBoundUniformBufferIndex; |
| 252 | 251 |
| 253 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; | 252 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; |
| 254 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt
enQuery; | 253 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt
enQuery; |
| 255 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; | 254 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; |
| 256 }; | 255 }; |
| 257 | 256 |
| 258 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 257 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
| 259 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 258 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
| 260 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 259 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
| 261 | 260 |
| 262 } // namespace blink | 261 } // namespace blink |
| 263 | 262 |
| 264 #endif | 263 #endif |
| OLD | NEW |