| OLD | NEW |
| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 NULL and ignore |
| 370 // the value parameter. | 370 // the value parameter. |
| 371 const SkBitmap* justAnOpaqueColor(uint32_t* value) override { | 371 const SkPixmap* justAnOpaqueColor(uint32_t* value) override { |
| 372 return NULL; | 372 return NULL; |
| 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; } |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |