/system/core/libpixelflinger/codeflinger/tinyutils/ |
SharedBuffer.cpp | 22 #include "SharedBuffer.h" 29 SharedBuffer* SharedBuffer::alloc(size_t size) 31 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); 40 ssize_t SharedBuffer::dealloc(const SharedBuffer* released) 43 free(const_cast<SharedBuffer*>(released)); 47 SharedBuffer* SharedBuffer::edit() cons [all...] |
SharedBuffer.h | 28 class SharedBuffer 40 static SharedBuffer* alloc(size_t size); 42 /*! free the memory associated with the SharedBuffer. 43 * Fails if there are any users associated with this SharedBuffer. 47 static ssize_t dealloc(const SharedBuffer* released); 49 //! get the SharedBuffer from the data pointer 50 static inline const SharedBuffer* sharedBuffer(const void* data); 61 //! get back a SharedBuffer object from its data 62 static inline SharedBuffer* bufferFromData(void* data) [all...] |
VectorImpl.cpp | 27 #include "SharedBuffer.h" 56 SharedBuffer::sharedBuffer(mStorage)->acquire(); 79 SharedBuffer::sharedBuffer(mStorage)->acquire(); 91 SharedBuffer* sb = SharedBuffer::sharedBuffer(mStorage)->attemptEdit(); 93 sb = SharedBuffer::alloc(capacity() * mItemSize); 107 return SharedBuffer::sharedBuffer(mStorage)->size() / mItemSize [all...] |
/system/core/libutils/ |
SharedBuffer.cpp | 20 #include <utils/SharedBuffer.h> 27 SharedBuffer* SharedBuffer::alloc(size_t size) 29 SharedBuffer* sb = static_cast<SharedBuffer *>(malloc(sizeof(SharedBuffer) + size)); 38 ssize_t SharedBuffer::dealloc(const SharedBuffer* released) 41 free(const_cast<SharedBuffer*>(released)); 45 SharedBuffer* SharedBuffer::edit() cons [all...] |
String16.cpp | 32 static SharedBuffer* gEmptyStringBuf = NULL; 43 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); 52 SharedBuffer::bufferFromData(gEmptyString)->release(); 72 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); 104 SharedBuffer::alloc(sizeof(char16_t))->data()); 112 SharedBuffer::bufferFromData(mString)->acquire(); 124 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)) [all...] |
String8.cpp | 21 #include <utils/SharedBuffer.h> 40 static SharedBuffer* gEmptyStringBuf = NULL; 62 SharedBuffer* buf = SharedBuffer::alloc(1); 71 SharedBuffer::bufferFromData(gEmptyString)->release(); 81 SharedBuffer* buf = SharedBuffer::alloc(len+1); 104 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); 126 SharedBuffer* buf = SharedBuffer::alloc(bytes+1) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
SharedBufferTest.cpp | 33 #include "platform/SharedBuffer.h" 50 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData0, strlen(testData0)); 51 sharedBuffer->append(testData1, strlen(testData1)); 52 sharedBuffer->append(testData2, strlen(testData2)); 54 RefPtr<ArrayBuffer> arrayBuffer = sharedBuffer->getAsArrayBuffer(); 65 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData, strlen(testData)) [all...] |
SharedBuffer.cpp | 28 #include "platform/SharedBuffer.h" 77 static HashSet<SharedBuffer*>& liveBuffers() 79 DEFINE_STATIC_LOCAL(HashSet<SharedBuffer*>, buffers, ()); 83 static bool sizeComparator(SharedBuffer* a, SharedBuffer* b) 88 static CString snippetForBuffer(SharedBuffer* sharedBuffer) 92 unsigned snippetLength = std::min(sharedBuffer->size(), kMaxSnippetLength); 97 while (unsigned segmentLength = sharedBuffer->getSomeData(segment, offset)) { 116 Vector<SharedBuffer*> buffers [all...] |
SharedBuffer.h | 43 class PLATFORM_EXPORT SharedBuffer : public RefCounted<SharedBuffer> { 45 static PassRefPtr<SharedBuffer> create() { return adoptRef(new SharedBuffer); } 46 static PassRefPtr<SharedBuffer> create(size_t size) { return adoptRef(new SharedBuffer(size)); } 47 static PassRefPtr<SharedBuffer> create(const char* c, int i) { return adoptRef(new SharedBuffer(c, i)); } 48 static PassRefPtr<SharedBuffer> create(const unsigned char* c, int i) { return adoptRef(new SharedBuffer(c, i)); [all...] |
/system/core/include/utils/ |
SharedBuffer.h | 27 class SharedBuffer 39 static SharedBuffer* alloc(size_t size); 41 /*! free the memory associated with the SharedBuffer. 42 * Fails if there are any users associated with this SharedBuffer. 46 static ssize_t dealloc(const SharedBuffer* released); 57 //! get back a SharedBuffer object from its data 58 static inline SharedBuffer* bufferFromData(void* data); 60 //! get back a SharedBuffer object from its data 61 static inline const SharedBuffer* bufferFromData(const void* data); 63 //! get the size of a SharedBuffer object from its dat [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
ThreadSafeDataTransportTest.cpp | 30 #include "platform/SharedBuffer.h" 42 RefPtr<SharedBuffer> buffer = SharedBuffer::create(testString, sizeof(testString)); 47 SharedBuffer* tempBuffer = 0; 61 RefPtr<SharedBuffer> buffer1 = SharedBuffer::create(testString1, sizeof(testString1) - 1); 63 RefPtr<SharedBuffer> buffer2 = SharedBuffer::create(testString2, sizeof(testString2) - 1); 65 RefPtr<SharedBuffer> buffer3 = SharedBuffer::create(testString3, sizeof(testString3) - 1) [all...] |
ThreadSafeDataTransport.cpp | 30 #include "platform/SharedBuffer.h" 35 : m_readBuffer(SharedBuffer::create()) 44 void ThreadSafeDataTransport::setData(SharedBuffer* buffer, bool allDataReceived) 47 Vector<RefPtr<SharedBuffer> > newBufferQueue; 52 newBufferQueue.append(SharedBuffer::create(segment, length)); 60 void ThreadSafeDataTransport::data(SharedBuffer** buffer, bool* allDataReceived) 62 Vector<RefPtr<SharedBuffer> > newBufferQueue;
|
ThreadSafeDataTransport.h | 38 class SharedBuffer; 41 // SharedBuffer in a thread-safe manner, and to minimize memory copies 52 // SharedBuffer. 53 void setData(SharedBuffer*, bool allDataReceived); 56 void data(SharedBuffer**, bool* allDataReceived); 65 Vector<RefPtr<SharedBuffer> > m_newBufferQueue; 66 RefPtr<SharedBuffer> m_readBuffer;
|
DeferredImageDecoder.h | 42 class SharedBuffer; 48 static PassOwnPtr<DeferredImageDecoder> create(const SharedBuffer& data, ImageSource::AlphaOption, ImageSource::GammaAndColorProfileOption); 60 void setData(SharedBuffer* data, bool allDataReceived); 85 void setData(PassRefPtr<SharedBuffer>, bool allDataReceived); 87 RefPtr<SharedBuffer> m_data;
|
ImageFrameGenerator.h | 46 class SharedBuffer; 59 static PassRefPtr<ImageFrameGenerator> create(const SkISize& fullSize, PassRefPtr<SharedBuffer> data, bool allDataReceived, bool isMultiFrame = false) 64 ImageFrameGenerator(const SkISize& fullSize, PassRefPtr<SharedBuffer>, bool allDataReceived, bool isMultiFrame); 76 void setData(PassRefPtr<SharedBuffer>, bool allDataReceived); 78 // Creates a new SharedBuffer containing the data received so far. 79 void copyData(RefPtr<SharedBuffer>*, bool* allDataReceived);
|
/external/chromium_org/third_party/WebKit/Source/web/tests/ |
GIFImageDecoderTest.cpp | 35 #include "platform/SharedBuffer.h" 51 PassRefPtr<SharedBuffer> readFile(const char* fileName) 69 void createDecodingBaseline(SharedBuffer* data, Vector<unsigned>* baselineHashes) 84 RefPtr<SharedBuffer> fullData = readFile(gifFile); 116 RefPtr<SharedBuffer> data = readFile(gifFile); 143 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); 169 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); 193 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); 200 RefPtr<SharedBuffer> tempData = SharedBuffer::create(data->data(), length) [all...] |
OpenTypeVerticalDataTest.cpp | 30 #include "platform/SharedBuffer.h" 42 template <typename T> const T* validateOffset(const SharedBuffer& buffer, uint16_t offset) const 50 RefPtr<SharedBuffer> buffer = SharedBuffer::create(sizeof(TestTable)); 54 buffer = SharedBuffer::create(sizeof(TestTable) - 1); 58 buffer = SharedBuffer::create(sizeof(TestTable) + 1); 65 RefPtr<SharedBuffer> buffer = SharedBuffer::create(sizeof(TestTable));
|
WEBPImageDecoderTest.cpp | 36 #include "platform/SharedBuffer.h" 53 PassRefPtr<SharedBuffer> readFile(const char* fileName) 71 void createDecodingBaseline(SharedBuffer* data, Vector<unsigned>* baselineHashes) 86 RefPtr<SharedBuffer> fullData = readFile(webpFile); 118 RefPtr<SharedBuffer> data = readFile(webpFile); 142 RefPtr<SharedBuffer> data = readFile(webpFile); 150 RefPtr<SharedBuffer> reallocatedData = data.get()->copy(); 165 RefPtr<SharedBuffer> data = readFile(webpFile); 190 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/webp-animated.webp"); 207 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/webp-animated.webp") [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
WebData.cpp | 34 #include "platform/SharedBuffer.h" 52 m_private = SharedBuffer::create(data, size); 69 WebData::WebData(const PassRefPtr<SharedBuffer>& buffer) 74 WebData& WebData::operator=(const PassRefPtr<SharedBuffer>& buffer) 80 WebData::operator PassRefPtr<SharedBuffer>() const 82 return PassRefPtr<SharedBuffer>(m_private.get());
|
/external/chromium_org/third_party/WebKit/Source/platform/mhtml/ |
ArchiveResource.h | 32 #include "platform/SharedBuffer.h" 42 static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&, const ResourceResponse&); 43 static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&, 49 SharedBuffer* data() const { return m_data.get(); } 55 ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName, const ResourceResponse&); 59 RefPtr<SharedBuffer> m_data;
|
/external/chromium_org/third_party/WebKit/Source/core/loader/ |
SubstituteData.h | 29 #include "platform/SharedBuffer.h" 40 SubstituteData(PassRefPtr<SharedBuffer> content, const AtomicString& mimeType, const AtomicString& textEncoding, const KURL& failingURL) 50 const SharedBuffer* content() const { return m_content.get(); } 56 RefPtr<SharedBuffer> m_content;
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/ |
OpenTypeSanitizer.h | 38 class SharedBuffer; 42 explicit OpenTypeSanitizer(SharedBuffer* buffer) 47 PassRefPtr<SharedBuffer> sanitize(); 52 SharedBuffer* const m_buffer;
|
/external/chromium_org/third_party/WebKit/public/platform/ |
WebData.h | 37 namespace WebCore { class SharedBuffer; } 83 WebData(const PassRefPtr<WebCore::SharedBuffer>&); 84 WebData& operator=(const PassRefPtr<WebCore::SharedBuffer>&); 85 operator PassRefPtr<WebCore::SharedBuffer>() const; 102 WebPrivatePtr<WebCore::SharedBuffer> m_private;
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/osal/ |
Exynos_OSAL_Android.cpp | 274 phREF->SharedBuffer[i].BufferFd = -1; 275 phREF->SharedBuffer[i].BufferFd1 = -1; 276 phREF->SharedBuffer[i].BufferFd2 = -1; 309 if (phREF->SharedBuffer[i].BufferFd > -1) { 310 while(phREF->SharedBuffer[i].cnt > 0) { 311 if (phREF->SharedBuffer[i].BufferFd > -1) 312 ion_decRef(getIonFd(module), phREF->SharedBuffer[i].pIonHandle); 313 if (phREF->SharedBuffer[i].BufferFd1 > -1) 314 ion_decRef(getIonFd(module), phREF->SharedBuffer[i].pIonHandle1); 315 if (phREF->SharedBuffer[i].BufferFd2 > -1 [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBAny.h | 32 #include "platform/SharedBuffer.h" 73 static PassRefPtr<IDBAny> create(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath) 106 SharedBuffer* buffer() const; 123 explicit IDBAny(PassRefPtr<SharedBuffer>); 124 explicit IDBAny(PassRefPtr<SharedBuffer>, PassRefPtr<IDBKey>, const IDBKeyPath&); 138 const RefPtr<SharedBuffer> m_buffer;
|