OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef skiagm_DEFINED | 8 #ifndef skiagm_DEFINED |
9 #define skiagm_DEFINED | 9 #define skiagm_DEFINED |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 kSkipPipeCrossProcess_Flag = 1 << 3, | 38 kSkipPipeCrossProcess_Flag = 1 << 3, |
39 kSkipTiled_Flag = 1 << 4, | 39 kSkipTiled_Flag = 1 << 4, |
40 kSkip565_Flag = 1 << 5, | 40 kSkip565_Flag = 1 << 5, |
41 kSkipScaledReplay_Flag = 1 << 6, | 41 kSkipScaledReplay_Flag = 1 << 6, |
42 kSkipGPU_Flag = 1 << 7, | 42 kSkipGPU_Flag = 1 << 7, |
43 kSkipPDFRasterization_Flag = 1 << 8, | 43 kSkipPDFRasterization_Flag = 1 << 8, |
44 | 44 |
45 kGPUOnly_Flag = 1 << 9, | 45 kGPUOnly_Flag = 1 << 9, |
46 | 46 |
47 kAsBench_Flag = 1 << 10, // Run the GM as a benchmark
in the bench tool | 47 kAsBench_Flag = 1 << 10, // Run the GM as a benchmark
in the bench tool |
| 48 |
| 49 kNoBBH_Flag = 1 << 11, // May draw wrong using a bou
nding-box hierarchy |
48 }; | 50 }; |
49 | 51 |
50 enum Mode { | 52 enum Mode { |
51 kGM_Mode, | 53 kGM_Mode, |
52 kSample_Mode, | 54 kSample_Mode, |
53 kBench_Mode, | 55 kBench_Mode, |
54 }; | 56 }; |
55 | 57 |
56 void setMode(Mode mode) { fMode = mode; } | 58 void setMode(Mode mode) { fMode = mode; } |
57 Mode getMode() const { return fMode; } | 59 Mode getMode() const { return fMode; } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 SkColor fBGColor; | 118 SkColor fBGColor; |
117 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp | 119 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp |
118 bool fHaveCalledOnceBeforeDraw; | 120 bool fHaveCalledOnceBeforeDraw; |
119 SkMatrix fStarterMatrix; | 121 SkMatrix fStarterMatrix; |
120 }; | 122 }; |
121 | 123 |
122 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; | 124 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; |
123 } | 125 } |
124 | 126 |
125 #endif | 127 #endif |
OLD | NEW |