RESOLVED FIXED 147695
Fix possible EGL and GLX makeCurrent problem of GLPlatformContext and GLPlatformSurface
https://bugs.webkit.org/show_bug.cgi?id=147695
Summary Fix possible EGL and GLX makeCurrent problem of GLPlatformContext and GLPlatf...
Jinyoung Hur
Reported 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.
Attachments
Patch (11.51 KB, patch)
2015-08-05 15:14 PDT, Jinyoung Hur
no flags
Patch (12.23 KB, patch)
2015-08-06 09:39 PDT, Jinyoung Hur
no flags
Patch (12.15 KB, patch)
2015-08-06 10:17 PDT, Jinyoung Hur
no flags
Patch (12.20 KB, patch)
2015-08-07 07:23 PDT, Jinyoung Hur
no flags
Patch (12.24 KB, patch)
2015-08-17 04:03 PDT, Jinyoung Hur
no flags
Jinyoung Hur
Comment 1 2015-08-05 15:14:09 PDT
Gyuyoung Kim
Comment 2 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.
Jinyoung Hur
Comment 3 2015-08-06 09:39:39 PDT
Jinyoung Hur
Comment 4 2015-08-06 10:17:57 PDT
Gyuyoung Kim
Comment 5 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.
Jinyoung Hur
Comment 6 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.
Jinyoung Hur
Comment 7 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!
Carlos Garcia Campos
Comment 8 2015-08-06 23:26:44 PDT
Bug title is still confusing, it mentions EGL, but the patch also affects GLX
Jinyoung Hur
Comment 9 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.
Jinyoung Hur
Comment 10 2015-08-07 07:23:42 PDT
Jinyoung Hur
Comment 11 2015-08-07 07:25:25 PDT
ChangeLog is also corrected based on the reviews.
Gyuyoung Kim
Comment 12 2015-08-10 17:47:45 PDT
If there is comment no more until tomorrow, I would like to land this patch.
Gyuyoung Kim
Comment 13 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.
WebKit Commit Bot
Comment 14 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
Jinyoung Hur
Comment 15 2015-08-17 04:03:23 PDT
WebKit Commit Bot
Comment 16 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>
WebKit Commit Bot
Comment 17 2015-08-17 08:36:32 PDT
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.