<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>135126</bug_id>
          
          <creation_ts>2014-07-21 12:10:46 -0700</creation_ts>
          <short_desc>Add support for Wayland EGL to ANGLE&apos;s eglplatform.h</short_desc>
          <delta_ts>2014-07-22 11:34:59 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zan Dobersek">zan</reporter>
          <assigned_to name="Zan Dobersek">zan</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>mrobinson</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1023745</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-07-21 12:10:46 -0700</bug_when>
    <thetext>Add support for Wayland EGL to ANGLE&apos;s eglplatform.h</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023746</commentid>
    <comment_count>1</comment_count>
      <attachid>235237</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-07-21 12:13:08 -0700</bug_when>
    <thetext>Created attachment 235237
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023747</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-07-21 12:14:13 -0700</bug_when>
    <thetext>Note that there are important steps to take when updating ANGLE. See http://trac.webkit.org/wiki/UpdatingANGLE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023755</commentid>
    <comment_count>3</comment_count>
      <attachid>235237</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-07-21 12:28:04 -0700</bug_when>
    <thetext>Comment on attachment 235237
Patch

We shouldn&apos;t be using the eglplatform.h from the ANGLE library. Is this unavoidable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023759</commentid>
    <comment_count>4</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-07-21 12:54:53 -0700</bug_when>
    <thetext>As long as we&apos;re using ANGLE&apos;s headers, I believe it is.

Mesa&apos;s eglplatform.h is based off Khronos&apos; version as well, with extra entries for additionally supported platforms.

Future ANGLE updates would possibly remove the Wayland platform typedefs, but it shouldn&apos;t be hard to re-add them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1023769</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-07-21 13:23:17 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; As long as we&apos;re using ANGLE&apos;s headers, I believe it is.
&gt; 
&gt; Mesa&apos;s eglplatform.h is based off Khronos&apos; version as well, with extra entries for additionally supported platforms.
&gt; 
&gt; Future ANGLE updates would possibly remove the Wayland platform typedefs, but it shouldn&apos;t be hard to re-add them.

If possible we should use the version from the system, since that is the version of GL we will be using at runtime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1024009</commentid>
    <comment_count>6</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2014-07-22 11:34:59 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; As long as we&apos;re using ANGLE&apos;s headers, I believe it is.
&gt; &gt; 
&gt; &gt; Mesa&apos;s eglplatform.h is based off Khronos&apos; version as well, with extra entries for additionally supported platforms.
&gt; &gt; 
&gt; &gt; Future ANGLE updates would possibly remove the Wayland platform typedefs, but it shouldn&apos;t be hard to re-add them.
&gt; 
&gt; If possible we should use the version from the system, since that is the version of GL we will be using at runtime.

OK, agreed.

This patch was necessary due to Source/ThirdParty/ANGLE/include being listed in the WebCore_INCLUDE_DIRECTORIES, so we ended up using ANGLE&apos;s eglplatform.h at compile-time.

I&apos;ll change the build rules so the ANGLESupport library will still be built with that inclusion directory (which is necessary) while the WebCore library won&apos;t include it anymore, falling back to system&apos;s eglplatform.h.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>235237</attachid>
            <date>2014-07-21 12:13:08 -0700</date>
            <delta_ts>2014-07-21 16:59:36 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-135126-20140721121252.patch</filename>
            <type>text/plain</type>
            <size>1456</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9UaGlyZFBhcnR5L0FOR0xFL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBT
b3VyY2UvVGhpcmRQYXJ0eS9BTkdMRS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE3MTMxMCkKKysrIFNv
dXJjZS9UaGlyZFBhcnR5L0FOR0xFL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsx
LDE0IEBACisyMDE0LTA3LTIxICBaYW4gRG9iZXJzZWsgIDx6ZG9iZXJzZWtAaWdhbGlhLmNvbT4K
KworICAgICAgICBBZGQgc3VwcG9ydCBmb3IgV2F5bGFuZCBFR0wgdG8gQU5HTEUncyBlZ2xwbGF0
Z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vaWQgKkVHTE5hdGl2ZVdpbmRvd1R5cGU7CiB0eXBlZGVmIHZvaWQgKkVHTE5hdGl2ZVBp
eG1hcFR5cGU7CiAKKyNlbGlmIGRlZmluZWQoV0xfRUdMX1BMQVRGT1JNKQorCit0eXBlZGVmIHN0
cnVjdCB3bF9kaXNwbGF5ICAgICAqRUdMTmF0aXZlRGlzcGxheVR5cGU7Cit0eXBlZGVmIHN0cnVj
dCB3bF9lZ2xfcGl4bWFwICAqRUdMTmF0aXZlUGl4bWFwVHlwZTsKK3R5cGVkZWYgc3RydWN0IHds
X2VnbF93aW5kb3cgICpFR0xOYXRpdmVXaW5kb3dUeXBlOworCiAjZWxpZiBkZWZpbmVkKF9fdW5p
eF9fKQogCiAvKiBYMTEgKHRlbnRhdGl2ZSkgICovCg==
</data>
<flag name="review"
          id="259793"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>