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

Unified Diff: gm/gmmain.cpp

Issue 635293003: Make GM default to reseting gpu contexts on android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update ignored-tests.txt Created 6 years, 2 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 | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gmmain.cpp
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 94df02ce4d8204f3faee0c8c223f475c5963b3f5..cb7816b6a43e72f84d96483b0810df65b54d1738 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.");
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698