OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkColor.h" | 9 #include "SkColor.h" |
10 #include "SkBitmapSource.h" | 10 #include "SkBitmapSource.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace skiagm { | 25 namespace skiagm { |
26 | 26 |
27 class ImageFiltersClippedGM : public GM { | 27 class ImageFiltersClippedGM : public GM { |
28 public: | 28 public: |
29 ImageFiltersClippedGM() : fInitialized(false) { | 29 ImageFiltersClippedGM() : fInitialized(false) { |
30 this->setBGColor(0x00000000); | 30 this->setBGColor(0x00000000); |
31 } | 31 } |
32 | 32 |
33 protected: | 33 protected: |
34 uint32_t onGetFlags() const SK_OVERRIDE { | |
35 return kSkipTiled_Flag; | |
36 } | |
37 | 34 |
38 SkString onShortName() SK_OVERRIDE { | 35 SkString onShortName() SK_OVERRIDE { |
39 return SkString("imagefiltersclipped"); | 36 return SkString("imagefiltersclipped"); |
40 } | 37 } |
41 | 38 |
42 SkISize onISize() SK_OVERRIDE { | 39 SkISize onISize() SK_OVERRIDE { |
43 return SkISize::Make(860, 500); | 40 return SkISize::Make(860, 500); |
44 } | 41 } |
45 | 42 |
46 void make_checkerboard() { | 43 void make_checkerboard() { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 SkBitmap fGradientCircle; | 153 SkBitmap fGradientCircle; |
157 typedef GM INHERITED; | 154 typedef GM INHERITED; |
158 }; | 155 }; |
159 | 156 |
160 ////////////////////////////////////////////////////////////////////////////// | 157 ////////////////////////////////////////////////////////////////////////////// |
161 | 158 |
162 static GM* MyFactory(void*) { return new ImageFiltersClippedGM; } | 159 static GM* MyFactory(void*) { return new ImageFiltersClippedGM; } |
163 static GMRegistry reg(MyFactory); | 160 static GMRegistry reg(MyFactory); |
164 | 161 |
165 } | 162 } |
OLD | NEW |