RESOLVED FIXED 105805
[EFL][WebGL] Add GLES2 support in GraphicsContext3DEfl.
https://bugs.webkit.org/show_bug.cgi?id=105805
Summary [EFL][WebGL] Add GLES2 support in GraphicsContext3DEfl.
Kalyan
Reported 2012-12-27 12:55:56 PST
Add OPENGL_ES_2 checks for relevant code in GraphicsContext3DPrivate, GraphicsContext3DEFl and GLPlatformContext classes.
Attachments
WIP (5.08 KB, patch)
2012-12-27 20:23 PST, Kalyan
no flags
patch (5.78 KB, patch)
2012-12-27 20:43 PST, Kalyan
noam: review-
noam: commit-queue-
patch (6.17 KB, patch)
2012-12-28 00:04 PST, Kalyan
no flags
Kalyan
Comment 1 2012-12-27 20:23:06 PST
Kalyan
Comment 2 2012-12-27 20:43:47 PST
Kalyan
Comment 3 2012-12-27 20:49:32 PST
(In reply to comment #0) > Add OPENGL_ES_2 checks for relevant code in GraphicsContext3DPrivate, GraphicsContext3DEFl and GLPlatformContext classes. I will open another bug for changes in GLPlatformContext
Noam Rosenthal
Comment 4 2012-12-27 21:59:55 PST
Comment on attachment 180840 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=180840&action=review > Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp:146 > - bool enableScissorTest = false; > - int width = m_context->m_currentWidth; > - int height = m_context->m_currentHeight; > - > - // We should copy the full buffer, and not respect the current scissor bounds. > - // FIXME: It would be more efficient to track the state of the scissor test. > - if (m_context->isEnabled(GraphicsContext3D::SCISSOR_TEST)) { > - enableScissorTest = true; > - m_context->disable(GraphicsContext3D::SCISSOR_TEST); > - } > - > +#if !USE(OPENGL_ES_2) > if (m_context->m_attrs.antialias) { > + bool enableScissorTest = false; This looks sensible, but is not described in the ChangeLog.
Kalyan
Comment 5 2012-12-28 00:01:27 PST
changed bug title.
Kalyan
Comment 6 2012-12-28 00:04:04 PST
Kalyan
Comment 7 2012-12-28 00:09:41 PST
(In reply to comment #4) > (From update of attachment 180840 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=180840&action=review > > > +#if !USE(OPENGL_ES_2) > > if (m_context->m_attrs.antialias) { > > + bool enableScissorTest = false; > > This looks sensible, but is not described in the ChangeLog. We could get rid of the ifdefs by using the extensions supported by GraphicsContext3D. The patch changes it so that GraphicsContext3DPrivate uses the framebufferblit extension supported by Extensions3D. Currently, we dont support antialiasing with GLES (i.e GraphicsContext3d::validateAttributes).
Kenneth Rohde Christiansen
Comment 8 2012-12-28 01:00:58 PST
Comment on attachment 180848 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=180848&action=review > Source/WebCore/ChangeLog:10 > + This is in preparation for adding GLES2 support. > + This patch adds OPENGL_ES_2 checks in GraphicsContext3DEFl. > + With this patch, GraphicsContext3DPrivate uses the FramebufferBlit extension supported by Extensions3D. pleae try to keep these lines a bit shorter... or at least the same length
WebKit Review Bot
Comment 9 2012-12-28 01:08:04 PST
Comment on attachment 180848 [details] patch Clearing flags on attachment: 180848 Committed r138526: <http://trac.webkit.org/changeset/138526>
WebKit Review Bot
Comment 10 2012-12-28 01:08:15 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.