OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #include "gm.h" | 8 #include "gm.h" |
| 9 #include "SkCanvas.h" |
| 10 #include "SkShader.h" |
9 #include "SkBlurMaskFilter.h" | 11 #include "SkBlurMaskFilter.h" |
10 #include "SkCanvas.h" | |
11 #include "SkPath.h" | |
12 #include "SkShader.h" | |
13 | 12 |
14 namespace skiagm { | 13 namespace skiagm { |
15 | 14 |
16 /** | 15 /** |
17 * Stress test the GPU samplers by rendering a textured glyph with a mask and | 16 * Stress test the GPU samplers by rendering a textured glyph with a mask and |
18 * an AA clip | 17 * an AA clip |
19 */ | 18 */ |
20 class SamplerStressGM : public GM { | 19 class SamplerStressGM : public GM { |
21 public: | 20 public: |
22 SamplerStressGM() | 21 SamplerStressGM() |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 146 |
148 typedef GM INHERITED; | 147 typedef GM INHERITED; |
149 }; | 148 }; |
150 | 149 |
151 ////////////////////////////////////////////////////////////////////////////// | 150 ////////////////////////////////////////////////////////////////////////////// |
152 | 151 |
153 static GM* MyFactory(void*) { return new SamplerStressGM; } | 152 static GM* MyFactory(void*) { return new SamplerStressGM; } |
154 static GMRegistry reg(MyFactory); | 153 static GMRegistry reg(MyFactory); |
155 | 154 |
156 } | 155 } |
OLD | NEW |