commit | c26d94fd7dc0b00cd6d0e42d28285f4a38aff021 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Mar 25 18:19:00 2013 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Mar 25 18:19:00 2013 +0000 |
tree | 6f7d38b702fd174bf089aa6b0ea126e5bec4e071 | |
parent | 6864cb8a2e0ac2ec87b05b008670f52991e5c36c [diff] [blame] |
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@8369 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index df8ab8d..1e65a6f 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp
@@ -135,6 +135,7 @@ GrEffectRef* GrConfigConversionEffect::TestCreate(SkMWCRandom* random, GrContext*, + const GrDrawTargetCaps&, GrTexture* textures[]) { PMConversion pmConv = static_cast<PMConversion>(random->nextULessThan(kPMConversionCnt)); bool swapRB;