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 "effects/GrSingleTextureEffect.h" | 8 #include "effects/GrSingleTextureEffect.h" |
9 | 9 |
10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix&
m) | 10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
| 11 const SkMatrix& m, |
| 12 CoordsType coordsType) |
11 : fTextureAccess(texture) | 13 : fTextureAccess(texture) |
12 , fMatrix(m) { | 14 , fMatrix(m) |
13 this->addTextureAccess(&fTextureAccess); | 15 , fCoordsType(coordsType) { |
14 } | |
15 | |
16 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, const SkMatrix&
m, bool bilerp) | |
17 : fTextureAccess(texture, bilerp) | |
18 , fMatrix(m) { | |
19 this->addTextureAccess(&fTextureAccess); | 16 this->addTextureAccess(&fTextureAccess); |
20 } | 17 } |
21 | 18 |
22 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, | 19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
23 const SkMatrix& m, | 20 const SkMatrix& m, |
24 const GrTextureParams& params) | 21 bool bilerp, |
25 : fTextureAccess(texture, params) | 22 CoordsType coordsType) |
26 , fMatrix(m) { | 23 : fTextureAccess(texture, bilerp) |
| 24 , fMatrix(m) |
| 25 , fCoordsType(coordsType) { |
27 this->addTextureAccess(&fTextureAccess); | 26 this->addTextureAccess(&fTextureAccess); |
28 } | 27 } |
29 | 28 |
| 29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
| 30 const SkMatrix& m, |
| 31 const GrTextureParams& params, |
| 32 CoordsType coordsType) |
| 33 : fTextureAccess(texture, params) |
| 34 , fMatrix(m) |
| 35 , fCoordsType(coordsType) { |
| 36 this->addTextureAccess(&fTextureAccess); |
| 37 } |
| 38 |
30 GrSingleTextureEffect::~GrSingleTextureEffect() { | 39 GrSingleTextureEffect::~GrSingleTextureEffect() { |
31 } | 40 } |
OLD | NEW |