| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 "GrCircleBlurFragmentProcessor.h" | 8 #include "GrCircleBlurFragmentProcessor.h" |
| 9 | 9 |
| 10 #if SK_SUPPORT_GPU | 10 #if SK_SUPPORT_GPU |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 if (blurProfile) { | 282 if (blurProfile) { |
| 283 textureProvider->assignUniqueKeyToTexture(key, blurProfile); | 283 textureProvider->assignUniqueKeyToTexture(key, blurProfile); |
| 284 } | 284 } |
| 285 } | 285 } |
| 286 | 286 |
| 287 return blurProfile; | 287 return blurProfile; |
| 288 } | 288 } |
| 289 | 289 |
| 290 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrCircleBlurFragmentProcessor); | 290 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrCircleBlurFragmentProcessor); |
| 291 | 291 |
| 292 const GrFragmentProcessor* GrCircleBlurFragmentProcessor::TestCreate(GrProcessor
TestData* d) { | 292 sk_sp<GrFragmentProcessor> GrCircleBlurFragmentProcessor::TestCreate(GrProcessor
TestData* d) { |
| 293 SkScalar wh = d->fRandom->nextRangeScalar(100.f, 1000.f); | 293 SkScalar wh = d->fRandom->nextRangeScalar(100.f, 1000.f); |
| 294 SkScalar sigma = d->fRandom->nextRangeF(1.f,10.f); | 294 SkScalar sigma = d->fRandom->nextRangeF(1.f,10.f); |
| 295 SkRect circle = SkRect::MakeWH(wh, wh); | 295 SkRect circle = SkRect::MakeWH(wh, wh); |
| 296 return GrCircleBlurFragmentProcessor::Create(d->fContext->textureProvider(),
circle, sigma); | 296 return GrCircleBlurFragmentProcessor::Make(d->fContext->textureProvider(), c
ircle, sigma); |
| 297 } | 297 } |
| 298 | 298 |
| 299 #endif | 299 #endif |
| OLD | NEW |