diff options
author | 2014-08-29 15:05:53 -0700 | |
---|---|---|
committer | 2014-08-29 15:05:53 -0700 | |
commit | 6267f81f3d60ce144ab2b09ea369420984d5c9d9 (patch) | |
tree | 6735ee6442429168bd760eb3f12caa6131ab2bd7 /include/gpu/GrEffect.h | |
parent | 413191419dabdadf43625be2f6a5f0d4f2e3af4f (diff) |
Move MakeDivByTextureWHMatrix to GrCoordTransform
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/522873005
Diffstat (limited to 'include/gpu/GrEffect.h')
-rw-r--r-- | include/gpu/GrEffect.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/gpu/GrEffect.h b/include/gpu/GrEffect.h index 09d716f80a..ec1b0ba636 100644 --- a/include/gpu/GrEffect.h +++ b/include/gpu/GrEffect.h @@ -125,15 +125,6 @@ public: static const int kMaxVertexAttribs = 2; - /** Useful for effects that want to insert a texture matrix that is implied by the texture - dimensions */ - static inline SkMatrix MakeDivByTextureWHMatrix(const GrTexture* texture) { - SkASSERT(NULL != texture); - SkMatrix mat; - mat.setIDiv(texture->width(), texture->height()); - return mat; - } - void* operator new(size_t size); void operator delete(void* target); |