RESOLVED FIXED 164111
[WebGL2] Implement getBufferSubData()
https://bugs.webkit.org/show_bug.cgi?id=164111
Summary [WebGL2] Implement getBufferSubData()
Myles C. Maxfield
Reported 2016-10-27 23:54:27 PDT
[WebGL2] Implement getBufferSubData()
Attachments
Patch (9.58 KB, patch)
2016-10-28 00:00 PDT, Myles C. Maxfield
no flags
WIP (11.48 KB, patch)
2016-10-28 00:37 PDT, Myles C. Maxfield
no flags
Patch (157.61 KB, patch)
2016-10-28 17:15 PDT, Myles C. Maxfield
no flags
Patch (162.10 KB, patch)
2016-10-28 17:32 PDT, Myles C. Maxfield
no flags
Patch (162.09 KB, patch)
2016-10-28 22:34 PDT, Myles C. Maxfield
dino: review+
Patch for committing (161.75 KB, patch)
2016-11-03 16:14 PDT, Myles C. Maxfield
no flags
Patch for committing (161.60 KB, patch)
2016-11-03 16:34 PDT, Myles C. Maxfield
mmaxfield: commit-queue-
Patch for committing (161.68 KB, patch)
2016-11-03 17:25 PDT, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2016-10-28 00:00:28 PDT
WebKit Commit Bot
Comment 2 2016-10-28 00:02:37 PDT
Attachment 293119 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Myles C. Maxfield
Comment 3 2016-10-28 00:37:35 PDT
WebKit Commit Bot
Comment 4 2016-10-28 00:39:05 PDT
Attachment 293124 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:715: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:718: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 3 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Myles C. Maxfield
Comment 5 2016-10-28 17:15:00 PDT
WebKit Commit Bot
Comment 6 2016-10-28 17:17:12 PDT
Attachment 293251 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:715: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:718: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 2 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Myles C. Maxfield
Comment 7 2016-10-28 17:17:26 PDT
*** Bug 164024 has been marked as a duplicate of this bug. ***
Myles C. Maxfield
Comment 8 2016-10-28 17:32:09 PDT
WebKit Commit Bot
Comment 9 2016-10-28 17:34:36 PDT
Attachment 293256 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:715: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:718: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 10 2016-10-28 17:40:22 PDT
Comment on attachment 293256 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=293256&action=review > Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:576 > + return ::glMapBufferRange(target, offset, length, access); It looks like these need to be inside #if ENABLE(WEBGL2) or something. It doesn't exist in GLESv2 headers
Myles C. Maxfield
Comment 11 2016-10-28 22:34:53 PDT
WebKit Commit Bot
Comment 12 2016-10-28 22:37:01 PDT
Attachment 293277 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:715: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:718: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dean Jackson
Comment 13 2016-10-31 13:42:38 PDT
Comment on attachment 293277 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=293277&action=review > Source/WebCore/ChangeLog:12 > + The call exists in OpenGL 3.2 but not OpenGL ES 3. On OpenGL > + ES, we need to call glMapBufferRange() instead. > + > + OpenGL 3.2 also has glMapBufferRange, so perhaps this > + implementation should be used on both systems. I agree. > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:203 > + synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "getBufferSubData", "dstOffset is too high"); Rather than "too high" in all the error messages, I think we should be more explicit. e.g. dstOffset is larger than the length/size of the destination buffer. > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:232 > + synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "getBufferSubData", "Reading too far in the source array"); e.g. "Parameters would read outside the bounds of the source buffer." > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:237 > + synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "getBufferSubData", "WebGL buffer is too small"); e.g. "something more explicit here :)"
Myles C. Maxfield
Comment 14 2016-11-03 16:14:47 PDT
Created attachment 293816 [details] Patch for committing
Myles C. Maxfield
Comment 15 2016-11-03 16:34:34 PDT
Created attachment 293826 [details] Patch for committing
WebKit Commit Bot
Comment 16 2016-11-03 16:39:42 PDT
Attachment 293826 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:715: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:718: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Myles C. Maxfield
Comment 17 2016-11-03 17:25:24 PDT
Created attachment 293833 [details] Patch for committing
WebKit Commit Bot
Comment 18 2016-11-03 17:27:07 PDT
Attachment 293833 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:715: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/platform/graphics/GraphicsContext3D.h:718: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 2 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 19 2016-11-03 19:00:15 PDT
Comment on attachment 293833 [details] Patch for committing Clearing flags on attachment: 293833 Committed r208363: <http://trac.webkit.org/changeset/208363>
Note You need to log in before you can comment on or make changes to this bug.