Index: tools/CopyTilesRenderer.cpp |
diff --git a/tools/CopyTilesRenderer.cpp b/tools/CopyTilesRenderer.cpp |
index 509dd0e5953f957768a88f18ce1c83850549ef83..30a3256d63c2aa9d3d7e63c1663f3e64ae584b6a 100644 |
--- a/tools/CopyTilesRenderer.cpp |
+++ b/tools/CopyTilesRenderer.cpp |
@@ -16,10 +16,16 @@ |
#include "SkString.h" |
namespace sk_tools { |
+#if SK_SUPPORT_GPU |
+ CopyTilesRenderer::CopyTilesRenderer(const GrContext::Options& opts, int x, int y) |
+ : INHERITED(opts) |
+ , fXTilesPerLargeTile(x) |
+ , fYTilesPerLargeTile(y) { } |
+#else |
CopyTilesRenderer::CopyTilesRenderer(int x, int y) |
: fXTilesPerLargeTile(x) |
- , fYTilesPerLargeTile(y) { |
- } |
+ , fYTilesPerLargeTile(y) { } |
+#endif |
void CopyTilesRenderer::init(const SkPicture* pict, const SkString* writePath, |
const SkString* mismatchPath, const SkString* inputFilename, |
bool useChecksumBasedFilenames) { |