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; |
240 | 241 |
241 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; | 242 PersistentWillBeMember<WebGLBuffer> m_boundCopyReadBuffer; |
242 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; | 243 PersistentWillBeMember<WebGLBuffer> m_boundCopyWriteBuffer; |
243 PersistentWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; | 244 PersistentWillBeMember<WebGLBuffer> m_boundPixelPackBuffer; |
244 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; | 245 PersistentWillBeMember<WebGLBuffer> m_boundPixelUnpackBuffer; |
245 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; | 246 PersistentWillBeMember<WebGLBuffer> m_boundTransformFeedbackBuffer; |
246 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; | 247 PersistentWillBeMember<WebGLBuffer> m_boundUniformBuffer; |
247 | 248 |
248 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedTran
sformFeedbackBuffers; | 249 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedTran
sformFeedbackBuffers; |
249 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedUnif
ormBuffers; | 250 PersistentHeapVectorWillBeHeapVector<Member<WebGLBuffer>> m_boundIndexedUnif
ormBuffers; |
250 size_t m_maxBoundUniformBufferIndex; | 251 size_t m_maxBoundUniformBufferIndex; |
251 | 252 |
252 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; | 253 PersistentWillBeMember<WebGLQuery> m_currentBooleanOcclusionQuery; |
253 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt
enQuery; | 254 PersistentWillBeMember<WebGLQuery> m_currentTransformFeedbackPrimitivesWritt
enQuery; |
254 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; | 255 PersistentHeapVectorWillBeHeapVector<Member<WebGLSampler>> m_samplerUnits; |
255 }; | 256 }; |
256 | 257 |
257 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, | 258 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, |
258 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, | 259 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, |
259 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; | 260 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2)
; |
260 | 261 |
261 } // namespace blink | 262 } // namespace blink |
262 | 263 |
263 #endif | 264 #endif |
OLD | NEW |