Create GLSLUniformHandler class for gpu backend
[platform/upstream/libSkiaSharp.git] / bench / BigPathBench.cpp
index c46296e..f39fd73 100644 (file)
@@ -8,11 +8,7 @@
 #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,
@@ -38,19 +34,19 @@ public:
     }
 
 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);