OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 | 9 |
10 namespace skiagm { | 10 namespace skiagm { |
11 | 11 |
12 class AndroidFallbackGM : public GM { | 12 class AndroidFallbackGM : public GM { |
13 public: | 13 public: |
14 AndroidFallbackGM() { | 14 AndroidFallbackGM() { |
15 this->setBGColor(0xFFCCCCCC); | 15 this->setBGColor(0xFFCCCCCC); |
16 } | 16 } |
17 | 17 |
18 protected: | 18 protected: |
| 19 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 20 // TODO(scroggo): Undo this if we decide to fix skia:1763. |
| 21 return GM::kSkipPipe_Flag; |
| 22 } |
| 23 |
19 virtual SkString onShortName() SK_OVERRIDE { | 24 virtual SkString onShortName() SK_OVERRIDE { |
20 return SkString("android_paint"); | 25 return SkString("android_paint"); |
21 } | 26 } |
22 | 27 |
23 virtual SkISize onISize() SK_OVERRIDE { | 28 virtual SkISize onISize() SK_OVERRIDE { |
24 return make_isize(500, 500); | 29 return make_isize(500, 500); |
25 } | 30 } |
26 | 31 |
27 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { | 32 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
28 | 33 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 typedef GM INHERITED; | 83 typedef GM INHERITED; |
79 }; | 84 }; |
80 | 85 |
81 ////////////////////////////////////////////////////////////////////////////// | 86 ////////////////////////////////////////////////////////////////////////////// |
82 | 87 |
83 #ifdef SK_BUILD_FOR_ANDROID | 88 #ifdef SK_BUILD_FOR_ANDROID |
84 DEF_GM( return SkNEW(AndroidFallbackGM); ) | 89 DEF_GM( return SkNEW(AndroidFallbackGM); ) |
85 #endif | 90 #endif |
86 | 91 |
87 } | 92 } |
OLD | NEW |