aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
Diffstat (limited to 'gm')
-rw-r--r--gm/gm.h1
-rw-r--r--gm/gmmain.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/gm/gm.h b/gm/gm.h
index 17541e4038..646ef1a037 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -40,6 +40,7 @@ namespace skiagm {
kSkipTiled_Flag = 1 << 3,
kSkip565_Flag = 1 << 4,
kSkipScaledReplay_Flag = 1 << 5,
+ kSkipGPU_Flag = 1 << 6,
};
void draw(SkCanvas*);
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 3f742d9f49..588ddb9b1d 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -1473,6 +1473,10 @@ int tool_main(int argc, char** argv) {
(SkBitmap::kRGB_565_Config == config.fConfig)) {
continue;
}
+ if ((gmFlags & GM::kSkipGPU_Flag) &&
+ kGPU_Backend == config.fBackend) {
+ continue;
+ }
// Now we know that we want to run this test and record its
// success or failure.