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

Side by Side Diff: src/codec/SkMaskSwizzler.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 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/codec/SkJpegCodec.cpp ('k') | src/codec/SkMasks.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 "SkCodecPriv.h" 8 #include "SkCodecPriv.h"
9 #include "SkColorPriv.h" 9 #include "SkColorPriv.h"
10 #include "SkMaskSwizzler.h" 10 #include "SkMaskSwizzler.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 314 }
315 break; 315 break;
316 default: 316 default:
317 break; 317 break;
318 } 318 }
319 break; 319 break;
320 default: 320 default:
321 SkASSERT(false); 321 SkASSERT(false);
322 return NULL; 322 return NULL;
323 } 323 }
324 return SkNEW_ARGS(SkMaskSwizzler, (info, masks, proc)); 324 return new SkMaskSwizzler(info, masks, proc);
325 } 325 }
326 326
327 /* 327 /*
328 * 328 *
329 * Constructor for mask swizzler 329 * Constructor for mask swizzler
330 * 330 *
331 */ 331 */
332 SkMaskSwizzler::SkMaskSwizzler(const SkImageInfo& dstInfo, SkMasks* masks, 332 SkMaskSwizzler::SkMaskSwizzler(const SkImageInfo& dstInfo, SkMasks* masks,
333 RowProc proc) 333 RowProc proc)
334 : fDstInfo(dstInfo) 334 : fDstInfo(dstInfo)
335 , fMasks(masks) 335 , fMasks(masks)
336 , fRowProc(proc) 336 , fRowProc(proc)
337 {} 337 {}
338 338
339 /* 339 /*
340 * 340 *
341 * Swizzle the specified row 341 * Swizzle the specified row
342 * 342 *
343 */ 343 */
344 SkSwizzler::ResultAlpha SkMaskSwizzler::swizzle(void* dst, const uint8_t* SK_RES TRICT src) { 344 SkSwizzler::ResultAlpha SkMaskSwizzler::swizzle(void* dst, const uint8_t* SK_RES TRICT src) {
345 SkASSERT(NULL != dst && NULL != src); 345 SkASSERT(NULL != dst && NULL != src);
346 return fRowProc(dst, src, fDstInfo.width(), fMasks); 346 return fRowProc(dst, src, fDstInfo.width(), fMasks);
347 } 347 }
OLDNEW
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkMasks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698