aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTexturePriv.h
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-02-22 11:10:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-22 11:10:33 -0800
commit01e583807618038a578a3b07cfad3101d24115c7 (patch)
tree6f9e7fb3787bdfc7df448607eab10c56699e8989 /src/gpu/GrTexturePriv.h
parentf47b9a3b88a037a481eb70f01a4cf9f5be34dc28 (diff)
Simplify calculations in AADistanceFieldPathBatch::writePathVertices.
Diffstat (limited to 'src/gpu/GrTexturePriv.h')
-rw-r--r--src/gpu/GrTexturePriv.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h
index da0558e574..165594c37a 100644
--- a/src/gpu/GrTexturePriv.h
+++ b/src/gpu/GrTexturePriv.h
@@ -41,17 +41,6 @@ public:
static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*);
- // TODO: Move this logic and the shift values out of here and to the callers.
- SkFixed normalizeFixedX(SkFixed x) const {
- SkASSERT(SkIsPow2(fTexture->fDesc.fWidth));
- return x >> fTexture->fShiftFixedX;
- }
-
- SkFixed normalizeFixedY(SkFixed y) const {
- SkASSERT(SkIsPow2(fTexture->fDesc.fHeight));
- return y >> fTexture->fShiftFixedY;
- }
-
private:
GrTexturePriv(GrTexture* texture) : fTexture(texture) { }
GrTexturePriv(const GrTexturePriv& that) : fTexture(that.fTexture) { }