| Index: third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
|
| index cb42fefa480b0aa32f03d22131e9d8205945ed00..9da33c4b0d70b3130e0ebd3dba3bbe82d14a616b 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp
|
| @@ -171,6 +171,12 @@ void ContiguousContainerBase::swap(ContiguousContainerBase& other)
|
| std::swap(m_maxObjectSize, other.m_maxObjectSize);
|
| }
|
|
|
| +void ContiguousContainerBase::removeEmptyBuffers()
|
| +{
|
| + while (m_endIndex < m_buffers.size() - 1)
|
| + m_buffers.removeLast();
|
| +}
|
| +
|
| ContiguousContainerBase::Buffer*
|
| ContiguousContainerBase::allocateNewBufferForNextAllocation(size_t bufferSize, const char* typeName)
|
| {
|
|
|