OLD | NEW |
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 SkCodec_DEFINED | 8 #ifndef SkCodec_DEFINED |
9 #define SkCodec_DEFINED | 9 #define SkCodec_DEFINED |
10 | 10 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 * a single call to getScanlines(). | 375 * a single call to getScanlines(). |
376 * | 376 * |
377 * Interlaced pngs are an example. | 377 * Interlaced pngs are an example. |
378 */ | 378 */ |
379 kNone_SkScanlineOrder, | 379 kNone_SkScanlineOrder, |
380 }; | 380 }; |
381 | 381 |
382 /** | 382 /** |
383 * An enum representing the order in which scanlines will be returned by | 383 * An enum representing the order in which scanlines will be returned by |
384 * the scanline decoder. | 384 * the scanline decoder. |
| 385 * |
| 386 * This is undefined before startScanlineDecode() is called. |
385 */ | 387 */ |
386 SkScanlineOrder getScanlineOrder() const { return this->onGetScanlineOrder()
; } | 388 SkScanlineOrder getScanlineOrder() const { return this->onGetScanlineOrder()
; } |
387 | 389 |
388 /** | 390 /** |
389 * Returns the y-coordinate of the next row to be returned by the scanline | 391 * Returns the y-coordinate of the next row to be returned by the scanline |
390 * decoder. | 392 * decoder. |
391 * | 393 * |
392 * This will equal fCurrScanline, except in the case of strangely | 394 * This will equal fCurrScanline, except in the case of strangely |
393 * encoded image types (bottom-up bmps, interlaced gifs). | 395 * encoded image types (bottom-up bmps, interlaced gifs). |
394 * | 396 * |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 * Return an object which will allow forcing scanline decodes to sample in
X. | 589 * Return an object which will allow forcing scanline decodes to sample in
X. |
588 * | 590 * |
589 * May create a sampler, if one is not currently being used. Otherwise, doe
s | 591 * May create a sampler, if one is not currently being used. Otherwise, doe
s |
590 * not affect ownership. | 592 * not affect ownership. |
591 * | 593 * |
592 * Only valid during scanline decoding. | 594 * Only valid during scanline decoding. |
593 */ | 595 */ |
594 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr;
} | 596 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr;
} |
595 | 597 |
596 friend class SkSampledCodec; | 598 friend class SkSampledCodec; |
| 599 friend class SkIcoCodec; |
597 }; | 600 }; |
598 #endif // SkCodec_DEFINED | 601 #endif // SkCodec_DEFINED |
OLD | NEW |