Home
last modified time | relevance | path

Searched refs:SharedBuffer (Results 1 – 25 of 119) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/platform/
DSharedBuffer.h43 class PLATFORM_EXPORT SharedBuffer : public RefCounted<SharedBuffer> {
45 static PassRefPtr<SharedBuffer> create() { return adoptRef(new SharedBuffer); } in create()
46 static PassRefPtr<SharedBuffer> create(size_t size) { return adoptRef(new SharedBuffer(size)); } in create()
47 …static PassRefPtr<SharedBuffer> create(const char* c, int i) { return adoptRef(new SharedBuffer(c,… in create()
48 …static PassRefPtr<SharedBuffer> create(const unsigned char* c, int i) { return adoptRef(new Shared… in create()
50 static PassRefPtr<SharedBuffer> adoptVector(Vector<char>& vector);
54 static PassRefPtr<SharedBuffer> adoptPurgeableBuffer(PassOwnPtr<PurgeableBuffer>);
56 ~SharedBuffer();
69 void append(SharedBuffer*);
75 PassRefPtr<SharedBuffer> copy() const;
[all …]
DSharedBuffer.cpp77 static HashSet<SharedBuffer*>& liveBuffers() in liveBuffers()
79 DEFINE_STATIC_LOCAL(HashSet<SharedBuffer*>, buffers, ()); in liveBuffers()
83 static bool sizeComparator(SharedBuffer* a, SharedBuffer* b) in sizeComparator()
88 static CString snippetForBuffer(SharedBuffer* sharedBuffer) in snippetForBuffer()
116 Vector<SharedBuffer*> buffers; in printStats()
117 …for (HashSet<SharedBuffer*>::const_iterator iter = liveBuffers().begin(); iter != liveBuffers().en… in printStats()
128 static void didCreateSharedBuffer(SharedBuffer* buffer) in didCreateSharedBuffer()
136 static void willDestroySharedBuffer(SharedBuffer* buffer) in willDestroySharedBuffer()
144 SharedBuffer::SharedBuffer() in SharedBuffer() function in WebCore::SharedBuffer
152 SharedBuffer::SharedBuffer(size_t size) in SharedBuffer() function in WebCore::SharedBuffer
[all …]
DSharedBufferTest.cpp50 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData0, strlen(testData0)); in TEST()
65 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData, strlen(testData)); in TEST()
90 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::adoptVector(vector0); in TEST()
115 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::adoptVector(vector0); in TEST()
158 RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(testData, length); in TEST()
165 RefPtr<SharedBuffer> clone = sharedBuffer->copy(); in TEST()
DSharedBufferChunkReader.h40 class SharedBuffer; variable
44 SharedBufferChunkReader(SharedBuffer*, const Vector<char>& separator);
45 SharedBufferChunkReader(SharedBuffer*, const char* separator);
61 SharedBuffer* m_buffer;
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DThreadSafeDataTransportTest.cpp42 RefPtr<SharedBuffer> buffer = SharedBuffer::create(testString, sizeof(testString)); in TEST()
47 SharedBuffer* tempBuffer = 0; in TEST()
61 RefPtr<SharedBuffer> buffer1 = SharedBuffer::create(testString1, sizeof(testString1) - 1); in TEST()
63 RefPtr<SharedBuffer> buffer2 = SharedBuffer::create(testString2, sizeof(testString2) - 1); in TEST()
65 RefPtr<SharedBuffer> buffer3 = SharedBuffer::create(testString3, sizeof(testString3) - 1); in TEST()
72 SharedBuffer* tempBuffer = 0; in TEST()
DThreadSafeDataTransport.h38 class SharedBuffer; variable
53 void setData(SharedBuffer*, bool allDataReceived);
56 void data(SharedBuffer**, bool* allDataReceived);
65 Vector<RefPtr<SharedBuffer> > m_newBufferQueue;
66 RefPtr<SharedBuffer> m_readBuffer;
DThreadSafeDataTransport.cpp35 : m_readBuffer(SharedBuffer::create()) in ThreadSafeDataTransport()
44 void ThreadSafeDataTransport::setData(SharedBuffer* buffer, bool allDataReceived) in setData()
47 Vector<RefPtr<SharedBuffer> > newBufferQueue; in setData()
52 newBufferQueue.append(SharedBuffer::create(segment, length)); in setData()
60 void ThreadSafeDataTransport::data(SharedBuffer** buffer, bool* allDataReceived) in data()
62 Vector<RefPtr<SharedBuffer> > newBufferQueue; in data()
DDeferredImageDecoder.h42 class SharedBuffer; variable
48 …static PassOwnPtr<DeferredImageDecoder> create(const SharedBuffer& data, ImageSource::AlphaOption,…
60 void setData(SharedBuffer* data, bool allDataReceived);
85 void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
87 RefPtr<SharedBuffer> m_data;
DImageFrameGenerator.h46 class SharedBuffer; variable
59 …static PassRefPtr<ImageFrameGenerator> create(const SkISize& fullSize, PassRefPtr<SharedBuffer> da…
64 …ImageFrameGenerator(const SkISize& fullSize, PassRefPtr<SharedBuffer>, bool allDataReceived, bool …
76 void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
79 void copyData(RefPtr<SharedBuffer>*, bool* allDataReceived);
/external/chromium_org/third_party/WebKit/Source/web/tests/
DGIFImageDecoderTest.cpp51 PassRefPtr<SharedBuffer> readFile(const char* fileName) in readFile()
69 void createDecodingBaseline(SharedBuffer* data, Vector<unsigned>* baselineHashes) in createDecodingBaseline()
84 RefPtr<SharedBuffer> fullData = readFile(gifFile); in testRandomFrameDecode()
116 RefPtr<SharedBuffer> data = readFile(gifFile); in testRandomDecodeAfterClearFrameBufferCache()
143 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); in TEST()
169 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); in TEST()
193 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated.gif"); in TEST()
200 RefPtr<SharedBuffer> tempData = SharedBuffer::create(data->data(), length); in TEST()
218 …RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/animated-gif-with-offsets… in TEST()
226 RefPtr<SharedBuffer> tempData = SharedBuffer::create(data->data(), length); in TEST()
[all …]
DWEBPImageDecoderTest.cpp53 PassRefPtr<SharedBuffer> readFile(const char* fileName) in readFile()
71 void createDecodingBaseline(SharedBuffer* data, Vector<unsigned>* baselineHashes) in createDecodingBaseline()
86 RefPtr<SharedBuffer> fullData = readFile(webpFile); in testRandomFrameDecode()
118 RefPtr<SharedBuffer> data = readFile(webpFile); in testRandomDecodeAfterClearFrameBufferCache()
142 RefPtr<SharedBuffer> data = readFile(webpFile); in testDecodeAfterReallocatingData()
150 RefPtr<SharedBuffer> reallocatedData = data.get()->copy(); in testDecodeAfterReallocatingData()
165 RefPtr<SharedBuffer> data = readFile(webpFile); in testInvalidImage()
190 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/webp-animated.webp"); in TEST_F()
207 RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/webp-animated.webp"); in TEST_F()
249 …RefPtr<SharedBuffer> data = readFile("/LayoutTests/fast/images/resources/webp-animated-opaque.webp… in TEST_F()
[all …]
DOpenTypeVerticalDataTest.cpp42 template <typename T> const T* validateOffset(const SharedBuffer& buffer, uint16_t offset) const in validateOffset()
50 RefPtr<SharedBuffer> buffer = SharedBuffer::create(sizeof(TestTable)); in TEST()
54 buffer = SharedBuffer::create(sizeof(TestTable) - 1); in TEST()
58 buffer = SharedBuffer::create(sizeof(TestTable) + 1); in TEST()
65 RefPtr<SharedBuffer> buffer = SharedBuffer::create(sizeof(TestTable)); in TEST()
DWebImageTest.cpp46 static PassRefPtr<SharedBuffer> readFile(const char* fileName) in readFile()
57 RefPtr<SharedBuffer> data = readFile("white-1x1.png"); in TEST()
68 RefPtr<SharedBuffer> data = readFile("black-and-white.ico"); in TEST()
83 RefPtr<SharedBuffer> data = readFile("valid_header_missing_bitmap.ico"); in TEST()
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebData.cpp52 m_private = SharedBuffer::create(data, size); in assign()
69 WebData::WebData(const PassRefPtr<SharedBuffer>& buffer) in WebData()
74 WebData& WebData::operator=(const PassRefPtr<SharedBuffer>& buffer) in operator =()
80 WebData::operator PassRefPtr<SharedBuffer>() const in operator PassRefPtr<SharedBuffer>()
82 return PassRefPtr<SharedBuffer>(m_private.get()); in operator PassRefPtr<SharedBuffer>()
/external/chromium_org/third_party/WebKit/Source/platform/mhtml/
DArchiveResource.h42 …static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&, const ResourceRes…
43 static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&,
49 SharedBuffer* data() const { return m_data.get(); } in data()
55 …ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const AtomicString& mimeType, const AtomicS…
59 RefPtr<SharedBuffer> m_data;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/opentype/
DOpenTypeSanitizer.h38 class SharedBuffer; variable
42 explicit OpenTypeSanitizer(SharedBuffer* buffer) in OpenTypeSanitizer()
47 PassRefPtr<SharedBuffer> sanitize();
52 SharedBuffer* const m_buffer;
DOpenTypeVerticalData.cpp137 …const CoverageTable* coverage(const SharedBuffer& buffer) const { return validateOffset<CoverageTa… in coverage()
152 bool getSubstitutions(HashMap<Glyph, Glyph>* map, const SharedBuffer& buffer) const in getSubstitutions()
215 const LookupTable* lookup(uint16_t index, const SharedBuffer& buffer) const in lookup()
229 …stitutions(const LookupList* lookups, HashMap<Glyph, Glyph>* map, const SharedBuffer& buffer) const in getGlyphSubstitutions()
250 const FeatureTable* feature(uint16_t index, OpenType::Tag tag, const SharedBuffer& buffer) const in feature()
260 const FeatureTable* findFeature(OpenType::Tag tag, const SharedBuffer& buffer) const in findFeature()
276 …e* feature(OpenType::Tag featureTag, const FeatureList* features, const SharedBuffer& buffer) const in feature()
298 const LangSysTable* defaultLangSys(const SharedBuffer& buffer) const in defaultLangSys()
319 const ScriptTable* script(OpenType::Tag tag, const SharedBuffer& buffer) const in script()
331 const ScriptTable* defaultScript(const SharedBuffer& buffer) const in defaultScript()
[all …]
DOpenTypeTypes.h68 template <typename T> static const T* validateTable(const RefPtr<SharedBuffer>& buffer, size_t coun…
77 static bool isValidEnd(const SharedBuffer& buffer, const void* position) in isValidEnd()
85 …template <typename T> static const T* validatePtr(const SharedBuffer& buffer, const void* position) in validatePtr()
93 template <typename T> const T* validateOffset(const SharedBuffer& buffer, uint16_t offset) const in validateOffset()
/external/chromium_org/third_party/WebKit/public/platform/
DWebData.h37 namespace WebCore { class SharedBuffer; } variable
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;
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
DIDBRequest.h51 class SharedBuffer; variable
99 …blink::WebIDBCursor>, PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer>);
101 virtual void onSuccess(PassRefPtr<SharedBuffer>);
102 virtual void onSuccess(PassRefPtr<SharedBuffer>, PassRefPtr<IDBKey>, const IDBKeyPath&);
105 …irtual void onSuccess(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer>);
154 …Ptr<IDBCursor>, PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRefPtr<SharedBuffer> value);
172 RefPtr<SharedBuffer> m_cursorValue;
DIDBAny.h73 …static PassRefPtr<IDBAny> create(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDB… in create()
106 SharedBuffer* buffer() const;
123 explicit IDBAny(PassRefPtr<SharedBuffer>);
124 explicit IDBAny(PassRefPtr<SharedBuffer>, PassRefPtr<IDBKey>, const IDBKeyPath&);
138 const RefPtr<SharedBuffer> m_buffer;
/external/chromium_org/third_party/WebKit/Source/core/loader/
DSubstituteData.h40 …SubstituteData(PassRefPtr<SharedBuffer> content, const AtomicString& mimeType, const AtomicString&… in SubstituteData()
50 const SharedBuffer* content() const { return m_content.get(); } in content()
56 RefPtr<SharedBuffer> m_content;
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DNetworkResourcesData.h47 class SharedBuffer; variable
113 PassRefPtr<SharedBuffer> buffer() const { return m_buffer; } in buffer()
114 void setBuffer(PassRefPtr<SharedBuffer> buffer) { m_buffer = buffer; } in setBuffer()
135 RefPtr<SharedBuffer> m_dataBuffer;
143 RefPtr<SharedBuffer> m_buffer;
159 …void addResourceSharedBuffer(const String& requestId, PassRefPtr<SharedBuffer>, const String& text…
/external/chromium_org/third_party/WebKit/Source/platform/fonts/skia/
DFontPlatformDataSkia.cpp64 PassRefPtr<SharedBuffer> FontPlatformData::openTypeTable(uint32_t table) const in openTypeTable()
66 RefPtr<SharedBuffer> buffer; in openTypeTable()
73 buffer = SharedBuffer::adoptVector(tableBuffer); in openTypeTable()
/external/chromium_org/remoting/host/
Ddesktop_session_agent.cc70 class DesktopSessionAgent::SharedBuffer : public webrtc::SharedMemory { class in remoting::DesktopSessionAgent
72 static scoped_ptr<SharedBuffer> Create(DesktopSessionAgent* agent, in Create()
77 return scoped_ptr<SharedBuffer>(); in Create()
78 return scoped_ptr<SharedBuffer>( in Create()
79 new SharedBuffer(agent, memory.Pass(), size, id)); in Create()
82 virtual ~SharedBuffer() { in ~SharedBuffer()
87 SharedBuffer(DesktopSessionAgent* agent, in SharedBuffer() function in remoting::DesktopSessionAgent::SharedBuffer
105 DISALLOW_COPY_AND_ASSIGN(SharedBuffer);
183 scoped_ptr<SharedBuffer> buffer = in CreateSharedMemory()
184 SharedBuffer::Create(this, size, next_shared_buffer_id_); in CreateSharedMemory()

12345