add flag to skip gpu test
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 8 Mar 2013 13:31:02 +0000 (13:31 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 8 Mar 2013 13:31:02 +0000 (13:31 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8036 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/gm.h
gm/gmmain.cpp

diff --git a/gm/gm.h b/gm/gm.h
index 17541e4..646ef1a 100644 (file)
--- 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*);
index 3f742d9..588ddb9 100644 (file)
@@ -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.