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 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
10 #include "GrContext.h" | 10 #include "GrContext.h" |
11 #include "GrDrawContextPriv.h" | 11 #include "GrDrawContextPriv.h" |
12 #include "batches/GrDrawBatch.h" | 12 #include "batches/GrDrawBatch.h" |
13 #include "batches/GrRectBatchFactory.h" | 13 #include "batches/GrRectBatchFactory.h" |
14 #include "effects/GrRRectEffect.h" | 14 #include "effects/GrRRectEffect.h" |
15 #endif | 15 #endif |
16 #include "SkDevice.h" | |
17 #include "SkRRect.h" | 16 #include "SkRRect.h" |
18 | 17 |
19 namespace skiagm { | 18 namespace skiagm { |
20 | 19 |
21 /////////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////////// |
22 | 21 |
23 class RRectGM : public GM { | 22 class RRectGM : public GM { |
24 public: | 23 public: |
25 enum Type { | 24 enum Type { |
26 kBW_Draw_Type, | 25 kBW_Draw_Type, |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 271 |
273 DEF_GM( return new RRectGM(RRectGM::kAA_Draw_Type); ) | 272 DEF_GM( return new RRectGM(RRectGM::kAA_Draw_Type); ) |
274 DEF_GM( return new RRectGM(RRectGM::kBW_Draw_Type); ) | 273 DEF_GM( return new RRectGM(RRectGM::kBW_Draw_Type); ) |
275 DEF_GM( return new RRectGM(RRectGM::kAA_Clip_Type); ) | 274 DEF_GM( return new RRectGM(RRectGM::kAA_Clip_Type); ) |
276 DEF_GM( return new RRectGM(RRectGM::kBW_Clip_Type); ) | 275 DEF_GM( return new RRectGM(RRectGM::kBW_Clip_Type); ) |
277 #if SK_SUPPORT_GPU | 276 #if SK_SUPPORT_GPU |
278 DEF_GM( return new RRectGM(RRectGM::kEffect_Type); ) | 277 DEF_GM( return new RRectGM(RRectGM::kEffect_Type); ) |
279 #endif | 278 #endif |
280 | 279 |
281 } | 280 } |
OLD | NEW |