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

Unified Diff: tools/PictureRenderer.h

Issue 699453005: Get gpudft support working in dm, gm, nanobench and bench_pictures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More compile fixes Created 6 years, 1 month 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 | « src/image/SkSurface_Gpu.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/image/SkSurface_Gpu.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698