| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2008 The Android Open Source Project | 2  * Copyright 2008 The Android Open Source Project | 
| 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 | 8 | 
|  | 9 #include "SkFixed.h" | 
| 9 #include "SkInterpolator.h" | 10 #include "SkInterpolator.h" | 
| 10 #include "SkMath.h" | 11 #include "SkMath.h" | 
| 11 #include "SkTSearch.h" | 12 #include "SkTSearch.h" | 
| 12 | 13 | 
| 13 SkInterpolatorBase::SkInterpolatorBase() { | 14 SkInterpolatorBase::SkInterpolatorBase() { | 
| 14     fStorage    = nullptr; | 15     fStorage    = nullptr; | 
| 15     fTimes      = nullptr; | 16     fTimes      = nullptr; | 
| 16     SkDEBUGCODE(fTimesArray = nullptr;) | 17     SkDEBUGCODE(fTimesArray = nullptr;) | 
| 17 } | 18 } | 
| 18 | 19 | 
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 260     } | 261     } | 
| 261 | 262 | 
| 262     // Now we have t, so compute the coeff for Y and evaluate | 263     // Now we have t, so compute the coeff for Y and evaluate | 
| 263     b = pin_and_convert(by); | 264     b = pin_and_convert(by); | 
| 264     c = pin_and_convert(cy); | 265     c = pin_and_convert(cy); | 
| 265     A = 3*b; | 266     A = 3*b; | 
| 266     B = 3*(c - 2*b); | 267     B = 3*(c - 2*b); | 
| 267     C = 3*(b - c) + Dot14_ONE; | 268     C = 3*(b - c) + Dot14_ONE; | 
| 268     return SkFixedToScalar(eval_cubic(t, A, B, C) << 2); | 269     return SkFixedToScalar(eval_cubic(t, A, B, C) << 2); | 
| 269 } | 270 } | 
| OLD | NEW | 
|---|