From 022a3e1f3e2bbe76bf2cda6bf63b9d73b6f34c7d Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 16 Mar 2012 15:41:40 +0000 Subject: [PATCH] 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 --- src/gpu/GrDefaultTextContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrDefaultTextContext.cpp b/src/gpu/GrDefaultTextContext.cpp index bde06c6..93b7e2c 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()) { -- 2.7.4