Searched refs:capacity (Results 101 - 125 of 732) sorted by path

1234567891011>>

/external/chromium_org/net/spdy/
H A Dhpack_huffman_table_test.cc344 const size_t capacity = 4; local
351 EXPECT_TRUE(table_.DecodeString(&input_stream, capacity, &buffer));
361 EXPECT_FALSE(table_.DecodeString(&input_stream, capacity, &buffer));
366 std::vector<char> input_storage(1 + capacity / 4, '\0');
370 EXPECT_FALSE(table_.DecodeString(&input_stream, capacity, &buffer));
372 std::vector<char> expected(capacity, '\x02');
374 EXPECT_EQ(capacity, buffer.size());
383 EXPECT_FALSE(table_.DecodeString(&input_stream, capacity, &buffer));
/external/chromium_org/net/tools/balsa/
H A Dbalsa_headers.cc734 header_lines_.capacity() * sizeof(HeaderLineDescription));
/external/chromium_org/net/tools/quic/
H A Dquic_spdy_client_stream.cc54 read_buf_->SetCapacity(read_buf_->capacity() + kHeaderBufInitialSize);
H A Dquic_spdy_server_stream.cc38 read_buf_->SetCapacity(read_buf_->capacity() + kHeaderBufInitialSize);
/external/chromium_org/net/websockets/
H A Dwebsocket_basic_stream.cc405 CHECK_GE(incomplete_control_frame_body_->capacity(), new_offset)
H A Dwebsocket_inflater.cc169 WebSocketInflater::OutputBuffer::OutputBuffer(size_t capacity) argument
170 : capacity_(capacity),
222 WebSocketInflater::InputQueue::InputQueue(size_t capacity) argument
223 : capacity_(capacity), head_of_first_buffer_(0), tail_of_last_buffer_(0) {}
H A Dwebsocket_inflater.h27 // |input_queue_capacity| is a capacity for each contiguous block in the
40 // If the size of the output data reaches the capacity of the output buffer,
68 // Ring buffer with fixed capacity.
71 explicit OutputBuffer(size_t capacity);
93 // |capacity| is used for the capacity of each IOBuffer in this queue.
95 explicit InputQueue(size_t capacity);
/external/chromium_org/sdch/open-vcdiff/src/
H A Doutput_string_test.cc58 const size_t initial_capacity = string_.capacity();
59 string_.resize(string_.capacity());
60 EXPECT_EQ(initial_capacity, string_.capacity());
62 EXPECT_LE(initial_capacity + 1, string_.capacity());
H A Dvcdecoder.cc1079 if (decoded_target->capacity() < wanted_capacity) {
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DV8PersistentValueVector.h59 static void ReserveCapacity(Impl* impl, size_t capacity) argument
61 impl->reserveCapacity(capacity);
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DStaticNodeList.h63 return m_nodes.capacity() * sizeof(RefPtrWillBeMember<NodeType>);
/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DTextIterator.cpp1985 m_overlap = m_buffer.capacity() / 4;
2040 } else if (m_buffer.size() == m_buffer.capacity()) {
2047 size_t usableLength = std::min(m_buffer.capacity() - oldLength, length);
2077 size_t usableLength = std::min(m_buffer.capacity() - m_prefixLength, length - wordBoundaryContextStart);
2081 if (wordBoundaryContextStart || m_prefixLength == m_buffer.capacity())
2171 if (size != m_buffer.capacity())
/external/chromium_org/third_party/WebKit/Source/core/fetch/
H A DMemoryCache.cpp51 static const float cTargetPrunePercentage = .95f; // Percentage of capacity toward which we prune, to avoid immediately pruning again.
208 // Dead resource capacity is whatever space is not occupied by live resources, bounded by an independent minimum and maximum.
209 size_t capacity = m_capacity - std::min(m_liveSize, m_capacity); // Start with available capacity. local
210 capacity = std::max(capacity, m_minDeadCapacity); // Make sure it's above the minimum.
211 capacity = std::min(capacity, m_maxDeadCapacity); // Make sure it's below the maximum.
212 return capacity;
217 // Live resource capacity i
224 size_t capacity = liveCapacity(); local
267 size_t capacity = deadCapacity(); local
[all...]
H A DMemoryCache.h51 // with a min dead resource capacity of 25% and a max dead resource capacity of 50%:
211 size_t capacity() const { return m_capacity; } function in class:blink::FINAL
H A DMemoryCacheTest.cpp103 ASSERT_EQ(totalCapacity, memoryCache()->capacity());
139 // Verifies that dead resources that exceed dead resource capacity are evicted
249 // the total dead resource size is more than double the dead resource capacity.
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DCollectionItemsCache.h54 ptrdiff_t allocationSize() const { return m_cachedList.capacity() * sizeof(NodeType*); }
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DWebGLRenderingContextBase.cpp5585 WebGLRenderingContextBase::LRUImageBufferCache::LRUImageBufferCache(int capacity) argument
5586 : m_buffers(adoptArrayPtr(new OwnPtr<ImageBuffer>[capacity]))
5587 , m_capacity(capacity)
H A DWebGLRenderingContextBase.h519 LRUImageBufferCache(int capacity);
/external/chromium_org/third_party/WebKit/Source/core/html/shadow/
H A DDateTimeEditElement.cpp475 if (m_fields.size() == m_fields.capacity())
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DTraceEventDispatcher.cpp89 events.reserveCapacity(m_backgroundEvents.capacity());
/external/chromium_org/third_party/WebKit/Source/core/paint/
H A DListMarkerPainter.cpp191 ASSERT(reversedText.length() == reversedText.capacity());
/external/chromium_org/third_party/WebKit/Source/core/testing/
H A DInternals.cpp1451 result.append(memoryCache()->capacity());
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/javascript/ com/google/javascript/jscomp/ ...
/external/chromium_org/third_party/WebKit/Source/platform/
H A DPurgeableVector.cpp61 void PurgeableVector::reserveCapacity(size_t capacity) argument
66 if (reservePurgeableCapacity(capacity, UseExactCapacity))
71 if (!m_vector.capacity()) {
73 // exact specified capacity to avoid consuming too much memory for small resources.
74 m_vector.reserveInitialCapacity(capacity);
76 m_vector.reserveCapacity(capacity);
206 bool PurgeableVector::reservePurgeableCapacity(size_t capacity, PurgeableAllocationStrategy allocationStrategy) argument
210 if (m_discardable && m_discardableCapacity >= capacity) {
211 ASSERT(!m_vector.capacity());
215 if (capacity < minimumDiscardableAllocationSiz
[all...]
H A DPurgeableVector.h91 void reserveCapacity(size_t capacity);
105 bool reservePurgeableCapacity(size_t capacity, PurgeableAllocationStrategy);
107 size_t adjustPurgeableCapacity(size_t capacity) const;

Completed in 594 milliseconds

1234567891011>>