summaryrefslogtreecommitdiff
path: root/effects/gradients/SkLinearGradient.cpp
diff options
context:
space:
mode:
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-25 18:19:00 +0000
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-25 18:19:00 +0000
commit516b4c312ba95ab60863c325482ee6c36618f706 (patch)
tree6003cb9d74b1e691d5bfa61843fcc24490d546ea /effects/gradients/SkLinearGradient.cpp
parent5d7697907f9ff73a88f47c70715564b23178524b (diff)
downloadsrc-516b4c312ba95ab60863c325482ee6c36618f706.tar.gz
Move nested class GrDrawTarget::Caps out as GrDrawTargetCaps.
Pass caps to GrEffect::TestCreate() functions so that they can return effects that will work with the capabilities. Review URL: https://codereview.chromium.org/12965018 git-svn-id: http://skia.googlecode.com/svn/trunk/src@8369 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'effects/gradients/SkLinearGradient.cpp')
-rw-r--r--effects/gradients/SkLinearGradient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/effects/gradients/SkLinearGradient.cpp b/effects/gradients/SkLinearGradient.cpp
index 76168a93..e0f216c2 100644
--- a/effects/gradients/SkLinearGradient.cpp
+++ b/effects/gradients/SkLinearGradient.cpp
@@ -513,6 +513,7 @@ GR_DEFINE_EFFECT_TEST(GrLinearGradient);
GrEffectRef* GrLinearGradient::TestCreate(SkMWCRandom* random,
GrContext* context,
+ const GrDrawTargetCaps&,
GrTexture**) {
SkPoint points[] = {{random->nextUScalar1(), random->nextUScalar1()},
{random->nextUScalar1(), random->nextUScalar1()}};