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/GrGLShaderBuilder.h" |
10 #include "gl/GrGLSL.h" | 11 #include "gl/GrGLSL.h" |
11 #include "gl/GrGLTexture.h" | 12 #include "gl/GrGLTexture.h" |
12 #include "GrTBackendEffectFactory.h" | 13 #include "GrTBackendEffectFactory.h" |
13 #include "GrTexture.h" | 14 #include "GrTexture.h" |
14 | 15 |
15 class GrGLSimpleTextureEffect : public GrGLEffect { | 16 class GrGLSimpleTextureEffect : public GrGLEffect { |
16 public: | 17 public: |
17 GrGLSimpleTextureEffect(const GrBackendEffectFactory& factory, const GrDrawE
ffect&) | 18 GrGLSimpleTextureEffect(const GrBackendEffectFactory& factory, const GrDrawE
ffect&) |
18 : INHERITED (factory) { | 19 : INHERITED (factory) { |
19 } | 20 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 72 |
72 static const GrCoordSet kCoordSets[] = { | 73 static const GrCoordSet kCoordSets[] = { |
73 kLocal_GrCoordSet, | 74 kLocal_GrCoordSet, |
74 kPosition_GrCoordSet | 75 kPosition_GrCoordSet |
75 }; | 76 }; |
76 GrCoordSet coordSet = kCoordSets[random->nextULessThan(SK_ARRAY_COUNT(kCoord
Sets))]; | 77 GrCoordSet coordSet = kCoordSets[random->nextULessThan(SK_ARRAY_COUNT(kCoord
Sets))]; |
77 | 78 |
78 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random); | 79 const SkMatrix& matrix = GrEffectUnitTest::TestMatrix(random); |
79 return GrSimpleTextureEffect::Create(textures[texIdx], matrix, coordSet); | 80 return GrSimpleTextureEffect::Create(textures[texIdx], matrix, coordSet); |
80 } | 81 } |
OLD | NEW |