Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h

Issue 1463503002: Fix TexStorage3D with compressed ETC2/EAC formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove duplicate code Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698