Bug 62707

Summary: [CMAKE] Remove platform/graphics/opengl/*OpenGL.cpp files in CMakeLists.txt
Product: WebKit Reporter: Hyowon Kim <hw1008.kim>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gyuyoung.kim, kenneth, leandro, lucas.de.marchi, paroga, rakuco, ryuan.choi, tonikitoo, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 62695, 62709    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Hyowon Kim
Reported 2011-06-15 01:43:03 PDT
Bug 62376 makes all ports use GraphicsContext3DOpenGL, Extensions3DOpenGL when enabling WebGL. However, some ports already have their own GC3D implementation. In QT and chromium, for example, GraphicsContext3D delegates to GraphicsContext3DInternal. So, I think it would be better to allow each port to decide whether or not to include files in platform/graphics/opengl.
Attachments
Patch (1.54 KB, patch)
2011-06-15 01:58 PDT, Hyowon Kim
no flags
Patch (1.60 KB, patch)
2011-06-15 02:38 PDT, Hyowon Kim
no flags
Patch (1.98 KB, patch)
2011-06-16 02:42 PDT, Hyowon Kim
no flags
Hyowon Kim
Comment 1 2011-06-15 01:58:49 PDT
Ryuan Choi
Comment 2 2011-06-15 02:23:32 PDT
View in context: https://bugs.webkit.org/attachment.cgi?id=97261&action=review > Source/WebCore/ChangeLog:8 > + [EFL] Make accelerated compositing build in Webkit-EFL > + https://bugs.webkit.org/show_bug.cgi?id=62361 > + > + Remove platform/graphics/opengl/*OpenGL.cpp files in CMakeLists.txt. Bug title looks wrong. Please add why you want to remove it in ChangeLog.
Hyowon Kim
Comment 3 2011-06-15 02:38:32 PDT
Hyowon Kim
Comment 4 2011-06-15 02:42:30 PDT
(In reply to comment #2) > View in context: https://bugs.webkit.org/attachment.cgi?id=97261&action=review > > Source/WebCore/ChangeLog:8 > > + [EFL] Make accelerated compositing build in Webkit-EFL > > + https://bugs.webkit.org/show_bug.cgi?id=62361 > > + > > + Remove platform/graphics/opengl/*OpenGL.cpp files in CMakeLists.txt. > Bug title looks wrong. > Please add why you want to remove it in ChangeLog. Sorry, I fixed it.
Gyuyoung Kim
Comment 5 2011-06-15 02:50:16 PDT
LGTM. lucas, how do you think about this ? Hyowon, If lucas agrees with your patch, It looks below files need to be added to both CMakeListEfl.txt and CMakeListWinCE.txt with ENABLE_WEBGL macro. platform/graphics/opengl/Extensions3DOpenGL.cpp platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
Ryuan Choi
Comment 6 2011-06-15 03:07:47 PDT
(In reply to comment #5) > LGTM. lucas, how do you think about this ? > > Hyowon, > > If lucas agrees with your patch, It looks below files need to be added to both CMakeListEfl.txt and CMakeListWinCE.txt with ENABLE_WEBGL macro. > > platform/graphics/opengl/Extensions3DOpenGL.cpp > platform/graphics/opengl/GraphicsContext3DOpenGL.cpp I think that WebKit/Efl is no needed if Bug 62709 (and others if required) landed. But I agree that we should check WinCE. I add patrick in CCs.
Hyowon Kim
Comment 7 2011-06-15 03:09:27 PDT
(In reply to comment #6) > (In reply to comment #5) > > LGTM. lucas, how do you think about this ? > > > > Hyowon, > > > > If lucas agrees with your patch, It looks below files need to be added to both CMakeListEfl.txt and CMakeListWinCE.txt with ENABLE_WEBGL macro. > > > > platform/graphics/opengl/Extensions3DOpenGL.cpp > > platform/graphics/opengl/GraphicsContext3DOpenGL.cpp > I think that WebKit/Efl is no needed if Bug 62709 (and others if required) landed. > But I agree that we should check WinCE. > I add patrick in CCs. To do initial build for WebGL on EFL port, we have to add two files - DrawingBufferEfl.cpp & GraphicsContext3DEfl.cpp. And as gyuyoung mentioned, ENABLE_WEBGL macro should be added in CMakeListEfl.txt. IF (ENABLE_WEBGL) LIST(APPEND WebCore_SOURCES platform/graphics/efl/DrawingBufferEfl.cpp platform/graphics/efl/GraphicsContext3DEfl.cpp ) ENDIF()
Patrick R. Gansterer
Comment 8 2011-06-15 04:24:33 PDT
Comment on attachment 97263 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=97263&action=review (In reply to comment #6) > But I agree that we should check WinCE. WinCE has no ENABLE_WEBGL support at the moment, so you can ignore WinCE without problems. > Source/WebCore/CMakeLists.txt:-2074 > - platform/graphics/opengl/GraphicsContext3DOpenGL.cpp We usually have a empty line between different folders (graphics, graphics/gpu, graphics/opengl). But that more a "problem" of the previous patch. :-(
Lucas De Marchi
Comment 9 2011-06-15 06:28:02 PDT
(In reply to comment #7) > To do initial build for WebGL on EFL port, we have to add two files - DrawingBufferEfl.cpp & GraphicsContext3DEfl.cpp. > And as gyuyoung mentioned, ENABLE_WEBGL macro should be added in CMakeListEfl.txt. > > IF (ENABLE_WEBGL) > LIST(APPEND WebCore_SOURCES > platform/graphics/efl/DrawingBufferEfl.cpp > platform/graphics/efl/GraphicsContext3DEfl.cpp > ) > ENDIF() No, you can ignore this part for now. Please, add this to CMakeListsEfl only when EFL has webgl support.
Lucas De Marchi
Comment 10 2011-06-15 06:28:58 PDT
(In reply to comment #0) > Bug 62376 makes all ports use GraphicsContext3DOpenGL, Extensions3DOpenGL when enabling WebGL. > However, some ports already have their own GC3D implementation. In QT and chromium, for example, GraphicsContext3D delegates to GraphicsContext3DInternal. So, I think it would be better to allow each port to decide whether or not to include files in platform/graphics/opengl. This explanation should appear in the ChangeLog. Otherwise looks good.
Hyowon Kim
Comment 11 2011-06-16 02:42:34 PDT
Hyowon Kim
Comment 12 2011-06-16 02:50:16 PDT
(In reply to comment #11) > Created an attachment (id=97426) [details] > Patch I updated this patch to reflect Patrick's comment about empty lines & Lucas's one about the changelog.
Leandro Pereira
Comment 13 2011-06-16 07:15:59 PDT
Comment on attachment 97426 [details] Patch OK.
Gyuyoung Kim
Comment 14 2011-06-21 19:16:22 PDT
LGTM.
Eric Seidel (no email)
Comment 15 2011-09-12 15:37:10 PDT
Comment on attachment 97426 [details] Patch rs=me.
WebKit Review Bot
Comment 16 2011-09-12 20:01:09 PDT
Comment on attachment 97426 [details] Patch Clearing flags on attachment: 97426 Committed r95001: <http://trac.webkit.org/changeset/95001>
WebKit Review Bot
Comment 17 2011-09-12 20:01:15 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.