#include "Benchmark.h"
#include "SkCanvas.h"
#include "SkPath.h"
-#include "SkString.h"
-
-static void make_path(SkPath& path) {
- #include "BigPathBench.inc"
-}
+#include "sk_tool_utils.h"
enum Align {
kLeft_Align,
}
protected:
- const char* onGetName() SK_OVERRIDE {
+ const char* onGetName() override {
return fName.c_str();
}
- SkIPoint onGetSize() SK_OVERRIDE {
+ SkIPoint onGetSize() override {
return SkIPoint::Make(640, 100);
}
- void onPreDraw() SK_OVERRIDE {
- make_path(fPath);
+ void onDelayedSetup() override {
+ sk_tool_utils::make_big_path(fPath);
}
- void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE {
+ void onDraw(int loops, SkCanvas* canvas) override {
SkPaint paint;
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kStroke_Style);