Index: third_party/WebKit/Source/platform/graphics/ContiguousContainer.h |
diff --git a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h |
index 95d21b2d4cd5c06733100281e20f2890dee8363e..0e0f2b35b8f1491d4a1c8ae6e271dd5827790e11 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h |
+++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h |
@@ -60,6 +60,10 @@ protected: |
void clear(); |
void swap(ContiguousContainerBase&); |
+ // Discards excess bufer capacity. Intended for use when no more appending |
jbroman
2016/07/12 19:05:49
nit: bufer -> buffer
Xianzhu
2016/07/13 00:28:21
Done.
|
+ // is anticipated. |
+ void shrinkToFit(); |
+ |
Vector<void*> m_elements; |
private: |
@@ -142,6 +146,7 @@ public: |
using ContiguousContainerBase::capacityInBytes; |
using ContiguousContainerBase::usedCapacityInBytes; |
using ContiguousContainerBase::memoryUsageInBytes; |
+ using ContiguousContainerBase::shrinkToFit; |
iterator begin() { return iterator(m_elements.begin()); } |
iterator end() { return iterator(m_elements.end()); } |