Bug 147695 - Fix possible EGL and GLX makeCurrent problem of GLPlatformContext and GLPlatformSurface
Summary: Fix possible EGL and GLX makeCurrent problem of GLPlatformContext and GLPlatf...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jinyoung Hur
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-05 14:52 PDT by Jinyoung Hur
Modified: 2015-08-17 08:36 PDT (History)
8 users (show)

See Also:


Attachments
Patch (11.51 KB, patch)
2015-08-05 15:14 PDT, Jinyoung Hur
no flags Details | Formatted Diff | Diff
Patch (12.23 KB, patch)
2015-08-06 09:39 PDT, Jinyoung Hur
no flags Details | Formatted Diff | Diff
Patch (12.15 KB, patch)
2015-08-06 10:17 PDT, Jinyoung Hur
no flags Details | Formatted Diff | Diff
Patch (12.20 KB, patch)
2015-08-07 07:23 PDT, Jinyoung Hur
no flags Details | Formatted Diff | Diff
Patch (12.24 KB, patch)
2015-08-17 04:03 PDT, Jinyoung Hur
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jinyoung Hur 2015-08-05 14:52:06 PDT
GLPLatformContext::makeCurrent is implemented to do no-op when it thinks there is no changes, which compares with a static storage variable, m_currentContext.
This can lead to not-working makeCurrent when other part of codes or third party library, e.g., Cairo-gl, directly change gl current context by calling something like eglMakeCurrent.
Comment 1 Jinyoung Hur 2015-08-05 15:14:09 PDT
Created attachment 258304 [details]
Patch
Comment 2 Gyuyoung Kim 2015-08-05 18:11:16 PDT
Comment on attachment 258304 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=258304&action=review

r- because of efl-ews alarm and missing patch description.

> Source/WebCore/ChangeLog:7
> +

Missing patch description. Please write patch description.
Comment 3 Jinyoung Hur 2015-08-06 09:39:39 PDT
Created attachment 258369 [details]
Patch
Comment 4 Jinyoung Hur 2015-08-06 10:17:57 PDT
Created attachment 258371 [details]
Patch
Comment 5 Gyuyoung Kim 2015-08-06 18:53:49 PDT
Comment on attachment 258371 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=258371&action=review

> Source/WebCore/ChangeLog:3
> +        [EFL] Fix possible EGL makeCurrent problem of GLPlatformContext and GLPlatformSurface

Remove [EFL] prefix. Because this patch modifies graphics and opengl. [EFL] prefix can make confusion to us.
Comment 6 Jinyoung Hur 2015-08-06 21:37:11 PDT
(In reply to comment #5)
> Comment on attachment 258371 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=258371&action=review
> 
> > Source/WebCore/ChangeLog:3
> > +        [EFL] Fix possible EGL makeCurrent problem of GLPlatformContext and GLPlatformSurface
> 
> Remove [EFL] prefix. Because this patch modifies graphics and opengl. [EFL]
> prefix can make confusion to us.
Comment 7 Jinyoung Hur 2015-08-06 21:37:35 PDT
(In reply to comment #5)
> Comment on attachment 258371 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=258371&action=review
> 
> > Source/WebCore/ChangeLog:3
> > +        [EFL] Fix possible EGL makeCurrent problem of GLPlatformContext and GLPlatformSurface
> 
> Remove [EFL] prefix. Because this patch modifies graphics and opengl. [EFL]
> prefix can make confusion to us.

done!
Comment 8 Carlos Garcia Campos 2015-08-06 23:26:44 PDT
Bug title is still confusing, it mentions EGL, but the patch also affects GLX
Comment 9 Jinyoung Hur 2015-08-06 23:37:24 PDT
(In reply to comment #8)
> Bug title is still confusing, it mentions EGL, but the patch also affects GLX

Thank you for reviewing. I've changed the bug title.
Comment 10 Jinyoung Hur 2015-08-07 07:23:42 PDT
Created attachment 258492 [details]
Patch
Comment 11 Jinyoung Hur 2015-08-07 07:25:25 PDT
ChangeLog is also corrected based on the reviews.
Comment 12 Gyuyoung Kim 2015-08-10 17:47:45 PDT
If there is comment no more until tomorrow, I would like to land this patch.
Comment 13 Gyuyoung Kim 2015-08-16 20:03:16 PDT
Comment on attachment 258492 [details]
Patch

It looks this files are only used by EFL and Win port. If there is any problem on win port after landing this patch, please let us know. rs=me.
Comment 14 WebKit Commit Bot 2015-08-17 00:47:42 PDT
Comment on attachment 258492 [details]
Patch

Rejecting attachment 258492 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
SystemEnvironment = YES

Build settings from command line:
    ARCHS = x86_64
    OBJROOT = /Volumes/Data/EWS/WebKit/WebKitBuild
    SHARED_PRECOMPS_DIR = /Volumes/Data/EWS/WebKit/WebKitBuild/PrecompiledHeaders
    SYMROOT = /Volumes/Data/EWS/WebKit/WebKitBuild

=== BUILD TARGET LayoutTestHelper OF PROJECT DumpRenderTree WITH CONFIGURATION Release ===

Check dependencies
DebugRelease.xcconfig line 23: Unable to find included file "../../../../../Internal/Configurations/HaveInternalSDK.xcconfig"

Full output: http://webkit-queues.webkit.org/results/67129
Comment 15 Jinyoung Hur 2015-08-17 04:03:23 PDT
Created attachment 259141 [details]
Patch
Comment 16 WebKit Commit Bot 2015-08-17 08:36:22 PDT
Comment on attachment 259141 [details]
Patch

Clearing flags on attachment: 259141

Committed r188522: <http://trac.webkit.org/changeset/188522>
Comment 17 WebKit Commit Bot 2015-08-17 08:36:32 PDT
All reviewed patches have been landed.  Closing bug.