<?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>37772</bug_id>
          
          <creation_ts>2010-04-18 07:12:41 -0700</creation_ts>
          <short_desc>WebGL rendering context does not activate unless accelerated compositing is enabled from settings.</short_desc>
          <delta_ts>2010-06-10 03:29:00 -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>WebGL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>0</everconfirmed>
          <reporter name="Jarkko Sakkinen">jarkko.j.sakkinen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>hausmann</cc>
    
    <cc>kbr</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213756</commentid>
    <comment_count>0</comment_count>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-04-18 07:12:41 -0700</bug_when>
    <thetext>When QtLauncher is used (for example) web pages that have WebGL content don&apos;t load unless accelerated compositing is enabled from QWebSettings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213757</commentid>
    <comment_count>1</comment_count>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-04-18 07:33:04 -0700</bug_when>
    <thetext>I have an idea about cause of this bug. Posting patch as soon as I have verified that it fixes the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214824</commentid>
    <comment_count>2</comment_count>
      <attachid>53861</attachid>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-04-20 12:00:12 -0700</bug_when>
    <thetext>Created attachment 53861
Allows creation of WebGL rendering context if webGLEnabled flag is true and does not also require acceleratedCompositing flag also to be true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>218567</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-28 12:40:19 -0700</bug_when>
    <thetext>It looks like the original change from bug https://bugs.webkit.org/show_bug.cgi?id=35759 was intentional...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>218603</commentid>
    <comment_count>4</comment_count>
      <attachid>53861</attachid>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2010-04-28 13:38:15 -0700</bug_when>
    <thetext>Comment on attachment 53861
Allows creation of WebGL rendering context if webGLEnabled flag is true and does not also require acceleratedCompositing flag also to be true.

