[Webkit-unassigned] [Bug 59064] [GTK] Support EGL backend for WebGL
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 14 19:09:22 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=59064
--- Comment #6 from ChangSeok Oh <kevin.cs.oh at gmail.com> 2011-07-14 19:09:21 PST ---
(In reply to comment #5)
> (From update of attachment 100769 [details])
> This should be possible without copying all the code in GraphicsContext3DOpenGL.cpp, GraphicsContext3DInternal.cpp, and GraphicsContext3DGtk.cpp. Most of looks very similar.
You're right. They're very similar but a little different actually.
Newly added GraphicsContext3DInternal.cpp is implemented based on EGL(NOT GLX), so we can get eglContext and eglSurface.
GrahpicsContext3DGtk.cpp is in same situation like GraphicsContext3DInternal.cpp. Newly added GraphicsContext3DGtk.cpp is implemented base on OpenGLES not OpenGL. Some GL APIs need to change to fit GLES.
Each APIs of GraphicsContext3DOpenGL.cpp include extra code to convert OpenGL based parameter into OpenGLES. It means these extra codes are useless when we choose elg/opengles for gl-backend.
Why I seperate implementations for WebGL-APIs from original file is that I've thought it looks more clear and easy to understand. Otherwise, many build flags like #if USE(EGL) may be needed to distinguish between GL-base implemetation and GLES-base implementation throughout the each files. Do you think this way is better? I don't mind whatever ways.
Thanks for comment. :)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list