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

Unified Diff: tools/PictureRenderer.h

Issue 189263012: Add nvprmsaa4 and nvprmsaa16 configs to bench_pictures (Closed) Base URL: https://skia.googlesource.com/skia.git@sample-count-trunk
Patch Set: Created 6 years, 9 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 | « no previous file | 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 67392774ba192b421b9b5432474961e5d3598221..5d30e5b73362041d15e501a1e5624d464ecc58a6 100644
--- a/tools/PictureRenderer.h
+++ b/tools/PictureRenderer.h
@@ -75,6 +75,7 @@ public:
kBitmap_DeviceType,
#if SK_SUPPORT_GPU
kGPU_DeviceType,
+ kNVPR_DeviceType,
#endif
};
@@ -176,6 +177,9 @@ public:
case kGPU_DeviceType:
// Already set to GrContextFactory::kNative_GLContextType, above.
break;
+ case kNVPR_DeviceType:
+ glContextType = GrContextFactory::kNVPR_GLContextType;
+ break;
#if SK_ANGLE
case kAngle_DeviceType:
glContextType = GrContextFactory::kANGLE_GLContextType;
@@ -262,6 +266,9 @@ public:
config.append("_gpu");
}
break;
+ case kNVPR_DeviceType:
+ config.appendf("_nvprmsaa%d", fSampleCount);
+ break;
#if SK_ANGLE
case kAngle_DeviceType:
config.append("_angle");
@@ -285,6 +292,7 @@ public:
bool isUsingGpuDevice() {
switch (fDeviceType) {
case kGPU_DeviceType:
+ case kNVPR_DeviceType:
// fall through
#if SK_ANGLE
case kAngle_DeviceType:
@@ -306,6 +314,9 @@ public:
case kGPU_DeviceType:
glContextType = GrContextFactory::kNative_GLContextType;
break;
+ case kNVPR_DeviceType:
+ glContextType = GrContextFactory::kNVPR_GLContextType;
+ break;
#if SK_ANGLE
case kAngle_DeviceType:
glContextType = GrContextFactory::kANGLE_GLContextType;
« no previous file with comments | « no previous file | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698