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 #include "GrDistanceFieldAdjustTable.h" | 8 #include "GrDistanceFieldAdjustTable.h" |
9 | 9 |
10 #include "SkScalerContext.h" | 10 #include "SkScalerContext.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 break; | 87 break; |
88 } | 88 } |
89 } | 89 } |
90 } | 90 } |
91 | 91 |
92 return table; | 92 return table; |
93 } | 93 } |
94 | 94 |
95 void GrDistanceFieldAdjustTable::buildDistanceAdjustTables() { | 95 void GrDistanceFieldAdjustTable::buildDistanceAdjustTables() { |
96 fTable = build_distance_adjust_table(SK_GAMMA_EXPONENT, SK_GAMMA_EXPONENT); | 96 fTable = build_distance_adjust_table(SK_GAMMA_EXPONENT, SK_GAMMA_EXPONENT); |
97 fSRGBTable = build_distance_adjust_table(SK_Scalar1, SK_Scalar1); | 97 fGammaCorrectTable = build_distance_adjust_table(SK_Scalar1, SK_Scalar1); |
98 } | 98 } |
OLD | NEW |