| Index: src/gpu/effects/GrTextureDomain.h
|
| diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h
|
| index 80a617ef722eff937f9eb1ef381b97b83768605b..7e270f821855457c841eb41e6459fa9cd8088e39 100644
|
| --- a/src/gpu/effects/GrTextureDomain.h
|
| +++ b/src/gpu/effects/GrTextureDomain.h
|
| @@ -23,11 +23,18 @@ struct SkRect;
|
| class GrTextureDomain {
|
| public:
|
| enum Mode {
|
| - kIgnore_Mode, // Ignore the texture domain rectangle.
|
| - kClamp_Mode, // Clamp texture coords to the domain rectangle.
|
| - kDecal_Mode, // Treat the area outside the domain rectangle as fully transparent.
|
| -
|
| - kLastMode = kDecal_Mode
|
| + // Ignore the texture domain rectangle.
|
| + kIgnore_Mode,
|
| + // Clamp texture coords to the domain rectangle.
|
| + kClamp_Mode,
|
| + // Treat the area outside the domain rectangle as fully transparent.
|
| + kDecal_Mode,
|
| + // Wrap texture coordinates. NOTE: filtering may not work as expected because Bilerp will
|
| + // read texels outside of the domain. We could perform additional texture reads and filter
|
| + // in the shader, but are not currently doing this for performance reasons
|
| + kRepeat_Mode,
|
| +
|
| + kLastMode = kRepeat_Mode
|
| };
|
| static const int kModeCount = kLastMode + 1;
|
|
|
|
|