Home
last modified time | relevance | path

Searched refs:fCachedInterval (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/shaders/gradients/
DSk4fLinearGradient.cpp101 fCachedInterval = fIntervals->begin(); in LinearGradient4fContext()
110 SkASSERT(fCachedInterval >= fIntervals->begin()); in findInterval()
111 SkASSERT(fCachedInterval < fIntervals->end()); in findInterval()
113 while (!in_range(fx, fCachedInterval->fT0, fCachedInterval->fT1)) { in findInterval()
114 fCachedInterval += search_dir; in findInterval()
115 if (fCachedInterval >= fIntervals->end()) { in findInterval()
116 fCachedInterval = fIntervals->begin(); in findInterval()
117 } else if (fCachedInterval < fIntervals->begin()) { in findInterval()
118 fCachedInterval = fIntervals->end() - 1; in findInterval()
121 return fCachedInterval; in findInterval()
DSk4fLinearGradient.h37 mutable const Sk4fGradientInterval* fCachedInterval; variable
/external/skqp/src/shaders/gradients/
DSk4fLinearGradient.cpp101 fCachedInterval = fIntervals->begin(); in LinearGradient4fContext()
110 SkASSERT(fCachedInterval >= fIntervals->begin()); in findInterval()
111 SkASSERT(fCachedInterval < fIntervals->end()); in findInterval()
113 while (!in_range(fx, fCachedInterval->fT0, fCachedInterval->fT1)) { in findInterval()
114 fCachedInterval += search_dir; in findInterval()
115 if (fCachedInterval >= fIntervals->end()) { in findInterval()
116 fCachedInterval = fIntervals->begin(); in findInterval()
117 } else if (fCachedInterval < fIntervals->begin()) { in findInterval()
118 fCachedInterval = fIntervals->end() - 1; in findInterval()
121 return fCachedInterval; in findInterval()
DSk4fLinearGradient.h37 mutable const Sk4fGradientInterval* fCachedInterval; variable