Bug 103710 - [EFL][WK2][AC] USE_GRAPHICS_SURFACE should be enabled only if Xcomposite and Xrender extensions are found
Summary: [EFL][WK2][AC] USE_GRAPHICS_SURFACE should be enabled only if Xcomposite and ...
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: 102991
  Show dependency treegraph
 
Reported: 2012-11-29 22:04 PST by Kalyan
Modified: 2012-12-04 01:13 PST (History)
9 users (show)

See Also:


Attachments
GraphicsSurfaceConfig (5.99 KB, patch)
2012-11-29 23:46 PST, Kalyan
no flags Details | Formatted Diff | Diff
GraphicsSurfaceConfig (5.99 KB, patch)
2012-11-30 00:07 PST, Kalyan
kenneth: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
GraphicsSurfaceConfig (5.95 KB, patch)
2012-12-03 22:55 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-11-29 22:04:11 PST
When using GLX back-end we are dependent on GLX support, Xcomposite and Xrender extensions.
In this case GraphicsSurface usage depends on Xcomposite and Xrender extensions. USE_GRAPHICS_SURFACE should be enabled only if Xcomposite and Xrender extensions are found.
Comment 1 Kalyan 2012-11-29 22:05:53 PST
(In reply to comment #0)
> When using GLX back-end we are dependent on GLX support, Xcomposite and Xrender extensions.
> In this case GraphicsSurface usage depends on Xcomposite and Xrender extensions. USE_GRAPHICS_SURFACE should be enabled only if Xcomposite and Xrender extensions are found.

This is in case of WebGL
Comment 2 Kalyan 2012-11-29 23:46:02 PST
Created attachment 176906 [details]
GraphicsSurfaceConfig
Comment 3 Kalyan 2012-11-30 00:01:05 PST
Comment on attachment 176906 [details]
GraphicsSurfaceConfig

removing review flag. Will update a new patch. In PlatformSurface the check should be done using USE rather than HAVE(GRAPHICS_SURFACE)
Comment 4 Kalyan 2012-11-30 00:07:45 PST
Created attachment 176908 [details]
GraphicsSurfaceConfig
Comment 5 Kenneth Rohde Christiansen 2012-11-30 00:52:14 PST
Comment on attachment 176908 [details]
GraphicsSurfaceConfig

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

> ChangeLog:4
> +        [EFL][WK2][AC] USE_GRAPHICS_SURFACE should be enabled only if Xcomposite and Xrender extensions are found.
> +        https://bugs.webkit.org/show_bug.cgi?id=103710.

I guess we need similar checks for EGL

> Source/cmake/OptionsEfl.cmake:196
> -  SET (ENABLE_WEBGL 1)
> -  ADD_DEFINITIONS(-DWTF_USE_GRAPHICS_SURFACE=1)
> +    SET(ENABLE_WEBGL 1)
> +    IF (USE_GRAPHICS_SURFACE)
> +        ADD_DEFINITIONS(-DWTF_USE_GRAPHICS_SURFACE=1)
> +    ENDIF()
>  ENDIF()
>  

isnt the identation wrong?
Comment 6 Kalyan 2012-11-30 07:44:10 PST
(In reply to comment #5)
> (From update of attachment 176908 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=176908&action=review
> 
> > ChangeLog:4
> > +        [EFL][WK2][AC] USE_GRAPHICS_SURFACE should be enabled only if Xcomposite and Xrender extensions are found.
> > +        https://bugs.webkit.org/show_bug.cgi?id=103710.
> 
> I guess we need similar checks for EGL

Yes, once we start adding support for EGL

> > Source/cmake/OptionsEfl.cmake:196
> > -  SET (ENABLE_WEBGL 1)
> > -  ADD_DEFINITIONS(-DWTF_USE_GRAPHICS_SURFACE=1)
> > +    SET(ENABLE_WEBGL 1)
> > +    IF (USE_GRAPHICS_SURFACE)
> > +        ADD_DEFINITIONS(-DWTF_USE_GRAPHICS_SURFACE=1)
> > +    ENDIF()
> >  ENDIF()
> >  
> 
> isnt the identation wrong?

w.r.t this file the indentation seems to be mixed (2 space and 4 space). But, here https://bugs.webkit.org/show_bug.cgi?id=102687#c9 rakuco mentioned that we should follow 4 space indentation style.
Comment 7 WebKit Review Bot 2012-11-30 08:13:46 PST
Comment on attachment 176908 [details]
GraphicsSurfaceConfig

Rejecting attachment 176908 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
ommit-queue/Source/WebKit/chromium/third_party/snappy/src --revision 63 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
49>At revision 63.

________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'

________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
Updating webkit projects from gyp files...

Full output: http://queues.webkit.org/results/15055456
Comment 8 Kalyan 2012-12-03 22:55:40 PST
Created attachment 177421 [details]
GraphicsSurfaceConfig
Comment 9 WebKit Review Bot 2012-12-04 01:12:54 PST
Comment on attachment 177421 [details]
GraphicsSurfaceConfig

Clearing flags on attachment: 177421

Committed r136487: <http://trac.webkit.org/changeset/136487>
Comment 10 WebKit Review Bot 2012-12-04 01:13:00 PST
All reviewed patches have been landed.  Closing bug.