Bug 105805 - [EFL][WebGL] Add GLES2 support in GraphicsContext3DEfl.
Summary: [EFL][WebGL] Add GLES2 support in GraphicsContext3DEfl.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Kalyan
URL:
Keywords:
Depends on:
Blocks: 105659
  Show dependency treegraph
 
Reported: 2012-12-27 12:55 PST by Kalyan
Modified: 2012-12-28 01:08 PST (History)
5 users (show)

See Also:


Attachments
WIP (5.08 KB, patch)
2012-12-27 20:23 PST, Kalyan
no flags Details | Formatted Diff | Diff
patch (5.78 KB, patch)
2012-12-27 20:43 PST, Kalyan
noam: review-
noam: commit-queue-
Details | Formatted Diff | Diff
patch (6.17 KB, patch)
2012-12-28 00:04 PST, Kalyan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kalyan 2012-12-27 12:55:56 PST
Add OPENGL_ES_2 checks for relevant code in GraphicsContext3DPrivate, GraphicsContext3DEFl and GLPlatformContext classes.
Comment 1 Kalyan 2012-12-27 20:23:06 PST
Created attachment 180838 [details]
WIP
Comment 2 Kalyan 2012-12-27 20:43:47 PST
Created attachment 180840 [details]
patch
Comment 3 Kalyan 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
Comment 4 Noam Rosenthal 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.
Comment 5 Kalyan 2012-12-28 00:01:27 PST
changed bug title.
Comment 6 Kalyan 2012-12-28 00:04:04 PST
Created attachment 180848 [details]
patch
Comment 7 Kalyan 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).
Comment 8 Kenneth Rohde Christiansen 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
Comment 9 WebKit Review Bot 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>
Comment 10 WebKit Review Bot 2012-12-28 01:08:15 PST
All reviewed patches have been landed.  Closing bug.