OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrSimpleTextureEffect.h" | 8 #include "GrSimpleTextureEffect.h" |
9 #include "gl/GrGLEffect.h" | 9 #include "gl/GrGLEffect.h" |
10 #include "gl/GrGLEffectMatrix.h" | 10 #include "gl/GrGLEffectMatrix.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 const GrBackendEffectFactory& GrSimpleTextureEffect::getFactory() const { | 62 const GrBackendEffectFactory& GrSimpleTextureEffect::getFactory() const { |
63 return GrTBackendEffectFactory<GrSimpleTextureEffect>::getInstance(); | 63 return GrTBackendEffectFactory<GrSimpleTextureEffect>::getInstance(); |
64 } | 64 } |
65 | 65 |
66 /////////////////////////////////////////////////////////////////////////////// | 66 /////////////////////////////////////////////////////////////////////////////// |
67 | 67 |
68 GR_DEFINE_EFFECT_TEST(GrSimpleTextureEffect); | 68 GR_DEFINE_EFFECT_TEST(GrSimpleTextureEffect); |
69 | 69 |
70 GrEffectRef* GrSimpleTextureEffect::TestCreate(SkMWCRandom* random, | 70 GrEffectRef* GrSimpleTextureEffect::TestCreate(SkMWCRandom* random, |
71 GrContext* context, | 71 GrContext*, |
72 GrTexture* textures[]) { | 72 GrTexture* textures[]) { |
73 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : | 73 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : |
74 GrEffectUnitTest::kAlphaTextureIdx; | 74 GrEffectUnitTest::kAlphaTextureIdx; |
75 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random); | 75 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random); |
76 return GrSimpleTextureEffect::Create(textures[texIdx], matrix); | 76 return GrSimpleTextureEffect::Create(textures[texIdx], matrix); |
77 } | 77 } |
OLD | NEW |