Home
last modified time | relevance | path

Searched refs:m_bytesAllocated (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DCanvas2DLayerManager.cpp43 : m_bytesAllocated(0) in Canvas2DLayerManager()
52 ASSERT(!m_bytesAllocated); in ~Canvas2DLayerManager()
108 m_bytesAllocated += layer->bytesAllocated(); in addLayerToList()
117 ASSERT((intptr_t)m_bytesAllocated + deltaBytes >= 0); in layerAllocatedStorageChanged()
118 m_bytesAllocated = (intptr_t)m_bytesAllocated + deltaBytes; in layerAllocatedStorageChanged()
132 if (m_bytesAllocated > m_maxBytesAllocated) { in freeMemoryIfNecessary()
135 while (m_bytesAllocated > m_targetBytesAllocated && layer) { in freeMemoryIfNecessary()
136 layer->freeMemoryIfPossible(m_bytesAllocated - m_targetBytesAllocated); in freeMemoryIfNecessary()
142 while (m_bytesAllocated > m_targetBytesAllocated && leastRecentlyUsedLayer) { in freeMemoryIfNecessary()
154 m_bytesAllocated -= layer->bytesAllocated(); in removeLayerFromList()
DCanvas2DLayerBridge.h80 size_t bytesAllocated() const {return m_bytesAllocated;} in bytesAllocated()
93 size_t m_bytesAllocated; variable
DCanvas2DLayerBridge.cpp78 , m_bytesAllocated(0) in Canvas2DLayerBridge()
166 intptr_t delta = (intptr_t)bytesAllocated - (intptr_t)m_bytesAllocated; in storageAllocatedForRecordingChanged()
167 m_bytesAllocated = bytesAllocated; in storageAllocatedForRecordingChanged()
208 m_bytesAllocated -= bytesFreed; in freeMemoryIfPossible()
DCanvas2DLayerManager.h55 size_t m_bytesAllocated; variable
/external/chromium_org/third_party/WebKit/Source/web/tests/
DCanvas2DLayerManagerTest.cpp61 return m_bytesAllocated; in storageAllocatedForRecording()
76 m_bytesAllocated -= bytesFreed; in freeMemoryIfPossible()
124 EXPECT_EQ((size_t)0, manager.m_bytesAllocated); in storageAllocationTrackingTest()
126 EXPECT_EQ((size_t)1, manager.m_bytesAllocated); in storageAllocationTrackingTest()
129 EXPECT_EQ((size_t)2, manager.m_bytesAllocated); in storageAllocationTrackingTest()
132 EXPECT_EQ((size_t)1, manager.m_bytesAllocated); in storageAllocationTrackingTest()
136 EXPECT_EQ((size_t)1, manager.m_bytesAllocated); in storageAllocationTrackingTest()
139 EXPECT_EQ((size_t)3, manager.m_bytesAllocated); in storageAllocationTrackingTest()
142 EXPECT_EQ((size_t)1, manager.m_bytesAllocated); in storageAllocationTrackingTest()