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 uint32_t onGetFlags() const SK_OVERRIDE { | |
89 return kSkipTiled_Flag; | |
90 } | |
91 | 88 |
92 SkString onShortName() SK_OVERRIDE { | 89 SkString onShortName() SK_OVERRIDE { |
93 return SkString("bleed"); | 90 return SkString("bleed"); |
94 } | 91 } |
95 | 92 |
96 SkISize onISize() SK_OVERRIDE { | 93 SkISize onISize() SK_OVERRIDE { |
97 return SkISize::Make(kWidth, 780); | 94 return SkISize::Make(kWidth, 780); |
98 } | 95 } |
99 | 96 |
100 void onOnceBeforeDraw() SK_OVERRIDE { | 97 void onOnceBeforeDraw() SK_OVERRIDE { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 static const int kSmallTextureSize = 6; | 270 static const int kSmallTextureSize = 6; |
274 static const int kMaxTextureSize = 32; | 271 static const int kMaxTextureSize = 32; |
275 | 272 |
276 SkBitmap fBitmapSmall; | 273 SkBitmap fBitmapSmall; |
277 SkBitmap fBitmapBig; | 274 SkBitmap fBitmapBig; |
278 | 275 |
279 typedef GM INHERITED; | 276 typedef GM INHERITED; |
280 }; | 277 }; |
281 | 278 |
282 DEF_GM( return new BleedGM(); ) | 279 DEF_GM( return new BleedGM(); ) |
OLD | NEW |