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

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

Issue 2360353002: Remove obsolete getBufferSubData compatibility entry points. (Closed)
Patch Set: Preemptive rebase. Created 4 years, 2 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 #include <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 // Have to re-declare/re-define the following buffer{Sub}Data functions from base class. 33 // Have to re-declare/re-define the following buffer{Sub}Data functions from base class.
34 // This is because the above buffer{Sub}Data() hides the name from base clas s. 34 // This is because the above buffer{Sub}Data() hides the name from base clas s.
35 void bufferData(GLenum target, long long size, GLenum usage); 35 void bufferData(GLenum target, long long size, GLenum usage);
36 void bufferData(GLenum target, DOMArrayBuffer* data, GLenum usage); 36 void bufferData(GLenum target, DOMArrayBuffer* data, GLenum usage);
37 void bufferData(GLenum target, DOMArrayBufferView* data, GLenum usage); 37 void bufferData(GLenum target, DOMArrayBufferView* data, GLenum usage);
38 void bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data); 38 void bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data);
39 void bufferSubData(GLenum target, long long offset, const FlexibleArrayBuffe rView& data); 39 void bufferSubData(GLenum target, long long offset, const FlexibleArrayBuffe rView& data);
40 40
41 void copyBufferSubData(GLenum, GLenum, long long, long long, long long); 41 void copyBufferSubData(GLenum, GLenum, long long, long long, long long);
42 void getBufferSubData(GLenum, long long, DOMArrayBufferView*, GLuint, GLuint ); 42 void getBufferSubData(GLenum, long long, DOMArrayBufferView*, GLuint, GLuint );
43 // TODO(zmo): Obsolete, remove after WebGL2 conformance tests are updated.
44 void getBufferSubData(GLenum, long long, DOMArrayBuffer*);
45 43
46 /* Framebuffer objects */ 44 /* Framebuffer objects */
47 bool validateTexFuncLayer(const char*, GLenum texTarget, GLint layer); 45 bool validateTexFuncLayer(const char*, GLenum texTarget, GLint layer);
48 void blitFramebuffer(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); 46 void blitFramebuffer(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
49 void framebufferTextureLayer(GLenum, GLenum, WebGLTexture*, GLint, GLint); 47 void framebufferTextureLayer(GLenum, GLenum, WebGLTexture*, GLint, GLint);
50 ScriptValue getInternalformatParameter(ScriptState*, GLenum, GLenum, GLenum) ; 48 ScriptValue getInternalformatParameter(ScriptState*, GLenum, GLenum, GLenum) ;
51 void invalidateFramebuffer(GLenum, const Vector<GLenum>&); 49 void invalidateFramebuffer(GLenum, const Vector<GLenum>&);
52 void invalidateSubFramebuffer(GLenum, const Vector<GLenum>&, GLint, GLint, G Lsizei, GLsizei); 50 void invalidateSubFramebuffer(GLenum, const Vector<GLenum>&, GLint, GLint, G Lsizei, GLsizei);
53 void readBuffer(GLenum); 51 void readBuffer(GLenum);
54 52
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 GLint m_unpackSkipImages; 341 GLint m_unpackSkipImages;
344 }; 342 };
345 343
346 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context, 344 DEFINE_TYPE_CASTS(WebGL2RenderingContextBase, CanvasRenderingContext, context,
347 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2, 345 context->is3d() && WebGLRenderingContextBase::getWebGLVersion(context) >= 2,
348 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ; 346 context.is3d() && WebGLRenderingContextBase::getWebGLVersion(&context) >= 2) ;
349 347
350 } // namespace blink 348 } // namespace blink
351 349
352 #endif 350 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698