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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 /** | 577 /** |
578 * Return an object which will allow forcing scanline decodes to sample in
X. | 578 * Return an object which will allow forcing scanline decodes to sample in
X. |
579 * | 579 * |
580 * May create a sampler, if one is not currently being used. Otherwise, doe
s | 580 * May create a sampler, if one is not currently being used. Otherwise, doe
s |
581 * not affect ownership. | 581 * not affect ownership. |
582 * | 582 * |
583 * Only valid during scanline decoding. | 583 * Only valid during scanline decoding. |
584 */ | 584 */ |
585 virtual SkSampler* getSampler(bool createIfNecessary) { return nullptr; } | 585 virtual SkSampler* getSampler(bool createIfNecessary) { return nullptr; } |
586 | 586 |
587 friend class SkScaledCodec; | 587 friend class SkSampledCodec; |
588 }; | 588 }; |
589 #endif // SkCodec_DEFINED | 589 #endif // SkCodec_DEFINED |
OLD | NEW |