| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // compute distance which gives us that t value | 84 // compute distance which gives us that t value |
| 85 const float kDistanceFieldAAFactor = 0.65f; // should match SK_D
istanceFieldAAFactor | 85 const float kDistanceFieldAAFactor = 0.65f; // should match SK_D
istanceFieldAAFactor |
| 86 float d = 2.0f*kDistanceFieldAAFactor*t - kDistanceFieldAAFactor
; | 86 float d = 2.0f*kDistanceFieldAAFactor*t - kDistanceFieldAAFactor
; |
| 87 | 87 |
| 88 fTable[row] = d; | 88 fTable[row] = d; |
| 89 break; | 89 break; |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 } | 93 } |
| OLD | NEW |