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

Side by Side Diff: src/opts/SkXfermode_opts.h

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/opts/SkBlitRow_opts_none.cpp ('k') | src/opts/opts_check_x86.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 #ifndef Sk4pxXfermode_DEFINED 8 #ifndef Sk4pxXfermode_DEFINED
9 #define Sk4pxXfermode_DEFINED 9 #define Sk4pxXfermode_DEFINED
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 public: 194 public:
195 typedef Sk4px (SK_VECTORCALL *Proc4)(Sk4px, Sk4px); 195 typedef Sk4px (SK_VECTORCALL *Proc4)(Sk4px, Sk4px);
196 typedef Sk4px (SK_VECTORCALL *AAProc4)(Sk4px, Sk4px, Sk4px); 196 typedef Sk4px (SK_VECTORCALL *AAProc4)(Sk4px, Sk4px, Sk4px);
197 197
198 Sk4pxXfermode(const ProcCoeff& rec, SkXfermode::Mode mode, Proc4 proc4, AAPr oc4 aaproc4) 198 Sk4pxXfermode(const ProcCoeff& rec, SkXfermode::Mode mode, Proc4 proc4, AAPr oc4 aaproc4)
199 : INHERITED(rec, mode) 199 : INHERITED(rec, mode)
200 , fProc4(proc4) 200 , fProc4(proc4)
201 , fAAProc4(aaproc4) {} 201 , fAAProc4(aaproc4) {}
202 202
203 void xfer32(SkPMColor dst[], const SkPMColor src[], int n, const SkAlpha aa[ ]) const override { 203 void xfer32(SkPMColor dst[], const SkPMColor src[], int n, const SkAlpha aa[ ]) const override {
204 if (NULL == aa) { 204 if (nullptr == aa) {
205 Sk4px::MapDstSrc(n, dst, src, [&](const Sk4px& dst4, const Sk4px& sr c4) { 205 Sk4px::MapDstSrc(n, dst, src, [&](const Sk4px& dst4, const Sk4px& sr c4) {
206 return fProc4(src4, dst4); 206 return fProc4(src4, dst4);
207 }); 207 });
208 } else { 208 } else {
209 Sk4px::MapDstSrcAlpha(n, dst, src, aa, 209 Sk4px::MapDstSrcAlpha(n, dst, src, aa,
210 [&](const Sk4px& dst4, const Sk4px& src4, const Sk4px& alpha ) { 210 [&](const Sk4px& dst4, const Sk4px& src4, const Sk4px& alpha ) {
211 return fAAProc4(src4, dst4, alpha); 211 return fAAProc4(src4, dst4, alpha);
212 }); 212 });
213 } 213 }
214 } 214 }
215 215
216 void xfer16(uint16_t dst[], const SkPMColor src[], int n, const SkAlpha aa[] ) const override { 216 void xfer16(uint16_t dst[], const SkPMColor src[], int n, const SkAlpha aa[] ) const override {
217 if (NULL == aa) { 217 if (nullptr == aa) {
218 Sk4px::MapDstSrc(n, dst, src, [&](const Sk4px& dst4, const Sk4px& sr c4) { 218 Sk4px::MapDstSrc(n, dst, src, [&](const Sk4px& dst4, const Sk4px& sr c4) {
219 return fProc4(src4, dst4); 219 return fProc4(src4, dst4);
220 }); 220 });
221 } else { 221 } else {
222 Sk4px::MapDstSrcAlpha(n, dst, src, aa, 222 Sk4px::MapDstSrcAlpha(n, dst, src, aa,
223 [&](const Sk4px& dst4, const Sk4px& src4, const Sk4px& alpha ) { 223 [&](const Sk4px& dst4, const Sk4px& src4, const Sk4px& alpha ) {
224 return fAAProc4(src4, dst4, alpha); 224 return fAAProc4(src4, dst4, alpha);
225 }); 225 });
226 } 226 }
227 } 227 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 #undef CASE 316 #undef CASE
317 317
318 default: break; 318 default: break;
319 } 319 }
320 return nullptr; 320 return nullptr;
321 } 321 }
322 322
323 } // namespace SK_OPTS_NS 323 } // namespace SK_OPTS_NS
324 324
325 #endif//Sk4pxXfermode_DEFINED 325 #endif//Sk4pxXfermode_DEFINED
OLDNEW
« no previous file with comments | « src/opts/SkBlitRow_opts_none.cpp ('k') | src/opts/opts_check_x86.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698