16 #ifndef AGG_SPAN_ALLOCATOR_INCLUDED 17 #define AGG_SPAN_ALLOCATOR_INCLUDED 19 #include "agg_array.h" 27 typedef ColorT color_type;
30 AGG_INLINE color_type* allocate(
unsigned span_len)
32 if(span_len > m_span.size())
38 m_span.resize(((span_len + 255) >> 8) << 8);
43 AGG_INLINE color_type* span() {
return &m_span[0]; }
44 AGG_INLINE
unsigned max_span_len()
const {
return m_span.size(); }