diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-03 14:48:17 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-03 14:48:17 +0000 |
commit | 6adce6783c5d7cbef276d04cc08a2b19789a0156 (patch) | |
tree | 6a8c5152d4e90321e0d0ca8311d5077dac330fe7 /gm | |
parent | ccfe7b8ae7fd6cc1be4aa7836c4c81db31034d16 (diff) |
Allow GMs to be used as benchmarks. Make convex_poly_clip opt in.
R=reed@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/151843002
git-svn-id: http://skia.googlecode.com/svn/trunk@13279 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/convexpolyclip.cpp | 4 | ||||
-rw-r--r-- | gm/gm.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp index db357bbfd7..18b99a7db8 100644 --- a/gm/convexpolyclip.cpp +++ b/gm/convexpolyclip.cpp @@ -182,6 +182,10 @@ protected: } } + virtual uint32_t onGetFlags() const { + return kAsBench_Flag; + } + private: SkTLList<SkPath> fPaths; SkBitmap fBmp; @@ -49,6 +49,8 @@ namespace skiagm { kSkipPDFRasterization_Flag = 1 << 8, kGPUOnly_Flag = 1 << 9, + + kAsBench_Flag = 1 << 10, // Run the GM as a benchmark in the bench tool }; void draw(SkCanvas*); |