diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-16 15:41:40 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-16 15:41:40 +0000 |
commit | 022a3e1f3e2bbe76bf2cda6bf63b9d73b6f34c7d (patch) | |
tree | 742db8b3ebbb1f40866f1a23f389a0b684c26313 /src/gpu/GrDefaultTextContext.cpp | |
parent | 80e1459c32f5f3acbc688ae4f0e046aa283e8c3a (diff) |
Call reset() in text context rather than set to SkMatrix::I(). Perf improvement in bench.
git-svn-id: http://skia.googlecode.com/svn/trunk@3415 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDefaultTextContext.cpp')
-rw-r--r-- | src/gpu/GrDefaultTextContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrDefaultTextContext.cpp b/src/gpu/GrDefaultTextContext.cpp index bde06c6905..93b7e2cf95 100644 --- a/src/gpu/GrDefaultTextContext.cpp +++ b/src/gpu/GrDefaultTextContext.cpp @@ -81,7 +81,7 @@ void GrDefaultTextContext::init(GrContext* context, if (NULL != extMatrix) { fExtMatrix = *extMatrix; } else { - fExtMatrix = GrMatrix::I(); + fExtMatrix.reset(); } if (context->getClip().hasConservativeBounds()) { if (!fExtMatrix.isIdentity()) { |