Home
last modified time | relevance | path

Searched refs:m_stops (Results 1 – 12 of 12) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/
DGradient.cpp98 m_stops.append(ColorStop(value, r, g, b, a)); in addColorStop()
106 m_stops.append(stop); in addColorStop()
124 if (!m_stops.size()) in sortStopsIfNecessary()
128 if (m_stops.size() == 2 && compareStops(*m_stops.begin(), *m_stops.end())) in sortStopsIfNecessary()
131 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in sortStopsIfNecessary()
139 if (m_stops.isEmpty()) { in getColor()
147 if (m_stops.size()) in getColor()
148 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in getColor()
151 if (value <= 0 || value <= m_stops.first().stop) { in getColor()
152 *r = m_stops.first().red; in getColor()
[all …]
DGradient.h162 mutable Vector<ColorStop, 2> m_stops; variable
/external/webkit/Source/WebCore/platform/graphics/cg/
DGradientCG.cpp86 colorComponents.reserveCapacity(m_stops.size() * 4); // RGBA components per stop in platformGradient()
89 locations.reserveCapacity(m_stops.size()); in platformGradient()
91 for (size_t i = 0; i < m_stops.size(); ++i) { in platformGradient()
92 colorComponents.uncheckedAppend(m_stops[i].red); in platformGradient()
93 colorComponents.uncheckedAppend(m_stops[i].green); in platformGradient()
94 colorComponents.uncheckedAppend(m_stops[i].blue); in platformGradient()
95 colorComponents.uncheckedAppend(m_stops[i].alpha); in platformGradient()
97 locations.uncheckedAppend(m_stops[i].stop); in platformGradient()
100 …olorComponents(deviceRGBColorSpaceRef(), colorComponents.data(), locations.data(), m_stops.size()); in platformGradient()
/external/webkit/Source/WebCore/platform/graphics/wince/
DGradientWinCE.cpp40 if (m_stops.size()) in getStops()
41 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in getStops()
44 return m_stops; in getStops()
/external/webkit/Source/WebCore/svg/
DGradientAttributes.h44 const Vector<Gradient::ColorStop>& stops() const { return m_stops; } in stops()
66 m_stops = value; in setStops()
80 Vector<Gradient::ColorStop> m_stops; member
/external/webkit/Source/WebCore/platform/graphics/skia/
DGradientSkia.cpp121 size_t countUsed = totalStopsNeeded(m_stops.data(), m_stops.size()); in platformGradient()
123 ASSERT(countUsed >= m_stops.size()); in platformGradient()
130 fillStops(m_stops.data(), m_stops.size(), pos, colors); in platformGradient()
/external/webkit/Source/WebCore/css/
DCSSGradientValue.cpp81 if (m_stops.size()) in sortStopsIfNeeded()
82 std::stable_sort(m_stops.begin(), m_stops.end(), compareStops); in sortStopsIfNeeded()
120 for (unsigned i = 0; i < m_stops.size(); i++) { in addStops()
121 const CSSGradientColorStop& stop = m_stops[i]; in addStops()
138 size_t numStops = m_stops.size(); in addStops()
153 const CSSGradientColorStop& stop = m_stops[i]; in addStops()
412 for (size_t i = 0; i < m_stops.size(); ++i) { in isCacheable()
413 const CSSGradientColorStop& stop = m_stops[i]; in isCacheable()
435 for (unsigned i = 0; i < m_stops.size(); i++) { in cssText()
436 const CSSGradientColorStop& stop = m_stops[i]; in cssText()
[all …]
DCSSGradientValue.h56 void addStop(const CSSGradientColorStop& stop) { m_stops.append(stop); } in addStop()
58 Vector<CSSGradientColorStop>& stops() { return m_stops; } in stops()
95 Vector<CSSGradientColorStop> m_stops; variable
/external/webkit/Source/WebCore/platform/graphics/qt/
DGradientQt.cpp66 Vector<ColorStop>::iterator stopIterator = m_stops.begin(); in platformGradient()
69 while (stopIterator != m_stops.end()) { in platformGradient()
93 if (m_stops.isEmpty()) { in platformGradient()
/external/webkit/Source/WebCore/platform/graphics/haiku/
DGradientHaiku.cpp54 size_t size = m_stops.size(); in platformGradient()
56 const ColorStop& stop = m_stops[i]; in platformGradient()
/external/webkit/Source/WebCore/platform/graphics/cairo/
DGradientCairo.cpp55 Vector<ColorStop>::iterator stopIterator = m_stops.begin(); in platformGradient()
56 while (stopIterator != m_stops.end()) { in platformGradient()
/external/webkit/Source/WebCore/
DChangeLog-2010-12-0651925 Most gradients have only 2 color stops, pre-reserve space for these in m_stops