|
|
|
@ -402,20 +402,6 @@ fluid::ViewPrivWithoutOwnBorder::ViewPrivWithoutOwnBorder(const Buffer *parent, |
|
|
|
|
m_border_size = borderSize; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const uint8_t* fluid::ViewPrivWithoutOwnBorder::InLineB(int index) const |
|
|
|
|
{ |
|
|
|
|
GAPI_DbgAssert(m_p); |
|
|
|
|
|
|
|
|
|
const auto &p_priv = m_p->priv(); |
|
|
|
|
|
|
|
|
|
GAPI_DbgAssert(index >= -m_border_size |
|
|
|
|
&& index < -m_border_size + m_lines_next_iter); |
|
|
|
|
|
|
|
|
|
const int log_idx = m_read_caret + index; |
|
|
|
|
|
|
|
|
|
return p_priv.storage().inLineB(log_idx, m_p->meta().size.height); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void fluid::ViewPrivWithoutOwnBorder::allocate(int lineConsumption, BorderOpt) |
|
|
|
|
{ |
|
|
|
|
initCache(lineConsumption); |
|
|
|
@ -475,17 +461,6 @@ std::size_t fluid::ViewPrivWithOwnBorder::size() const |
|
|
|
|
return m_own_storage.size(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const uint8_t* fluid::ViewPrivWithOwnBorder::InLineB(int index) const |
|
|
|
|
{ |
|
|
|
|
GAPI_DbgAssert(m_p); |
|
|
|
|
GAPI_DbgAssert(index >= -m_border_size |
|
|
|
|
&& index < -m_border_size + m_lines_next_iter); |
|
|
|
|
|
|
|
|
|
const int log_idx = m_read_caret + index; |
|
|
|
|
|
|
|
|
|
return m_own_storage.inLineB(log_idx, m_p->meta().size.height); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool fluid::View::ready() const |
|
|
|
|
{ |
|
|
|
|
return m_priv->ready(); |
|
|
|
@ -641,13 +616,6 @@ int fluid::Buffer::Priv::linesReady() const |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
uint8_t* fluid::Buffer::Priv::OutLineB(int index) |
|
|
|
|
{ |
|
|
|
|
GAPI_DbgAssert(index >= 0 && index < m_writer_lpi); |
|
|
|
|
|
|
|
|
|
return m_storage->ptr(m_write_caret + index); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int fluid::Buffer::Priv::lpi() const |
|
|
|
|
{ |
|
|
|
|
// FIXME:
|
|
|
|
|