WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
100628
Remove an un-necessary connection to X-Server
https://bugs.webkit.org/show_bug.cgi?id=100628
Summary
Remove an un-necessary connection to X-Server
Kalyan
Reported
2012-10-28 22:40:42 PDT
In GraphicsSurfacePrivate constructor we make a connection to Xserver for gaining access to the screens in the display.Immediately(in constructor itself) we ask the display from offscreenwindow. Removing the former connection as we use the Display returned by offscreenwindow.
Attachments
proposed-patch
(1.77 KB, patch)
2012-10-28 22:42 PDT
,
Kalyan
no flags
Details
Formatted Diff
Diff
patch2
(1.80 KB, patch)
2012-10-30 13:39 PDT
,
Kalyan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kalyan
Comment 1
2012-10-28 22:42:26 PDT
Created
attachment 171159
[details]
proposed-patch Patch
Kalyan
Comment 2
2012-10-28 23:03:47 PDT
After the following changeset we always use the Display returned by offscreenwindow:
https://bugs.webkit.org/show_bug.cgi?id=100523
Kenneth Rohde Christiansen
Comment 3
2012-10-30 02:57:04 PDT
Comment on
attachment 171159
[details]
proposed-patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171159&action=review
> Source/WebCore/ChangeLog:8 > + for gaining access to the screens in the display.Immediately(in constructor itself) > + we ask the display from offscreenwindow.
Space before Immediately and before the (. Maybe it should be on a new line Try to make the changelogs easy readable
> Source/WebCore/platform/graphics/surfaces/qt/GraphicsSurfaceGLX.cpp:133 > , m_hasAlpha(false) > { > GLXContext shareContextObject = 0; > - m_display = XOpenDisplay(0); > + m_display = m_offScreenWindow.display();
sorry is m_offScreenWindow initialized here? it is not in the initializer list
Kalyan
Comment 4
2012-10-30 03:41:23 PDT
(In reply to
comment #3
)
> (From update of
attachment 171159
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=171159&action=review
> > > Source/WebCore/ChangeLog:8 > > + for gaining access to the screens in the display.Immediately(in constructor itself) > > + we ask the display from offscreenwindow. > > Space before Immediately and before the (. Maybe it should be on a new line > > Try to make the changelogs easy readable > > > Source/WebCore/platform/graphics/surfaces/qt/GraphicsSurfaceGLX.cpp:133 > > , m_hasAlpha(false) > > { > > GLXContext shareContextObject = 0; > > - m_display = XOpenDisplay(0); > > + m_display = m_offScreenWindow.display(); > > sorry is m_offScreenWindow initialized here? it is not in the initializer list
m_offScreenWindow is a member variable of GraphicsSurfacePrivate. It is created here and increments refcount (static member variable) in its constructor. It would create a window and open connection to display on calls to getXWindow () and display () respectively.
Kalyan
Comment 5
2012-10-30 13:39:56 PDT
Created
attachment 171513
[details]
patch2 Review changes
WebKit Review Bot
Comment 6
2012-11-01 04:22:21 PDT
Comment on
attachment 171513
[details]
patch2 Clearing flags on attachment: 171513 Committed
r133147
: <
http://trac.webkit.org/changeset/133147
>
WebKit Review Bot
Comment 7
2012-11-01 04:22:24 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.
Top of Page
Format For Printing
XML
Clone This Bug