<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Move the redirected XComposite window to the web process"
   href="https://bugs.webkit.org/show_bug.cgi?id=160389#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Move the redirected XComposite window to the web process"
   href="https://bugs.webkit.org/show_bug.cgi?id=160389">bug 160389</a>
              from <span class="vcard"><a class="email" href="mailto:mcatanzaro&#64;igalia.com" title="Michael Catanzaro &lt;mcatanzaro&#64;igalia.com&gt;"> <span class="fn">Michael Catanzaro</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=284964&amp;action=diff" name="attach_284964" title="Patch">attachment 284964</a> <a href="attachment.cgi?id=284964&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=284964&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=284964&amp;action=review</a>

So it makes AC mode not suck? :)

This one really should be looked at by a graphics reviewer; if it gets stuck awaiting review, you can ping me after a few days.

<span class="quote">&gt; Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:66
&gt; +bool PlatformDisplayX11::supportsXComposite()</span >

Can you make it const, as it should be, if you make m_supportsXComposite mutable? Or does the call to XCompositeQueryExtension prevent that?

<span class="quote">&gt; Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:75
&gt; +bool PlatformDisplayX11::supportsXDamage(int&amp; damageEventBase)</span >

Can you make it const, as it should be, if you make m_damageEventBase mutable? Or does the call to XDamageQueryExtension prevent that?

<span class="quote">&gt; Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp:79
&gt; +        m_supportsXDamage = XDamageQueryExtension(m_display, &amp;eventBase, &amp;errorBase);</span >

EFL build is failing here:

lib/libwebcore_efl.a(lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/x11/PlatformDisplayX11.cpp.o):PlatformDisplayX11.cpp:function WebCore::PlatformDisplayX11::supportsXDamage(int&amp;): error: undefined reference to 'XDamageQueryExtension'
collect2: error: ld returned 1 exit status

We link with ${X11_Xdamage_LIB} in WebCore/PlatformGtk.cmake, but EFL does not; you'll need to add it to WebCore_LIBRARIES.

<span class="quote">&gt; Source/WebKit2/UIProcess/gtk/XDamageNotifier.cpp:75
&gt; +GdkFilterReturn XDamageNotifier::filterXDamageEvent(GdkXEvent* event, GdkEvent*, XDamageNotifier* notifier)</span >

Since it doesn't access any member variables, I would move it outside the class.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>