<?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>64612</bug_id>
          
          <creation_ts>2011-07-15 11:53:22 -0700</creation_ts>
          <short_desc>[SKIA] Must make skia&apos;s GL context current before drawing in GraphicsContext::clearRect</short_desc>
          <delta_ts>2011-07-19 14:41:01 -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>Platform</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Salomon">bsalomon</reporter>
          <assigned_to name="Brian Salomon">bsalomon</assigned_to>
          <cc>jamesr</cc>
    
    <cc>senorblanco</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>437869</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-15 11:53:22 -0700</bug_when>
    <thetext>Must make skia&apos;s GL context current before drawing in GraphicsContext::clearRect</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437872</commentid>
    <comment_count>1</comment_count>
      <attachid>101017</attachid>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-15 11:54:46 -0700</bug_when>
    <thetext>Created attachment 101017
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437875</commentid>
    <comment_count>2</comment_count>
      <attachid>101019</attachid>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-15 11:59:53 -0700</bug_when>
    <thetext>Created attachment 101019
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437879</commentid>
    <comment_count>3</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-15 12:01:12 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Created an attachment (id=101019) [details]
&gt; Patch

Second patch fixes the Changelog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437884</commentid>
    <comment_count>4</comment_count>
      <attachid>101019</attachid>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-07-15 12:05:20 -0700</bug_when>
    <thetext>Comment on attachment 101019
Patch

Looks good.

compositing/shadows/shadow-drawing.html looks like it was passing after James&apos;s change.  I&apos;m guessing it&apos;s only exercised when run with --enable-accelerated-drawing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437887</commentid>
    <comment_count>5</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-15 12:08:29 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 101019 [details])
&gt; Looks good.
&gt; 
&gt; compositing/shadows/shadow-drawing.html looks like it was passing after James&apos;s change.  I&apos;m guessing it&apos;s only exercised when run with --enable-accelerated-drawing?

Oh, yes, that is true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437920</commentid>
    <comment_count>6</comment_count>
      <attachid>101019</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-07-15 12:44:36 -0700</bug_when>
    <thetext>Comment on attachment 101019
Patch

Clearing flags on attachment: 101019

Committed r91093: &lt;http://trac.webkit.org/changeset/91093&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>437921</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-07-15 12:44:40 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>439446</commentid>
    <comment_count>8</comment_count>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-07-19 14:19:58 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (From update of attachment 101019 [details] [details])
&gt; &gt; Looks good.
&gt; &gt; 
&gt; &gt; compositing/shadows/shadow-drawing.html looks like it was passing after James&apos;s change.  I&apos;m guessing it&apos;s only exercised when run with --enable-accelerated-drawing?
&gt; 
&gt; Oh, yes, that is true.

In the future, IWBN to have a test which exercises this case directly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>439453</commentid>
    <comment_count>9</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-19 14:24:57 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #5)
&gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; (From update of attachment 101019 [details] [details] [details])
&gt; &gt; &gt; Looks good.
&gt; &gt; &gt; 
&gt; &gt; &gt; compositing/shadows/shadow-drawing.html looks like it was passing after James&apos;s change.  I&apos;m guessing it&apos;s only exercised when run with --enable-accelerated-drawing?
&gt; &gt; 
&gt; &gt; Oh, yes, that is true.
&gt; 
&gt; In the future, IWBN to have a test which exercises this case directly.

There are a bunch of clearRect tests in canvas/philip/tests. I guess they didn&apos;t provoke the bug because we lucked into being in the right GL context. Maybe a test having a popup would force us to have two SGC3Ds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>439463</commentid>
    <comment_count>10</comment_count>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-07-19 14:37:12 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; (From update of attachment 101019 [details] [details] [details] [details])
&gt; &gt; &gt; &gt; Looks good.
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; compositing/shadows/shadow-drawing.html looks like it was passing after James&apos;s change.  I&apos;m guessing it&apos;s only exercised when run with --enable-accelerated-drawing?
&gt; &gt; &gt; 
&gt; &gt; &gt; Oh, yes, that is true.
&gt; &gt; 
&gt; &gt; In the future, IWBN to have a test which exercises this case directly.
&gt; 
&gt; There are a bunch of clearRect tests in canvas/philip/tests. I guess they didn&apos;t provoke the bug because we lucked into being in the right GL context. Maybe a test having a popup would force us to have two SGC3Ds?

