Index: tools/PictureRenderingFlags.cpp |
diff --git a/tools/PictureRenderingFlags.cpp b/tools/PictureRenderingFlags.cpp |
index c5226534d58ca380fbe0089064a37a084673735a..0c4bc75fa0cdf63ab218f6e7e2b6e4602042bf3f 100644 |
--- a/tools/PictureRenderingFlags.cpp |
+++ b/tools/PictureRenderingFlags.cpp |
@@ -26,7 +26,7 @@ DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc |
#if SK_SUPPORT_GPU |
-#define GPU_CONFIG_STRING "|gpu|msaa4|msaa16" |
+#define GPU_CONFIG_STRING "|gpu|msaa4|msaa16|nvprmsaa4|nvprmsaa16" |
#else |
#define GPU_CONFIG_STRING "" |
#endif |
@@ -289,6 +289,22 @@ sk_tools::PictureRenderer* parseRenderer(SkString& error, PictureTool tool) { |
} |
sampleCount = 16; |
} |
+ else if (0 == strcmp(FLAGS_config[0], "nvprmsaa4")) { |
+ deviceType = sk_tools::PictureRenderer::kNVPR_DeviceType; |
+ if (FLAGS_multi > 1) { |
+ error.printf("GPU not compatible with multithreaded tiling.\n"); |
+ return NULL; |
+ } |
+ sampleCount = 4; |
+ } |
+ else if (0 == strcmp(FLAGS_config[0], "nvprmsaa16")) { |
+ deviceType = sk_tools::PictureRenderer::kNVPR_DeviceType; |
+ if (FLAGS_multi > 1) { |
+ error.printf("GPU not compatible with multithreaded tiling.\n"); |
+ return NULL; |
+ } |
+ sampleCount = 16; |
+ } |
#if SK_ANGLE |
else if (0 == strcmp(FLAGS_config[0], "angle")) { |
deviceType = sk_tools::PictureRenderer::kAngle_DeviceType; |