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

Side by Side Diff: src/core/SkLinearBitmapPipeline_sample.h

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 8 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/core/SkFontDescriptor.h ('k') | src/core/SkMath.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 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
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
OLDNEW
« no previous file with comments | « src/core/SkFontDescriptor.h ('k') | src/core/SkMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698