Index: tools/PictureRenderer.h |
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h |
index e82eb7fb8ab2df1f842f7b6e8966ec7148047428..c8462d9f037c213d1b9bc718c6ac524100be5f69 100644 |
--- a/tools/PictureRenderer.h |
+++ b/tools/PictureRenderer.h |
@@ -220,6 +220,10 @@ public: |
void setSampleCount(int sampleCount) { |
fSampleCount = sampleCount; |
} |
+ |
+ void setUseDFText(bool useDFText) { |
+ fUseDFText = useDFText; |
+ } |
#endif |
void setDrawFilters(DrawFilterFlags const * const filters, const SkString& configName) { |
@@ -274,6 +278,8 @@ public: |
case kGPU_DeviceType: |
if (fSampleCount) { |
config.appendf("_msaa%d", fSampleCount); |
+ } else if (fUseDFText) { |
+ config.append("_gpudft"); |
} else { |
config.append("_gpu"); |
} |
@@ -325,6 +331,8 @@ public: |
tmp = "msaa"; |
tmp.appendS32(fSampleCount); |
result["config"] = tmp.c_str(); |
+ } else if (fUseDFText) { |
+ result["config"] = "gpudft"; |
} else { |
result["config"] = "gpu"; |
} |
@@ -428,6 +436,7 @@ public: |
, fGrContextFactory(opts) |
, fGrContext(NULL) |
, fSampleCount(0) |
+ , fUseDFText(false) |
#endif |
{ |
fGridInfo.fMargin.setEmpty(); |
@@ -495,6 +504,7 @@ private: |
GrContextFactory fGrContextFactory; |
GrContext* fGrContext; |
int fSampleCount; |
+ bool fUseDFText; |
#endif |
virtual SkString getConfigNameInternal() = 0; |