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

Side by Side Diff: src/utils/SkTextureCompressor_Blitter.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/utils/SkTextureCompressor_ASTC.cpp ('k') | src/utils/SkTextureCompressor_LATC.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 2014 Google Inc. 2 * Copyright 2014 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 SkTextureCompressor_Blitter_DEFINED 8 #ifndef SkTextureCompressor_Blitter_DEFINED
9 #define SkTextureCompressor_Blitter_DEFINED 9 #define SkTextureCompressor_Blitter_DEFINED
10 10
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 const uint32_t rb = mask.fRowBytes; 359 const uint32_t rb = mask.fRowBytes;
360 CompressorType::CompressA8Horizontal(dst, src, rb); 360 CompressorType::CompressA8Horizontal(dst, src, rb);
361 } 361 }
362 362
363 dst += EncodedBlockSize; 363 dst += EncodedBlockSize;
364 } 364 }
365 } 365 }
366 } 366 }
367 367
368 // If the blitter just sets a single value for each pixel, return the 368 // If the blitter just sets a single value for each pixel, return the
369 // bitmap it draws into, and assign value. If not, return NULL and ignore 369 // bitmap it draws into, and assign value. If not, return nullptr and ignore
370 // the value parameter. 370 // the value parameter.
371 const SkPixmap* justAnOpaqueColor(uint32_t* value) override { 371 const SkPixmap* justAnOpaqueColor(uint32_t* value) override {
372 return NULL; 372 return nullptr;
373 } 373 }
374 374
375 /** 375 /**
376 * Compressed texture blitters only really work correctly if they get 376 * Compressed texture blitters only really work correctly if they get
377 * BlockDim rows at a time. That being said, this blitter tries it's best 377 * BlockDim rows at a time. That being said, this blitter tries it's best
378 * to preserve semantics if blitAntiH doesn't get called in too many 378 * to preserve semantics if blitAntiH doesn't get called in too many
379 * weird ways... 379 * weird ways...
380 */ 380 */
381 int requestRowsPreserved() const override { return BlockDim; } 381 int requestRowsPreserved() const override { return BlockDim; }
382 382
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 mask, BlockDim, mask); 724 mask, BlockDim, mask);
725 } 725 }
726 } 726 }
727 #endif // PEDANTIC_BLIT_RECT 727 #endif // PEDANTIC_BLIT_RECT
728 728
729 }; 729 };
730 730
731 } // namespace SkTextureCompressor 731 } // namespace SkTextureCompressor
732 732
733 #endif // SkTextureCompressor_Blitter_DEFINED 733 #endif // SkTextureCompressor_Blitter_DEFINED
OLDNEW
« no previous file with comments | « src/utils/SkTextureCompressor_ASTC.cpp ('k') | src/utils/SkTextureCompressor_LATC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698