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

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

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/Sk1DPathEffect.cpp ('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 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 context->textureProvider()->createApproxTexture(maskDesc)); 275 context->textureProvider()->createApproxTexture(maskDesc));
276 if (!maskTexture) { 276 if (!maskTexture) {
277 return false; 277 return false;
278 } 278 }
279 279
280 GrDrawContext* drawContext = context->drawContext(); 280 GrDrawContext* drawContext = context->drawContext();
281 if (drawContext) { 281 if (drawContext) {
282 GrPaint grPaint; 282 GrPaint grPaint;
283 grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); 283 grPaint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode);
284 SkRegion::Iterator iter(fRegion); 284 SkRegion::Iterator iter(fRegion);
285 drawContext->clear(maskTexture->asRenderTarget(), NULL, 0x0, true); 285 drawContext->clear(maskTexture->asRenderTarget(), nullptr, 0x0, true );
286 286
287 while (!iter.done()) { 287 while (!iter.done()) {
288 SkRect rect = SkRect::Make(iter.rect()); 288 SkRect rect = SkRect::Make(iter.rect());
289 drawContext->drawRect(maskTexture->asRenderTarget(), GrClip::Wid eOpen(), grPaint, 289 drawContext->drawRect(maskTexture->asRenderTarget(), GrClip::Wid eOpen(), grPaint,
290 in_matrix, rect); 290 in_matrix, rect);
291 iter.next(); 291 iter.next();
292 } 292 }
293 } 293 }
294 294
295 *fp = AlphaThresholdEffect::Create(procDataManager, 295 *fp = AlphaThresholdEffect::Create(procDataManager,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 372 }
373 373
374 #ifndef SK_IGNORE_TO_STRING 374 #ifndef SK_IGNORE_TO_STRING
375 void SkAlphaThresholdFilterImpl::toString(SkString* str) const { 375 void SkAlphaThresholdFilterImpl::toString(SkString* str) const {
376 str->appendf("SkAlphaThresholdImageFilter: ("); 376 str->appendf("SkAlphaThresholdImageFilter: (");
377 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold); 377 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold);
378 str->append(")"); 378 str->append(")");
379 } 379 }
380 #endif 380 #endif
381 381
OLDNEW
« no previous file with comments | « src/effects/Sk1DPathEffect.cpp ('k') | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698