aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsThreadedCommon.h
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@google.com>2017-04-14 07:46:07 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-14 14:37:16 +0000
commit389c557338afd82be5d87735b5ec1cf57e85b26c (patch)
tree67587953698e32ce8082d3d812a964c4901bebcb /tests/PathOpsThreadedCommon.h
parent479366cd148136dd0e5657ffc5816ab30f18fa3c (diff)
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 <csmartdalton@google.com> Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'tests/PathOpsThreadedCommon.h')
-rw-r--r--tests/PathOpsThreadedCommon.h5
1 files changed, 3 insertions, 2 deletions
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 <string>
+
#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;