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

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

Issue 1133123009: rename GrDrawTargetCaps to GrCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix gypi filename Created 5 years, 7 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 | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | src/effects/SkArithmeticMode_gpu.h » ('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 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 "SkAlphaThresholdFilter.h" 8 #include "SkAlphaThresholdFilter.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 pdman.set1f(fInnerThresholdVar, alpha_threshold.innerThreshold()); 196 pdman.set1f(fInnerThresholdVar, alpha_threshold.innerThreshold());
197 pdman.set1f(fOuterThresholdVar, alpha_threshold.outerThreshold()); 197 pdman.set1f(fOuterThresholdVar, alpha_threshold.outerThreshold());
198 } 198 }
199 199
200 ///////////////////////////////////////////////////////////////////// 200 /////////////////////////////////////////////////////////////////////
201 201
202 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(AlphaThresholdEffect); 202 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(AlphaThresholdEffect);
203 203
204 GrFragmentProcessor* AlphaThresholdEffect::TestCreate(SkRandom* random, 204 GrFragmentProcessor* AlphaThresholdEffect::TestCreate(SkRandom* random,
205 GrContext* context, 205 GrContext* context,
206 const GrDrawTargetCaps&, 206 const GrCaps&,
207 GrTexture** textures) { 207 GrTexture** textures) {
208 GrTexture* bmpTex = textures[GrProcessorUnitTest::kSkiaPMTextureIdx]; 208 GrTexture* bmpTex = textures[GrProcessorUnitTest::kSkiaPMTextureIdx];
209 GrTexture* maskTex = textures[GrProcessorUnitTest::kAlphaTextureIdx]; 209 GrTexture* maskTex = textures[GrProcessorUnitTest::kAlphaTextureIdx];
210 float inner_thresh = random->nextUScalar1(); 210 float inner_thresh = random->nextUScalar1();
211 float outer_thresh = random->nextUScalar1(); 211 float outer_thresh = random->nextUScalar1();
212 return AlphaThresholdEffect::Create(bmpTex, maskTex, inner_thresh, outer_thr esh); 212 return AlphaThresholdEffect::Create(bmpTex, maskTex, inner_thresh, outer_thr esh);
213 } 213 }
214 214
215 /////////////////////////////////////////////////////////////////////////////// 215 ///////////////////////////////////////////////////////////////////////////////
216 216
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 377 }
378 378
379 #ifndef SK_IGNORE_TO_STRING 379 #ifndef SK_IGNORE_TO_STRING
380 void SkAlphaThresholdFilterImpl::toString(SkString* str) const { 380 void SkAlphaThresholdFilterImpl::toString(SkString* str) const {
381 str->appendf("SkAlphaThresholdImageFilter: ("); 381 str->appendf("SkAlphaThresholdImageFilter: (");
382 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold); 382 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold);
383 str->append(")"); 383 str->append(")");
384 } 384 }
385 #endif 385 #endif
386 386
OLDNEW
« no previous file with comments | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | src/effects/SkArithmeticMode_gpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698