Changeset 223573 in webkit
- Timestamp:
- Oct 17, 2017 1:35:22 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r223569 r223573 1 2017-10-17 Ms2ger <Ms2ger@igalia.com> 2 3 Create bindings for WebGL2's versions of texSubImage2D. 4 https://bugs.webkit.org/show_bug.cgi?id=178382 5 6 Reviewed by Ryosuke Niwa. 7 8 Create bindings for WebGL2's versions of texSubImage2D. 9 10 No new tests: not much point in adding tests now; this method doesn't 11 do anything anyway. 12 13 * html/canvas/WebGL2RenderingContext.cpp: 14 (WebCore::WebGL2RenderingContext::texSubImage2D): 15 * html/canvas/WebGL2RenderingContext.h: 16 * html/canvas/WebGL2RenderingContext.idl: 17 * html/canvas/WebGLRenderingContext.idl: 18 * html/canvas/WebGLRenderingContextBase.idl: 19 1 20 2017-10-17 Zalan Bujtas <zalan@apple.com> 2 21 -
trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
r223501 r223573 505 505 506 506 void WebGL2RenderingContext::texImage3D(GC3Denum, GC3Dint, GC3Dint, GC3Dsizei, GC3Dsizei, GC3Dsizei, GC3Dint, GC3Denum, GC3Denum, RefPtr<ArrayBufferView>&&, GC3Duint) 507 { 508 } 509 510 void WebGL2RenderingContext::texSubImage2D(GC3Denum, GC3Dint, GC3Dint, GC3Dint, GC3Dsizei, GC3Dsizei, GC3Denum, GC3Denum, GC3Dint64) 511 { 512 } 513 514 void WebGL2RenderingContext::texSubImage2D(GC3Denum, GC3Dint, GC3Dint, GC3Dint, GC3Dsizei, GC3Dsizei, GC3Denum, GC3Denum, TexImageSource&&) 515 { 516 } 517 518 void WebGL2RenderingContext::texSubImage2D(GC3Denum, GC3Dint, GC3Dint, GC3Dint, GC3Dsizei, GC3Dsizei, GC3Denum, GC3Denum, RefPtr<ArrayBufferView>&&, GC3Duint) 507 519 { 508 520 } -
trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.h
r223501 r223573 77 77 void texImage3D(GC3Denum target, GC3Dint level, GC3Dint internalformat, GC3Dsizei width, GC3Dsizei height, GC3Dsizei depth, GC3Dint border, GC3Denum format, GC3Denum type, RefPtr<ArrayBufferView>&& srcData, GC3Duint srcOffset); 78 78 79 using WebGLRenderingContextBase::texSubImage2D; 80 void texSubImage2D(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, GC3Dint64 pboOffset); 81 void texSubImage2D(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, TexImageSource&&); 82 void texSubImage2D(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, RefPtr<ArrayBufferView>&& srcData, GC3Duint srcOffset); 83 79 84 void texSubImage3D(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dint zoffset, GC3Dsizei width, GC3Dsizei height, GC3Dsizei depth, GC3Denum format, GC3Denum type, RefPtr<ArrayBufferView>&& pixels); 80 85 using TexImageSource = WTF::Variant<RefPtr<ImageData>, RefPtr<HTMLImageElement>, RefPtr<HTMLCanvasElement>, RefPtr<HTMLVideoElement>>; -
trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.idl
r223501 r223573 369 369 [MayThrowException] void texImage2D(GLenum target, GLint level, GLenum internalformat, GLenum format, GLenum type, TexImageSource? source); 370 370 371 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView? pixels); 372 [MayThrowException] void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLenum format, GLenum type, TexImageSource? source); 373 371 374 // WebGL2 entrypoints: 372 375 void texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, GLintptr pboOffset); … … 378 381 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, ArrayBufferView? pixels); 379 382 void texImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, ArrayBufferView srcData, GLuint srcOffset); 383 384 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr pboOffset); 385 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, TexImageSource source); 386 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView srcData, GLuint srcOffset); 380 387 381 388 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, ArrayBufferView? pixels); -
trunk/Source/WebCore/html/canvas/WebGLRenderingContext.idl
r222985 r223573 49 49 [MayThrowException] void texImage2D(GLenum target, GLint level, GLenum internalformat, GLenum format, GLenum type, TexImageSource? source); 50 50 51 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView? pixels); 52 [MayThrowException] void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLenum format, GLenum type, TexImageSource? source); 53 51 54 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, ArrayBufferView data); 52 55 }; -
trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.idl
r222985 r223573 623 623 void texParameteri(GLenum target, GLenum pname, GLint param); 624 624 625 // Supported forms:626 void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView? pixels);627 [MayThrowException] void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLenum format, GLenum type, TexImageSource? source);628 629 625 void uniform1f(WebGLUniformLocation? location, GLfloat x); 630 626 void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y);
Note: See TracChangeset
for help on using the changeset viewer.