Hmm, that could be tricky in DRT.  How about a test where the clear is the first call?  (And clears to something other than transparent black).  Would that leave the graphics context unset?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>439465</commentid>
    <comment_count>11</comment_count>
    <who name="Brian Salomon">bsalomon</who>
    <bug_when>2011-07-19 14:41:01 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; (In reply to comment #8)
&gt; &gt; &gt; (In reply to comment #5)
&gt; &gt; &gt; &gt; (In reply to comment #4)
&gt; &gt; &gt; &gt; &gt; (From update of attachment 101019 [details] [details] [details] [details] [details])
&gt; &gt; &gt; &gt; &gt; Looks good.
&gt; &gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; compositing/shadows/shadow-drawing.html looks like it was passing after James&apos;s change.  I&apos;m guessing it&apos;s only exercised when run with --enable-accelerated-drawing?
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Oh, yes, that is true.
&gt; &gt; &gt; 
&gt; &gt; &gt; In the future, IWBN to have a test which exercises this case directly.
&gt; &gt; 
&gt; &gt; There are a bunch of clearRect tests in canvas/philip/tests. I guess they didn&apos;t provoke the bug because we lucked into being in the right GL context. Maybe a test having a popup would force us to have two SGC3Ds?
&gt; 
&gt; Hmm, that could be tricky in DRT.  How about a test where the clear is the first call?  (And clears to something other than transparent black).  Would that leave the graphics context unset?

I don&apos;t think so because PlatformContextSkia::setSharedGraphicsContext() call makes it current. I&apos;m not really sure how it is getting unset in these failures, though.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101017</attachid>
            <date>2011-07-15 11:54:46 -0700</date>
            <delta_ts>2011-07-15 11:59:48 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-64612-20110715145445.patch</filename>
            <type>text/plain</type>
            <size>1368</size>
            <attacher name="Brian Salomon">bsalomon</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDkxMDg0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDctMTUgIEJyaWFuIFNh
bG9tb24gIDxic2Fsb21vbkBnb29nbGUuY29tPgorCisgICAgICAgIE11c3QgbWFrZSBza2lhJ3Mg
R0wgY29udGV4dCBjdXJyZW50IGJlZm9yZSBkcmF3aW5nIGluIEdyYXBoaWNzQ29udGV4dDo6Y2xl
YXJSZWN0CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD02
NDYxMgorCisgICAgICAgIFRlc3RlZCBieSBjb21wb3NpdGluZy9zaGFkb3dzL3NoYWRvdy1kcmF3
aW5nLmh0bWwKKworICAgICAgICBObyBuZXcgdGVzdHMuIChPT1BTISkKKworICAgICAgICAqIHBs
YXRmb3JtL2dyYXBoaWNzL3NraWEvR3JhcGhpY3NDb250ZXh0U2tpYS5jcHA6CisgICAgICAgIChX
ZWJDb3JlOjpHcmFwaGljc0NvbnRleHQ6OmNsZWFyUmVjdCk6CisKIDIwMTEtMDctMTUgIFByYXRp
ayBTb2xhbmtpICA8cHNvbGFua2lAYXBwbGUuY29tPgogCiAgICAgICAgIFBhcnQgb2YgaHR0cHM6
Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTYzNjc0CkluZGV4OiBTb3VyY2UvV2Vi
Q29yZS9wbGF0Zm9ybS9ncmFwaGljcy9za2lhL0dyYXBoaWNzQ29udGV4dFNraWEuY3BwCj09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT0KLS0tIFNvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL3NraWEvR3JhcGhpY3ND
b250ZXh0U2tpYS5jcHAJKHJldmlzaW9uIDkxMDgyKQorKysgU291cmNlL1dlYkNvcmUvcGxhdGZv
cm0vZ3JhcGhpY3Mvc2tpYS9HcmFwaGljc0NvbnRleHRTa2lhLmNwcAkod29ya2luZyBjb3B5KQpA
QCAtMzI2LDYgKzMyNiw4IEBAIHZvaWQgR3JhcGhpY3NDb250ZXh0OjpjbGVhclJlY3QoY29uc3Qg
RmwKICAgICBpZiAoIWlzUmVjdFNraWFTYWZlKGdldENUTSgpLCByKSkKICAgICAgICAgQ2xpcFJl
Y3RUb0NhbnZhcygqcGxhdGZvcm1Db250ZXh0KCktPmNhbnZhcygpLCByLCAmcik7CiAKKyAgICBw
bGF0Zm9ybUNvbnRleHQoKS0+bWFrZUdyQ29udGV4dEN1cnJlbnQoKTsKKwogICAgIFNrUGFpbnQg
cGFpbnQ7CiAgICAgcGxhdGZvcm1Db250ZXh0KCktPnNldHVwUGFpbnRGb3JGaWxsaW5nKCZwYWlu
dCk7CiAgICAgcGFpbnQuc2V0WGZlcm1vZGVNb2RlKFNrWGZlcm1vZGU6OmtDbGVhcl9Nb2RlKTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101019</attachid>
            <date>2011-07-15 11:59:53 -0700</date>
            <delta_ts>2011-07-15 12:44:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-64612-20110715145952.patch</filename>
            <type>text/plain</type>
            <size>1381</size>
            <attacher name="Brian Salomon">bsalomon</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDkxMDg0KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDctMTUgIEJyaWFuIFNh
bG9tb24gIDxic2Fsb21vbkBnb29nbGUuY29tPgorCisgICAgICAgIFtTS0lBXSBNdXN0IG1ha2Ug
c2tpYSdzIEdMIGNvbnRleHQgY3VycmVudCBiZWZvcmUgZHJhd2luZyBpbiBHcmFwaGljc0NvbnRl
eHQ6OmNsZWFyUmVjdAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9NjQ2MTIKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAg
ICAgICBUZXN0ZWQgYnkgY29tcG9zaXRpbmcvc2hhZG93cy9zaGFkb3ctZHJhd2luZy5odG1sCisK
KyAgICAgICAgKiBwbGF0Zm9ybS9ncmFwaGljcy9za2lhL0dyYXBoaWNzQ29udGV4dFNraWEuY3Bw
OgorICAgICAgICAoV2ViQ29yZTo6R3JhcGhpY3NDb250ZXh0OjpjbGVhclJlY3QpOgorCiAyMDEx
LTA3LTE1ICBQcmF0aWsgU29sYW5raSAgPHBzb2xhbmtpQGFwcGxlLmNvbT4KIAogICAgICAgICBQ
YXJ0IG9mIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD02MzY3NApJbmRl
eDogU291cmNlL1dlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvc2tpYS9HcmFwaGljc0NvbnRleHRT
a2lhLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2ViQ29yZS9wbGF0Zm9ybS9ncmFwaGljcy9z
a2lhL0dyYXBoaWNzQ29udGV4dFNraWEuY3BwCShyZXZpc2lvbiA5MTA4MikKKysrIFNvdXJjZS9X
ZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL3NraWEvR3JhcGhpY3NDb250ZXh0U2tpYS5jcHAJKHdv
cmtpbmcgY29weSkKQEAgLTMyNiw2ICszMjYsOCBAQCB2b2lkIEdyYXBoaWNzQ29udGV4dDo6Y2xl
YXJSZWN0KGNvbnN0IEZsCiAgICAgaWYgKCFpc1JlY3RTa2lhU2FmZShnZXRDVE0oKSwgcikpCiAg
ICAgICAgIENsaXBSZWN0VG9DYW52YXMoKnBsYXRmb3JtQ29udGV4dCgpLT5jYW52YXMoKSwgciwg
JnIpOwogCisgICAgcGxhdGZvcm1Db250ZXh0KCktPm1ha2VHckNvbnRleHRDdXJyZW50KCk7CisK
ICAgICBTa1BhaW50IHBhaW50OwogICAgIHBsYXRmb3JtQ29udGV4dCgpLT5zZXR1cFBhaW50Rm9y
RmlsbGluZygmcGFpbnQpOwogICAgIHBhaW50LnNldFhmZXJtb2RlTW9kZShTa1hmZXJtb2RlOjpr
Q2xlYXJfTW9kZSk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>