WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
40437
getParameter(COLOR_WRITEMASK) needs to return Array
https://bugs.webkit.org/show_bug.cgi?id=40437
Summary
getParameter(COLOR_WRITEMASK) needs to return Array
Kenneth Russell
Reported
2010-06-10 11:58:14 PDT
Per recent WebGL spec updates, getParameter(COLOR_WRITEMASK) now returns GLboolean[] with 4 elements rather than Uint8Array. This will require the custom JS bindings to return an Array for this query.
Attachments
patch
(10.13 KB, patch)
2010-06-22 18:23 PDT
,
Zhenyao Mo
no flags
Details
Formatted Diff
Diff
revised patch : responding to kbr's review
(10.42 KB, patch)
2010-06-23 17:15 PDT
,
Zhenyao Mo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zhenyao Mo
Comment 1
2010-06-22 18:23:26 PDT
Created
attachment 59454
[details]
patch
Kenneth Russell
Comment 2
2010-06-23 16:36:51 PDT
Comment on
attachment 59454
[details]
patch Generally looks good but there are a few things I'd like to see changed. WebCore/html/canvas/WebGLGetInfo.cpp:50 + : m_type(kTypeBoolArray) Let's generalize this a little and take (bool* value, int size). Should also be const bool*. WebCore/html/canvas/WebGLGetInfo.cpp:149 + const bool* WebGLGetInfo::getBoolArray() const Let's use Vector<bool> as the representation. This can then return const Vector<bool>&. WebCore/html/canvas/WebGLGetInfo.h:74 + WebGLGetInfo(bool* value); See above comment. WebCore/html/canvas/WebGLGetInfo.h:97 + const bool* getBoolArray() const; See above comment. WebCore/html/canvas/WebGLGetInfo.h:116 + bool m_boolArray[4]; Let's use Vector<bool> m_boolArray. WebCore/html/canvas/WebGLRenderingContext.cpp:3184 + unsigned char value[4] = {0}; The safety checks on pname and in particular the notImplemented() should be preserved. WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp:79 + for (int ii = 0; ii < 4; ++ii) See comments above on handling variable length arrays. WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:114 + v8::Local<v8::Array> array = v8::Array::New(4); See comments above on handling variable length arrays.
Zhenyao Mo
Comment 3
2010-06-23 17:15:43 PDT
Created
attachment 59584
[details]
revised patch : responding to kbr's review
Kenneth Russell
Comment 4
2010-06-23 17:27:35 PDT
Comment on
attachment 59584
[details]
revised patch : responding to kbr's review Looks good.
Dimitri Glazkov (Google)
Comment 5
2010-06-24 09:56:45 PDT
Comment on
attachment 59584
[details]
revised patch : responding to kbr's review ok.
WebKit Commit Bot
Comment 6
2010-06-25 15:47:20 PDT
Comment on
attachment 59584
[details]
revised patch : responding to kbr's review Clearing flags on attachment: 59584 Committed
r61910
: <
http://trac.webkit.org/changeset/61910
>
WebKit Commit Bot
Comment 7
2010-06-25 15:47:24 PDT
All reviewed patches have been landed. Closing bug.
Eric Seidel (no email)
Comment 8
2010-06-25 16:14:18 PDT
Committed
r61913
: <
http://trac.webkit.org/changeset/61913
>
Eric Seidel (no email)
Comment 9
2010-06-25 16:15:06 PDT
Sorry. git confused the ChagneLogs. :(
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug