aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-08 04:20:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-08 04:20:56 -0700
commit8dd35ce178e4319685a870faf544a0b1d7aef5bb (patch)
tree2689eeeeb0b758d1771b16b6b8d4f5ce14f8e1c4
parenta90ed4e83897b45d6331ee4c54e1edd4054de9a8 (diff)
Make GM default to reseting gpu contexts on android.
TBR=mtklein@google.com Review URL: https://codereview.chromium.org/635293003
-rw-r--r--gm/gmmain.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 94df02ce4d..cb7816b6a4 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1466,9 +1466,13 @@ DEFINE_bool(pipe, false, "Exercise the SkGPipe replay test pass.");
DEFINE_string2(readPath, r, "", "Read reference images from this dir, and report "
"any differences between those and the newly generated ones.");
DEFINE_bool(replay, false, "Exercise the SkPicture replay test pass.");
-#if SK_SUPPORT_GPU
+
+#ifdef SK_BUILD_FOR_ANDROID
+DEFINE_bool(resetGpuContext, true, "Reset the GrContext prior to running each GM.");
+#else
DEFINE_bool(resetGpuContext, false, "Reset the GrContext prior to running each GM.");
#endif
+
DEFINE_bool(rtree, false, "Exercise the R-Tree variant of SkPicture test pass.");
DEFINE_bool(serialize, false, "Exercise the SkPicture serialization & deserialization test pass.");
DEFINE_bool(simulatePipePlaybackFailure, false, "Simulate a rendering failure in pipe mode only.");