&gt; diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
&gt; index 82feb24..22c8c71 100644
&gt; --- a/WebCore/ChangeLog
&gt; +++ b/WebCore/ChangeLog
&gt; @@ -1,3 +1,17 @@
&gt; +2010-04-20  Jarkko Sakkinen  &lt;jarkko.sakkinen@tieto.com&gt;
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +
&gt; +        [Qt] WebGL rendering context does not activate unless accelerated compositing is enabled from settings.
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=37772
&gt; +        
&gt; +        Allows WebGL rendering context creation is webGLEnabled flag
&gt; +        is true in the document settings and does not require 
&gt; +        also acceleratedCompositing flag also to be enabled.
&gt; +
&gt; +        * html/HTMLCanvasElement.cpp:
&gt; +        (WebCore::HTMLCanvasElement::getContext):
&gt; +
&gt;  2010-04-19  Kevin Ollivier  &lt;kevino@theolliviers.com&gt;
&gt;  
&gt;          Fix the Mac builders for now by restoring the keepAlive function.
&gt; diff --git a/WebCore/html/HTMLCanvasElement.cpp b/WebCore/html/HTMLCanvasElement.cpp
&gt; index ef85323..5367040 100644
&gt; --- a/WebCore/html/HTMLCanvasElement.cpp
&gt; +++ b/WebCore/html/HTMLCanvasElement.cpp
&gt; @@ -145,7 +145,7 @@ CanvasRenderingContext* HTMLCanvasElement::getContext(const String&amp; type, Canvas
&gt;      }
&gt;  #if ENABLE(3D_CANVAS)    
&gt;      Settings* settings = document()-&gt;settings();
&gt; -    if (settings &amp;&amp; settings-&gt;webGLEnabled() &amp;&amp; settings-&gt;acceleratedCompositingEnabled()) {
&gt; +    if (settings &amp;&amp; settings-&gt;webGLEnabled()) {
&gt;          // Accept the legacy &quot;webkit-3d&quot; name as well as the provisional &quot;experimental-webgl&quot; name.
&gt;          // Once ratified, we will also accept &quot;webgl&quot; as the context name.
&gt;          if ((type == &quot;webkit-3d&quot;) ||

The Mac implementation requires acceleratedCompositing for WebGL rendering. It&apos;s reasonable to remove the test for acceleratedCompositing here as long as, for the Mac platform, webGLEnabled has a test to prevent it from being true unless acceleratedCompositing is also true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223099</commentid>
    <comment_count>5</comment_count>
      <attachid>53861</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-05-09 15:28:11 -0700</bug_when>
    <thetext>Comment on attachment 53861
Allows creation of WebGL rendering context if webGLEnabled flag is true and does not also require acceleratedCompositing flag also to be true.

This change looks fine. I&apos;m surprised Chromium&apos;s WebGL support wasn&apos;t broken by the original patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234774</commentid>
    <comment_count>6</comment_count>
      <attachid>53861</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-07 04:10:46 -0700</bug_when>
    <thetext>Comment on attachment 53861
Allows creation of WebGL rendering context if webGLEnabled flag is true and does not also require acceleratedCompositing flag also to be true.

It does not appear that this patch takes Chris&apos; commen into account:

&quot;The Mac implementation requires acceleratedCompositing for WebGL rendering. It&apos;s reasonable to remove the test for acceleratedCompositing here as long as, for the Mac platform, webGLEnabled has a test to prevent it from being true unless acceleratedCompositing is also true.&quot;

So landing this fix would re-open Bug 35759</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>234952</commentid>
    <comment_count>7</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-06-07 11:31:11 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 53861 [details])
&gt; It does not appear that this patch takes Chris&apos; commen into account:
&gt; 
&gt; &quot;The Mac implementation requires acceleratedCompositing for WebGL rendering. It&apos;s reasonable to remove the test for acceleratedCompositing here as long as, for the Mac platform, webGLEnabled has a test to prevent it from being true unless acceleratedCompositing is also true.&quot;
&gt; 
&gt; So landing this fix would re-open Bug 35759

Note that in https://bugs.webkit.org/show_bug.cgi?id=40085 a patch was landed adding an #ifdef around the test of accelerated compositing being enabled. You could add another arm to the #if with something like

#if !PLATFORM(CHROMIUM) &amp;&amp; !PLATFORM(QT)

Or, if you&apos;re willing to do the build plumbing, you could completely generalize this into a new build flag per https://bugs.webkit.org/show_bug.cgi?id=40091 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235173</commentid>
    <comment_count>8</comment_count>
      <attachid>58122</attachid>
    <who name="Jarkko Sakkinen">jarkko.j.sakkinen</who>
    <bug_when>2010-06-08 01:07:29 -0700</bug_when>
    <thetext>Created attachment 58122
Based on suggestion by Kenneth Russel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236131</commentid>
    <comment_count>9</comment_count>
      <attachid>58122</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-06-09 19:29:11 -0700</bug_when>
    <thetext>Comment on attachment 58122
Based on suggestion by Kenneth Russel

Clearing flags on attachment: 58122

Committed r60930: &lt;http://trac.webkit.org/changeset/60930&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236132</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-06-09 19:29:19 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>236279</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-10 03:29:00 -0700</bug_when>
    <thetext>WebGL is not part of the qtwebkit-2.0 branch, so I&apos;m removing this bug from the list of bugs/patches to include in the release branch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>53861</attachid>
            <date>2010-04-20 12:00:12 -0700</date>
            <delta_ts>2010-06-08 01:07:29 -0700</delta_ts>
            <desc>Allows creation of WebGL rendering context if webGLEnabled flag is true and does not also require acceleratedCompositing flag also to be true.</desc>
            <filename>37772-1.diff</filename>
            <type>text/plain</type>
            <size>1585</size>
            <attacher name="Jarkko Sakkinen">jarkko.j.sakkinen</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ODJmZWIyNC4uMjJjOGM3MSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNyBAQAorMjAxMC0wNC0yMCAgSmFya2tvIFNha2tp
bmVuICA8amFya2tvLnNha2tpbmVuQHRpZXRvLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBbUXRdIFdlYkdMIHJlbmRlcmluZyBjb250ZXh0IGRv
ZXMgbm90IGFjdGl2YXRlIHVubGVzcyBhY2NlbGVyYXRlZCBjb21wb3NpdGluZyBpcyBlbmFibGVk
IGZyb20gc2V0dG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5BQkxFKDNEX0NBTlZBUykgICAgCiAgICAgU2V0dGluZ3MqIHNldHRp
bmdzID0gZG9jdW1lbnQoKS0+c2V0dGluZ3MoKTsKLSAgICBpZiAoc2V0dGluZ3MgJiYgc2V0dGlu
Z3MtPndlYkdMRW5hYmxlZCgpICYmIHNldHRpbmdzLT5hY2NlbGVyYXRlZENvbXBvc2l0aW5nRW5h
YmxlZCgpKSB7CisgICAgaWYgKHNldHRpbmdzICYmIHNldHRpbmdzLT53ZWJHTEVuYWJsZWQoKSkg
ewogICAgICAgICAvLyBBY2NlcHQgdGhlIGxlZ2FjeSAid2Via2l0LTNkIiBuYW1lIGFzIHdlbGwg
YXMgdGhlIHByb3Zpc2lvbmFsICJleHBlcmltZW50YWwtd2ViZ2wiIG5hbWUuCiAgICAgICAgIC8v
IE9uY2UgcmF0aWZpZWQsIHdlIHdpbGwgYWxzbyBhY2NlcHQgIndlYmdsIiBhcyB0aGUgY29udGV4
dCBuYW1lLgogICAgICAgICBpZiAoKHR5cGUgPT0gIndlYmtpdC0zZCIpIHx8Cg==
</data>
<flag name="review"
          id="37685"
          type_id="1"
          status="-"
          setter="hausmann"
    />
    <flag name="commit-queue"
          id="37686"
          type_id="3"
          status="-"
          setter="hausmann"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58122</attachid>
            <date>2010-06-08 01:07:29 -0700</date>
            <delta_ts>2010-06-09 19:29:11 -0700</delta_ts>
            <desc>Based on suggestion by Kenneth Russel</desc>
            <filename>37772-2.diff</filename>
            <type>text/plain</type>
            <size>1155</size>
            <attacher name="Jarkko Sakkinen">jarkko.j.sakkinen</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZmYzOGQzYS4uNDI1OTA3ZiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGI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HRpbmdzKiBzZXR0aW5ncyA9IGRvY3VtZW50KCktPnNldHRpbmdzKCk7CiAg
ICAgaWYgKHNldHRpbmdzICYmIHNldHRpbmdzLT53ZWJHTEVuYWJsZWQoKQotI2lmICFQTEFURk9S
TShDSFJPTUlVTSkKKyNpZiAhUExBVEZPUk0oQ0hST01JVU0pICYmICFQTEFURk9STShRVCkKICAg
ICAgICAgJiYgc2V0dGluZ3MtPmFjY2VsZXJhdGVkQ29tcG9zaXRpbmdFbmFibGVkKCkKICNlbmRp
ZgogICAgICAgICApIHsK
</data>

          </attachment>
      

    </bug>

</bugzilla>