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

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

Issue 1684973002: Remove blink side texture status caching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web GLBuffer*) override; 225 bool validateAndUpdateBufferBindTarget(const char* functionName, GLenum, Web GLBuffer*) override;
226 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target , bool useSixEnumsForCubeMap) override; 226 WebGLTexture* validateTextureBinding(const char* functionName, GLenum target , bool useSixEnumsForCubeMap) override;
227 bool validateFramebufferTarget(GLenum target) override; 227 bool validateFramebufferTarget(GLenum target) override;
228 bool validateReadPixelsFormatAndType(GLenum format, GLenum type) override; 228 bool validateReadPixelsFormatAndType(GLenum format, GLenum type) override;
229 229
230 DOMArrayBufferView::ViewType readPixelsExpectedArrayBufferViewType(GLenum ty pe) override; 230 DOMArrayBufferView::ViewType readPixelsExpectedArrayBufferViewType(GLenum ty pe) override;
231 WebGLFramebuffer* getFramebufferBinding(GLenum target) override; 231 WebGLFramebuffer* getFramebufferBinding(GLenum target) override;
232 WebGLFramebuffer* getReadFramebufferBinding() override; 232 WebGLFramebuffer* getReadFramebufferBinding() override;
233 GLint getMaxTextureLevelForTarget(GLenum target) override; 233 GLint getMaxTextureLevelForTarget(GLenum target) override;
234 void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum internal format, GLsizei width, GLsizei height, const char* functionName) override; 234 void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum internal format, GLsizei width, GLsizei height, const char* functionName) override;
235 GLenum boundFramebufferColorFormat() override;
236 const WebGLSamplerState* getTextureUnitSamplerState(GLenum target, GLuint un it) const override; 235 const WebGLSamplerState* getTextureUnitSamplerState(GLenum target, GLuint un it) const override;
237 236
238 // Helper function to validate the target for compressedTex{Sub}Image3D. 237 // Helper function to validate the target for compressedTex{Sub}Image3D.
239 bool validateTexFunc3DTarget(const char* functionName, GLenum target); 238 bool validateTexFunc3DTarget(const char* functionName, GLenum target);
240 239
241 WebGLBuffer* validateBufferDataTarget(const char* functionName, GLenum targe t) override; 240 WebGLBuffer* validateBufferDataTarget(const char* functionName, GLenum targe t) override;
242 bool validateBufferDataUsage(const char* functionName, GLenum usage) overrid e; 241 bool validateBufferDataUsage(const char* functionName, GLenum usage) overrid e;
243 242
244 void removeBoundBuffer(WebGLBuffer*) override; 243 void removeBoundBuffer(WebGLBuffer*) override;
245 244
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 GLint m_unpackSkipImages; 282 GLint m_unpackSkipImages;
284 }; 283 };
285 284
286 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, 285 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,
287 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, 286 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2,
288 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ; 287 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ;
289 288
290 } // namespace blink 289 } // namespace blink
291 290
292 #endif 291 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698