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

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

Issue 1462143003: Revert of Fix TexStorage3D with compressed ETC2/EAC formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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;
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
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