OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 SkLinearBitmapPipeline_sampler_DEFINED | 8 #ifndef SkLinearBitmapPipeline_sampler_DEFINED |
9 #define SkLinearBitmapPipeline_sampler_DEFINED | 9 #define SkLinearBitmapPipeline_sampler_DEFINED |
10 | 10 |
| 11 #include "SkFixed.h" |
11 #include "SkLinearBitmapPipeline_core.h" | 12 #include "SkLinearBitmapPipeline_core.h" |
12 #include <array> | 13 #include <array> |
13 #include <tuple> | 14 #include <tuple> |
14 | 15 |
15 namespace { | 16 namespace { |
16 // Explaination of the math: | 17 // Explaination of the math: |
17 // 1 - x x | 18 // 1 - x x |
18 // +--------+--------+ | 19 // +--------+--------+ |
19 // | | | | 20 // | | | |
20 // 1 - y | px00 | px10 | | 21 // 1 - y | px00 | px10 | |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 SkAutoMalloc fColorTableStorage{kColorTableSize}; | 725 SkAutoMalloc fColorTableStorage{kColorTableSize}; |
725 Sk4f* fColorTable; | 726 Sk4f* fColorTable; |
726 }; | 727 }; |
727 | 728 |
728 using PixelIndex8SRGB = PixelIndex8<kSRGB_SkColorProfileType>; | 729 using PixelIndex8SRGB = PixelIndex8<kSRGB_SkColorProfileType>; |
729 using PixelIndex8LRGB = PixelIndex8<kLinear_SkColorProfileType>; | 730 using PixelIndex8LRGB = PixelIndex8<kLinear_SkColorProfileType>; |
730 | 731 |
731 } // namespace | 732 } // namespace |
732 | 733 |
733 #endif // SkLinearBitmapPipeline_sampler_DEFINED | 734 #endif // SkLinearBitmapPipeline_sampler_DEFINED |
OLD | NEW |