Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Unified Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.h

Issue 2107103002: Find cached display items directly during painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Still disable subsequence caching for spv2 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..2b02f8a080a4d52ae78dd9d156d5fb323e256065 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
+ // is anticipated.
+ void removeEmptyBuffers();
pdr. 2016/07/12 02:19:51 ContiguousContainer's buffers are sort of an inter
Xianzhu 2016/07/12 17:56:47 Done.
+
Vector<void*> m_elements;
private:
@@ -142,6 +146,7 @@ public:
using ContiguousContainerBase::capacityInBytes;
using ContiguousContainerBase::usedCapacityInBytes;
using ContiguousContainerBase::memoryUsageInBytes;
+ using ContiguousContainerBase::removeEmptyBuffers;
iterator begin() { return iterator(m_elements.begin()); }
iterator end() { return iterator(m_elements.end()); }

Powered by Google App Engine
This is Rietveld 408576698