From 389c557338afd82be5d87735b5ec1cf57e85b26c Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Fri, 14 Apr 2017 07:46:07 -0400 Subject: fix pathops_unittest test strings Using std::string is tons faster than SkString; multiple callers to std::string don't run into thread contention but SkString does. R=csmartdalton@google.com Change-Id: I0357c6a9c73856bfffbb76e65c275acdfe7d8159 Reviewed-on: https://skia-review.googlesource.com/13471 Reviewed-by: Chris Dalton Commit-Queue: Cary Clark --- tests/PathOpsThreadedCommon.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/PathOpsThreadedCommon.h') diff --git a/tests/PathOpsThreadedCommon.h b/tests/PathOpsThreadedCommon.h index 1462aa2251..706da6b110 100644 --- a/tests/PathOpsThreadedCommon.h +++ b/tests/PathOpsThreadedCommon.h @@ -11,9 +11,10 @@ #include "SkGraphics.h" #include "SkPath.h" #include "SkPathOps.h" -#include "SkString.h" #include "SkTDArray.h" +#include + #define PATH_STR_SIZE 512 class PathOpsThreadedRunnable; @@ -27,7 +28,7 @@ struct PathOpsThreadState { unsigned char fB; unsigned char fC; unsigned char fD; - SkString fPathStr; + std::string fPathStr; const char* fKey; char fSerialNo[256]; skiatest::Reporter* fReporter; -- cgit v1.2.3