aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrSingleTextureEffect.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-04 18:34:30 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-04 18:34:30 +0000
commit34cccde630fc618649b9737bee464203d042bfbb (patch)
treeeab2cbb6ebc20e68af3bcfe628fc37aa21e59d7a /src/gpu/effects/GrSingleTextureEffect.h
parent6eb549e8ca3d88d7536859fd5aa3343fc3011f2f (diff)
Allow GrEffects with multiple textures.
It will work as long as the total number of textures sis less than GrDrawState::kNumStages. That will be fixed in a follow up CL. Review URL: https://codereview.appspot.com/7040052 git-svn-id: http://skia.googlecode.com/svn/trunk@7023 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/effects/GrSingleTextureEffect.h')
-rw-r--r--src/gpu/effects/GrSingleTextureEffect.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gpu/effects/GrSingleTextureEffect.h b/src/gpu/effects/GrSingleTextureEffect.h
index 709d3dcd2b..a2f8bfff35 100644
--- a/src/gpu/effects/GrSingleTextureEffect.h
+++ b/src/gpu/effects/GrSingleTextureEffect.h
@@ -10,9 +10,9 @@
#include "GrEffect.h"
#include "SkMatrix.h"
-#include "GrTexture.h"
class GrGLSingleTextureEffect;
+class GrTexture;
/**
* An effect that draws a single texture with a texture matrix; commonly used as a base class. The
@@ -48,13 +48,6 @@ public:
return INHERITED::isEqual(effect) && fMatrix.cheapEqualTo(ste.getMatrix());
}
- static inline SkMatrix MakeDivByTextureWHMatrix(const GrTexture* texture) {
- GrAssert(NULL != texture);
- SkMatrix mat;
- mat.setIDiv(texture->width(), texture->height());
- return mat;
- }
-
private:
GR_DECLARE_EFFECT_TEST;