| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 paint->setColorFilter(colorFilter)->unref(); | 66 paint->setColorFilter(colorFilter)->unref(); |
| 67 paint->setColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); | 67 paint->setColor(sk_tool_utils::color_to_565(SK_ColorGRAY)); |
| 68 } | 68 } |
| 69 { | 69 { |
| 70 SkLayerDrawLooper::LayerInfo info; | 70 SkLayerDrawLooper::LayerInfo info; |
| 71 looperBuilder.addLayerOnTop(info); | 71 looperBuilder.addLayerOnTop(info); |
| 72 } | 72 } |
| 73 SkPaint paint; | 73 SkPaint paint; |
| 74 canvas->drawRect(fRRect.rect(), paint); | 74 canvas->drawRect(fRRect.rect(), paint); |
| 75 | 75 |
| 76 paint.setLooper(looperBuilder.detachLooper())->unref(); | 76 paint.setLooper(looperBuilder.detach()); |
| 77 paint.setColor(SK_ColorCYAN); | 77 paint.setColor(SK_ColorCYAN); |
| 78 paint.setAntiAlias(true); | 78 paint.setAntiAlias(true); |
| 79 | 79 |
| 80 canvas->drawRRect(fRRect, paint); | 80 canvas->drawRRect(fRRect, paint); |
| 81 } | 81 } |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 SkString fName; | 84 SkString fName; |
| 85 SkRRect fRRect; | 85 SkRRect fRRect; |
| 86 int fWidth, fHeight; | 86 int fWidth, fHeight; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // TODO(scroggo): Disabled in an attempt to rememdy | 176 // TODO(scroggo): Disabled in an attempt to rememdy |
| 177 // https://code.google.com/p/skia/issues/detail?id=1801 ('Win7 Test bots all fai
ling GenerateGMs: | 177 // https://code.google.com/p/skia/issues/detail?id=1801 ('Win7 Test bots all fai
ling GenerateGMs: |
| 178 // ran wrong number of tests') | 178 // ran wrong number of tests') |
| 179 //DEF_GM(return new BlurRoundRectGM(600, 5514, 6);) | 179 //DEF_GM(return new BlurRoundRectGM(600, 5514, 6);) |
| 180 | 180 |
| 181 // Rounded rect with two opposite corners with large radii, the other two | 181 // Rounded rect with two opposite corners with large radii, the other two |
| 182 // small. | 182 // small. |
| 183 DEF_GM(return new BlurRoundRectGM(100, 100);) | 183 DEF_GM(return new BlurRoundRectGM(100, 100);) |
| 184 | 184 |
| 185 DEF_GM(return new SimpleBlurRoundRectGM();) | 185 DEF_GM(return new SimpleBlurRoundRectGM();) |
| OLD | NEW |