Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tools/CopyTilesRenderer.cpp

Issue 464423003: Add flag to bench/render pictures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/CopyTilesRenderer.h ('k') | tools/PictureRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « tools/CopyTilesRenderer.h ('k') | tools/PictureRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698