<?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>40085</bug_id>
          
          <creation_ts>2010-06-02 15:50:52 -0700</creation_ts>
          <short_desc>Enable WebGL on more platforms even if accelerated compositing is disabled</short_desc>
          <delta_ts>2010-06-02 17:16:41 -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>All</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>
          <dependson>39917</dependson>
          <blocked>40091</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Russell">kbr</reporter>
          <assigned_to name="Kenneth Russell">kbr</assigned_to>
          <cc>cmarrin</cc>
    
    <cc>dglazkov</cc>
    
    <cc>fishd</cc>
    
    <cc>oliver</cc>
    
    <cc>vangelis</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>233475</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-06-02 15:50:52 -0700</bug_when>
    <thetext>Some ports of WebKit may want to enable WebGL even if accelerated compositing is not enabled. The code in HTMLCanvasElement which gates the creation of the WebGL context based on the enabling of accelerated compositing should be made conditional.

The recent change to support the accelerated compositing flag in Chromium broke that port. The safest change is to ignore the accelerated compositing flag only on Chromium; other ports may opt in to this logic if they choose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233478</commentid>
    <comment_count>1</comment_count>
      <attachid>57710</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-06-02 16:04:46 -0700</bug_when>
    <thetext>Created attachment 57710
Patch

From the ChangeLog:

Conditionalize the code which prevents a WebGL rendering context from being created if accelerated compositing is disabled. Currently Chromium is the only port which will create a context if accelerated compositing is disabled; other ports may opt in to this code path if desired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233481</commentid>
    <comment_count>2</comment_count>
      <attachid>57710</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-06-02 16:08:39 -0700</bug_when>
    <thetext>Comment on attachment 57710
Patch

WebCore/html/HTMLCanvasElement.cpp:160
 +  #if !PLATFORM(CHROMIUM)
perhaps a more specific ENABLE(3D_CANVAS_REQUIRES_ACCELERATED_COMPOSITING) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233488</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-06-02 16:21:35 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 57710 [details])
&gt; WebCore/html/HTMLCanvasElement.cpp:160
&gt;  +  #if !PLATFORM(CHROMIUM)
&gt; perhaps a more specific ENABLE(3D_CANVAS_REQUIRES_ACCELERATED_COMPOSITING) ?

I would rather fix this with a small change now than plumb a new enable flag through the build system. WebGL is currently broken in Chromium and I want to fix that ASAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233499</commentid>
    <comment_count>4</comment_count>
      <attachid>57710</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2010-06-02 16:38:50 -0700</bug_when>
    <thetext>Comment on attachment 57710
Patch

OK, r=me since this fixes the bots, but we should avoid littering cross
platform code with PLATFORM(CHROMIUM).  What is the plan for eliminating
this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233502</commentid>
    <comment_count>5</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-06-02 16:46:37 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 57710 [details])
&gt; OK, r=me since this fixes the bots, but we should avoid littering cross
&gt; platform code with PLATFORM(CHROMIUM).  What is the plan for eliminating
&gt; this?

We can add a new enable flag. I know the test of the flag was originally added specifically for the Mac (Safari) port, but it seems that other ports like Qt are happy with the test of the accelerated compositing flag. When adding the new enable flag we&apos;ll need to be careful not to accidentally enable WebGL for ports which didn&apos;t expect it in certain situations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>233504</commentid>
    <comment_count>6</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2010-06-02 16:57:28 -0700</bug_when>
    <thetext>Committed r60582: &lt;http://trac.webkit.org/changeset/60582&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57710</attachid>
            <date>2010-06-02 16:04:46 -0700</date>
            <delta_ts>2010-06-02 16:38:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>create.patch</filename>
            <type>text/plain</type>
            <size>1842</size>
            <attacher name="Kenneth Russell">kbr</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA2MDU4MCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMjIgQEAKKzIwMTAtMDYtMDIgIEtlbm5ldGggUnVzc2VsbCAgPGtickBnb29nbGUu
Y29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEVu
YWJsZSBXZWJHTCBvbiBtb3JlIHBsYXRmb3Jtc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S0tIFdlYkNv
cmUvaHRtbC9IVE1MQ2FudmFzRWxlbWVudC5jcHAJKHJldmlzaW9uIDYwNTgwKQorKysgV2ViQ29y
ZS9odG1sL0hUTUxDYW52YXNFbGVtZW50LmNwcAkod29ya2luZyBjb3B5KQpAQCAtMTU2LDcgKzE1
NiwxMSBAQCBDYW52YXNSZW5kZXJpbmdDb250ZXh0KiBIVE1MQ2FudmFzRWxlbWVuCiAgICAgfQog
I2lmIEVOQUJMRSgzRF9DQU5WQVMpICAgIAogICAgIFNldHRpbmdzKiBzZXR0aW5ncyA9IGRvY3Vt
ZW50KCktPnNldHRpbmdzKCk7Ci0gICAgaWYgKHNldHRpbmdzICYmIHNldHRpbmdzLT53ZWJHTEVu
YWJsZWQoKSAmJiBzZXR0aW5ncy0+YWNjZWxlcmF0ZWRDb21wb3NpdGluZ0VuYWJsZWQoKSkgewor
ICAgIGlmIChzZXR0aW5ncyAmJiBzZXR0aW5ncy0+d2ViR0xFbmFibGVkKCkKKyNpZiAhUExBVEZP
Uk0oQ0hST01JVU0pCisgICAgICAgICYmIHNldHRpbmdzLT5hY2NlbGVyYXRlZENvbXBvc2l0aW5n
RW5hYmxlZCgpCisjZW5kaWYKKyAgICAgICAgKSB7CiAgICAgICAgIC8vIEFjY2VwdCB0aGUgbGVn
YWN5ICJ3ZWJraXQtM2QiIG5hbWUgYXMgd2VsbCBhcyB0aGUgcHJvdmlzaW9uYWwgImV4cGVyaW1l
bnRhbC13ZWJnbCIgbmFtZS4KICAgICAgICAgLy8gT25jZSByYXRpZmllZCwgd2Ugd2lsbCBhbHNv
IGFjY2VwdCAid2ViZ2wiIGFzIHRoZSBjb250ZXh0IG5hbWUuCiAgICAgICAgIGlmICgodHlwZSA9
PSAid2Via2l0LTNkIikgfHwK
</data>
<flag name="review"
          id="42352"
          type_id="1"
          status="+"
          setter="fishd"
    />
    <flag name="commit-queue"
          id="42353"
          type_id="3"
          status="-"
          setter="kbr"
    />
          </attachment>
      

    </bug>

</bugzilla>