Lines Matching refs:sharedBuffer
28 #include "platform/SharedBuffer.h"
73 static HashSet<SharedBuffer*>& liveBuffers()
75 DEFINE_STATIC_LOCAL(HashSet<SharedBuffer*>, buffers, ());
79 static bool sizeComparator(SharedBuffer* a, SharedBuffer* b)
84 static CString snippetForBuffer(SharedBuffer* sharedBuffer)
88 unsigned snippetLength = std::min(sharedBuffer->size(), kMaxSnippetLength);
93 while (unsigned segmentLength = sharedBuffer->getSomeData(segment, offset)) {
112 Vector<SharedBuffer*> buffers;
113 for (HashSet<SharedBuffer*>::const_iterator iter = liveBuffers().begin(); iter != liveBuffers().end(); ++iter)
124 static void didCreateSharedBuffer(SharedBuffer* buffer)
132 static void willDestroySharedBuffer(SharedBuffer* buffer)
140 SharedBuffer::SharedBuffer()
149 SharedBuffer::SharedBuffer(size_t size)
160 SharedBuffer::SharedBuffer(const char* data, int size)
164 // FIXME: Use unsigned consistently, and check for invalid casts when calling into SharedBuffer from other code.
175 SharedBuffer::SharedBuffer(const char* data, int size, PurgeableVector::PurgeableOption purgeable)
179 // FIXME: Use unsigned consistently, and check for invalid casts when calling into SharedBuffer from other code.
190 SharedBuffer::SharedBuffer(const unsigned char* data, int size)
194 // FIXME: Use unsigned consistently, and check for invalid casts when calling into SharedBuffer from other code.
205 SharedBuffer::~SharedBuffer()
214 PassRefPtr<SharedBuffer> SharedBuffer::adoptVector(Vector<char>& vector)
216 RefPtr<SharedBuffer> buffer = create();
222 unsigned SharedBuffer::size() const
227 const char* SharedBuffer::data() const
233 void SharedBuffer::append(PassRefPtr<SharedBuffer> data)
243 void SharedBuffer::append(const char* data, unsigned length)
282 void SharedBuffer::append(const Vector<char>& data)
287 void SharedBuffer::clear()
297 PassRefPtr<SharedBuffer> SharedBuffer::copy() const
299 RefPtr<SharedBuffer> clone(adoptRef(new SharedBuffer));
315 void SharedBuffer::mergeSegmentsIntoBuffer() const
331 unsigned SharedBuffer::getSomeData(const char*& someData, unsigned position) const
363 PassRefPtr<ArrayBuffer> SharedBuffer::getAsArrayBuffer() const
386 PassRefPtr<SkData> SharedBuffer::getAsSkData() const
406 bool SharedBuffer::lock()
411 void SharedBuffer::unlock()
417 bool SharedBuffer::isLocked() const