Index: dm/DMQuiltTask.cpp |
diff --git a/dm/DMQuiltTask.cpp b/dm/DMQuiltTask.cpp |
index 44c4341a7d79de5475c92b7116fa0ef09d84b8da..2f56b4c1ba1fc8a7fd886787f2f91f578a8af481 100644 |
--- a/dm/DMQuiltTask.cpp |
+++ b/dm/DMQuiltTask.cpp |
@@ -4,7 +4,7 @@ |
#include "SkCommandLineFlags.h" |
#include "SkPicture.h" |
-#include "SkThreadPool.h" |
+#include "ThreadPool.h" |
DEFINE_bool(quilt, true, "If true, draw into a quilt of small tiles and compare."); |
DEFINE_int32(quiltTile, 16, "Dimension of (square) quilt tile."); |
@@ -23,7 +23,7 @@ static int tiles_needed(int fullDimension, int tileDimension) { |
return (fullDimension + tileDimension - 1) / tileDimension; |
} |
-class Tile : public SkRunnable { |
+class Tile : public Runnable { |
public: |
Tile(int x, int y, SkColorType colorType, |
const SkPicture& picture, SkCanvas* canvas, SkMutex* mutex) |
@@ -70,7 +70,7 @@ void QuiltTask::draw() { |
SkCanvas fullCanvas(full); |
SkMutex mutex; // Guards fullCanvas. |
- SkThreadPool pool(FLAGS_quiltThreaded ? SkThreadPool::kThreadPerCore : 0); |
+ ThreadPool pool(FLAGS_quiltThreaded ? ThreadPool::kThreadPerCore : 0); |
for (int y = 0; y < tiles_needed(full.height(), FLAGS_quiltTile); y++) { |
for (int x = 0; x < tiles_needed(full.width(), FLAGS_quiltTile); x++) { |