commit | cabd0ed14fe6c4679325259682f76f351c8c99cc | [log] [tgz] |
---|---|---|
author | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Apr 18 14:48:35 2013 +0000 |
committer | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Apr 18 14:48:35 2013 +0000 |
tree | eb322244be65a32e14ad934a5a85666693aa9181 | |
parent | f738cf0689bc3f823158e29d0ba9693d89f21c93 [diff] [blame] |
Reset shader in ovals GM Not resetting the shader for the paints produces interesting results on the following configs... Review URL: https://codereview.chromium.org/13947042/ git-svn-id: http://skia.googlecode.com/svn/trunk@8740 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/ovals.cpp b/gm/ovals.cpp index d0c2165..b5a12e7 100755 --- a/gm/ovals.cpp +++ b/gm/ovals.cpp
@@ -265,6 +265,9 @@ canvas->drawRect(oval, rectPaint); canvas->drawOval(oval, fPaints[i]); + + fPaints[i].setShader(NULL); + canvas->restore(); } }