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 #include "SkBlurMask.h" | 9 #include "SkBlurMask.h" |
10 #include "SkBlurMaskFilter.h" | 10 #include "SkBlurMaskFilter.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 result->setImmutable(); | 79 result->setImmutable(); |
80 } | 80 } |
81 | 81 |
82 // This GM exercises the drawBitmapRectToRect "bleed" flag | 82 // This GM exercises the drawBitmapRectToRect "bleed" flag |
83 class BleedGM : public skiagm::GM { | 83 class BleedGM : public skiagm::GM { |
84 public: | 84 public: |
85 BleedGM() {} | 85 BleedGM() {} |
86 | 86 |
87 protected: | 87 protected: |
| 88 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 89 return kSkipTiled_Flag; |
| 90 } |
| 91 |
88 virtual SkString onShortName() SK_OVERRIDE { | 92 virtual SkString onShortName() SK_OVERRIDE { |
89 return SkString("bleed"); | 93 return SkString("bleed"); |
90 } | 94 } |
91 | 95 |
92 virtual SkISize onISize() SK_OVERRIDE { | 96 virtual SkISize onISize() SK_OVERRIDE { |
93 return SkISize::Make(kWidth, 780); | 97 return SkISize::Make(kWidth, 780); |
94 } | 98 } |
95 | 99 |
96 virtual void onOnceBeforeDraw() SK_OVERRIDE { | 100 virtual void onOnceBeforeDraw() SK_OVERRIDE { |
97 make_ringed_bitmap(&fBitmapSmall, kSmallTextureSize, kSmallTextureSize); | 101 make_ringed_bitmap(&fBitmapSmall, kSmallTextureSize, kSmallTextureSize); |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 static const int kSmallTextureSize = 6; | 273 static const int kSmallTextureSize = 6; |
270 static const int kMaxTextureSize = 32; | 274 static const int kMaxTextureSize = 32; |
271 | 275 |
272 SkBitmap fBitmapSmall; | 276 SkBitmap fBitmapSmall; |
273 SkBitmap fBitmapBig; | 277 SkBitmap fBitmapBig; |
274 | 278 |
275 typedef GM INHERITED; | 279 typedef GM INHERITED; |
276 }; | 280 }; |
277 | 281 |
278 DEF_GM( return new BleedGM(); ) | 282 DEF_GM( return new BleedGM(); ) |
OLD | NEW |