aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-16 15:41:40 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-16 15:41:40 +0000
commit022a3e1f3e2bbe76bf2cda6bf63b9d73b6f34c7d (patch)
tree742db8b3ebbb1f40866f1a23f389a0b684c26313
parent80e1459c32f5f3acbc688ae4f0e046aa283e8c3a (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
-rw-r--r--src/gpu/GrDefaultTextContext.cpp2
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()) {