Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Side by Side Diff: src/effects/GrCircleBlurFragmentProcessor.cpp

Issue 2041113004: sk_sp for gpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reserve correctly. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/GrCircleBlurFragmentProcessor.h ('k') | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/effects/GrCircleBlurFragmentProcessor.h ('k') | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698