WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
60167
[Qt] [WebGL] implement Qt WebGL extensions
https://bugs.webkit.org/show_bug.cgi?id=60167
Summary
[Qt] [WebGL] implement Qt WebGL extensions
Igor Trindade Oliveira
Reported
2011-05-04 07:01:38 PDT
Qt implementation of Extensions3D is stub. Doing the following tests do not pass.
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/oes-standard-derivatives.html
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/oes-texture-float.html
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/oes-vertex-array-object.html
Attachments
Patch
(32.69 KB, patch)
2011-05-04 07:02 PDT
,
Igor Trindade Oliveira
no flags
Details
Formatted Diff
Diff
Patch
(
deleted
)
2011-05-04 10:38 PDT
,
Igor Trindade Oliveira
menard
: review-
menard
: commit-queue-
Details
Formatted Diff
Diff
Patch
(72.47 KB, patch)
2011-05-05 05:55 PDT
,
Igor Trindade Oliveira
no flags
Details
Formatted Diff
Diff
patch
(72.46 KB, patch)
2011-05-11 08:36 PDT
,
Igor Trindade Oliveira
no flags
Details
Formatted Diff
Diff
Patch
(72.87 KB, patch)
2011-06-02 06:18 PDT
,
Igor Trindade Oliveira
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Igor Trindade Oliveira
Comment 1
2011-05-04 07:02:11 PDT
Created
attachment 92234
[details]
Patch Working in progress patch
Igor Trindade Oliveira
Comment 2
2011-05-04 10:38:46 PDT
Created
attachment 92276
[details]
Patch Proposed patch
Alexis Menard (darktears)
Comment 3
2011-05-05 05:40:42 PDT
Comment on
attachment 92276
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=92276&action=review
> Source/WebCore/platform/graphics/qt/Extensions3DQt.h:28 >
Copyright is Google?
> Source/WebCore/platform/graphics/qt/GraphicsContext3DQt_p.h:1 > +#ifndef GraphicsContext3DQt_p_h
No copyright.
Igor Trindade Oliveira
Comment 4
2011-05-05 05:55:09 PDT
Created
attachment 92406
[details]
Patch Proposed Patch. Fix copyright issues.
Igor Trindade Oliveira
Comment 5
2011-05-11 08:36:11 PDT
Created
attachment 93121
[details]
patch Proposed Patch. Remove odd characters from html files.
Noam Rosenthal
Comment 6
2011-05-11 13:05:30 PDT
It still has some Google headers, is that correct? Did you write those tests, or did Google?
Igor Trindade Oliveira
Comment 7
2011-05-11 13:08:04 PDT
(In reply to
comment #6
)
> It still has some Google headers, is that correct? Did you write those tests, or did Google?
Was Google. these tests are from webgl conformance tests. In fact all the webgl tests in LayoutTests are from google webgl conformance tests.
Noam Rosenthal
Comment 8
2011-05-11 13:15:04 PDT
(In reply to
comment #5
)
> Created an attachment (id=93121) [details] > patch > > Proposed Patch. Remove odd characters from html files.
This looks good to me. However, I'm not a reviewer.
Benjamin Poulain
Comment 9
2011-05-22 08:23:48 PDT
Comment on
attachment 93121
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=93121&action=review
> Source/WebCore/platform/graphics/qt/Extensions3DQt.cpp:43 > + const QString extensions = QLatin1String(reinterpret_cast<const char *>(glGetString(GL_EXTENSIONS)));
glGetString() return 0 in case of error. I would add a test for that. Maybe just an assert if the error condition should never happen.
> Source/WebCore/platform/graphics/qt/Extensions3DQt.cpp:44 > + m_supportedExtensions = extensions.split(QLatin1String(" "));
QLatin1String->QLatin1Char(' '). I guess you could set SplitBehavior to be QString::SkipEmptyParts just in case.
Igor Trindade Oliveira
Comment 10
2011-06-02 06:18:13 PDT
Created
attachment 95756
[details]
Patch Updated patch.
Benjamin Poulain
Comment 11
2011-06-05 08:05:16 PDT
Comment on
attachment 95756
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95756&action=review
Small comments:
> Source/WebCore/platform/graphics/qt/Extensions3DQt.cpp:43 > + const QString extensions = QLatin1String(reinterpret_cast<const char *>(glGetString(GL_EXTENSIONS)));
Shouldn't you use a static_cast here? glGetString return a GLByte* so it should cast fine to char*.
> Source/WebCore/platform/graphics/qt/Extensions3DQt.cpp:44 > + ASSERT(extensions.isNull());
I don't get this assertion. I guess you haven't tried the code in debug? :)
> Source/WebCore/platform/graphics/qt/Extensions3DQt.cpp:46 > + m_supportedExtensions = extensions.split(QLatin1String(" "), QString::SkipEmptyParts);
QLatin1Char(' ')?
> Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp:-308 > -#if defined (QT_OPENGL_ES_2) > return true; > -#else > - return false; > -#endif
This change looks strange. What about stuff like precisions directives in the shader? That does not make GL 2 not GLES compliant?
Eric Seidel (no email)
Comment 12
2012-01-30 15:27:00 PST
Comment on
attachment 95756
[details]
Patch This seems like a trivial patch for someone familiar with Qt/WebGL to review. Please r- or r+ so we can answer this 8-month-old review request. :(
Igor Trindade Oliveira
Comment 13
2012-01-30 15:57:34 PST
Comment on
attachment 95756
[details]
Patch Remove flags, the patch is out dated.
Brent Fulgham
Comment 14
2014-01-09 20:52:46 PST
The QT port is no longer part of WebKit.
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