Call reset() in text context rather than set to SkMatrix::I(). Perf improvement in...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 16 Mar 2012 15:41:40 +0000 (15:41 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 16 Mar 2012 15:41:40 +0000 (15:41 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@3415 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrDefaultTextContext.cpp

index bde06c6..93b7e2c 100644 (file)
@@ -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()) {