diff options
author | 2011-08-24 15:38:46 +0000 | |
---|---|---|
committer | 2011-08-24 15:38:46 +0000 | |
commit | 2e68478d8654c8a4048b45ad16ac039dadb25c33 (patch) | |
tree | 69e7f761c6e7dc7c58d66bdbfbe499d3385be7e7 /include/core/SkScalerContext.h | |
parent | b6ddf7a0826b1c31a544ffaa79d5803f14b59c7c (diff) |
move SkComputeAxisAlignmentForHText(const SkMatrix& matrix) out of inline,
since that isn't really necessary, and it is generating a warning/error for
some builds ('defined but not used')
git-svn-id: http://skia.googlecode.com/svn/trunk@2169 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkScalerContext.h')
-rw-r--r-- | include/core/SkScalerContext.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/core/SkScalerContext.h b/include/core/SkScalerContext.h index e2ce537de1..b321289049 100644 --- a/include/core/SkScalerContext.h +++ b/include/core/SkScalerContext.h @@ -307,17 +307,7 @@ enum SkAxisAlignment { * * As an example, the identity matrix will return kX_SkAxisAlignment */ -static SkAxisAlignment SkComputeAxisAlignmentForHText(const SkMatrix& matrix) { - SkASSERT(!matrix.hasPerspective()); - - if (0 == matrix[SkMatrix::kMSkewY]) { - return kX_SkAxisAlignment; - } - if (0 == matrix[SkMatrix::kMScaleX]) { - return kY_SkAxisAlignment; - } - return kNone_SkAxisAlignment; -} +SkAxisAlignment SkComputeAxisAlignmentForHText(const SkMatrix& matrix); #endif |