/external/skia/src/core/ |
D | SkStream.cpp | 259 SkMemoryStream::SkMemoryStream() { in SkMemoryStream() function in SkMemoryStream 264 SkMemoryStream::SkMemoryStream(size_t size) { in SkMemoryStream() function in SkMemoryStream 269 SkMemoryStream::SkMemoryStream(const void* src, size_t size, bool copyData) { in SkMemoryStream() function in SkMemoryStream 274 SkMemoryStream::SkMemoryStream(sk_sp<SkData> data) : fData(std::move(data)) { in SkMemoryStream() function in SkMemoryStream 281 void SkMemoryStream::setMemoryOwned(const void* src, size_t size) { in setMemoryOwned() 286 void SkMemoryStream::setMemory(const void* src, size_t size, bool copyData) { in setMemory() 291 void SkMemoryStream::setData(sk_sp<SkData> data) { in setData() 300 void SkMemoryStream::skipToAlign4() { in skipToAlign4() 305 size_t SkMemoryStream::read(void* buffer, size_t size) { in read() 318 size_t SkMemoryStream::peek(void* buffer, size_t size) const { in peek() [all …]
|
D | SkPicture.cpp | 156 SkMemoryStream stream(data, size); in MakeFromData() 164 SkMemoryStream stream(data->data(), data->size()); in MakeFromData()
|
D | SkFontDescriptor.cpp | 111 skstd::make_unique<SkMemoryStream>(data), index, axis, axisCount); in Deserialize()
|
/external/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 57 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_incremental_buffering() 85 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_perfectly_sized_buffer() 104 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_skipping() 128 class AndroidLikeMemoryStream : public SkMemoryStream { 148 typedef SkMemoryStream INHERITED; 214 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_initial_offset()
|
D | FakeStreams.h | 40 SkMemoryStream fStream; 84 SkMemoryStream fStream;
|
D | StreamTest.cpp | 168 static void TestDereferencingData(SkMemoryStream* memStream) { in TestDereferencingData() 175 SkMemoryStream memStream(nullptr); in TestNullData() 286 SkMemoryStream memStream(gAbcs, strlen(gAbcs), false); in DEF_TEST() 443 SkMemoryStream smartStream(src.get(), (size_t)N); in DEF_TEST()
|
D | CodecExactReadTest.cpp | 68 SkMemoryStream stream(std::move(multiData)); in DEF_TEST()
|
D | SkDOMTest.cpp | 40 SkMemoryStream docStream(gDoc, sizeof(gDoc) - 1); in DEF_TEST()
|
D | StreamBufferTest.cpp | 86 { [&data]() { return new SkMemoryStream(data); }, false }, in DEF_TEST()
|
D | CodecTest.cpp | 452 new SkMemoryStream(std::move(fullData)), SkCodec::MinBufferedBytesNeeded()); in check() 539 SkCodec* codec = SkCodec::NewFromStream(new SkMemoryStream(stream, len, false)); in test_invalid_stream() 543 SkAndroidCodec::NewFromStream(new SkMemoryStream(stream, len, false)); in test_invalid_stream() 903 SkMemoryStream fStream; 986 std::unique_ptr<SkStream> stream(new SkMemoryStream(maxSizeWbmp, sizeof(maxSizeWbmp), false)); in DEF_TEST() 1000 stream.reset(new SkMemoryStream(tooBigWbmp, sizeof(tooBigWbmp), false)); in DEF_TEST()
|
D | TypefaceTest.cpp | 51 sk_sp<SkTypeface> newTypeface(SkTypeface::MakeFromStream(new SkMemoryStream(sk_ref_sp(data)))); in TypefaceStyle_test()
|
/external/skia/include/core/ |
D | SkStream.h | 300 class SK_API SkMemoryStream : public SkStreamMemory { 302 SkMemoryStream(); 305 SkMemoryStream(size_t length); 308 SkMemoryStream(const void* data, size_t length, bool copyData = false); 311 SkMemoryStream(sk_sp<SkData>); 337 SkMemoryStream* duplicate() const override; 342 SkMemoryStream* fork() const override;
|
/external/skia/src/codec/ |
D | SkRawCodec.cpp | 199 virtual SkMemoryStream* transferBuffer(size_t offset, size_t size) = 0; 259 SkMemoryStream* transferBuffer(size_t offset, size_t size) override { in transferBuffer() 291 return new SkMemoryStream(data); in transferBuffer() 364 SkMemoryStream* transferBuffer(size_t offset, size_t size) override { in transferBuffer() 385 return new SkMemoryStream(data); in transferBuffer() 395 return new SkMemoryStream(data); in transferBuffer() 673 SkMemoryStream* memoryStream = in NewFromStream()
|
D | SkIcoCodec.cpp | 143 std::unique_ptr<SkMemoryStream> embeddedStream(new SkMemoryStream(data)); in NewFromStream()
|
D | SkWbmpCodec.cpp | 159 SkMemoryStream stream(buffer, bytesRead, false); in IsWbmp()
|
D | SkAndroidCodec.cpp | 104 return NewFromStream(new SkMemoryStream(data), chunkReader); in NewFromData()
|
D | SkBmpStandardCodec.cpp | 294 SkMemoryStream subStream(subStreamMemoryBase, subStreamLength, false); in decodeRows()
|
D | SkCodec.cpp | 114 return NewFromStream(new SkMemoryStream(data), reader); in NewFromData()
|
/external/skia/src/android/ |
D | SkBitmapRegionDecoder.cpp | 16 return SkBitmapRegionDecoder::Create(new SkMemoryStream(data), in Create()
|
/external/skia/src/ports/ |
D | SkFontMgr_custom_embedded.cpp | 51 auto stream = skstd::make_unique<SkMemoryStream>(data, size, false); in load_embedded_font()
|
D | SkImageGeneratorWIC.cpp | 34 hr = SkIStream::CreateFromSkStream(new SkMemoryStream(sk_ref_sp(data)), true, &iStream); in NewFromEncodedWIC()
|
D | SkFontMgr_android.cpp | 80 return data ? skstd::make_unique<SkMemoryStream>(std::move(data)) : nullptr; in makeStream() 414 return this->createFromStream(new SkMemoryStream(sk_ref_sp(data)), ttcIndex); in onCreateFromData()
|
D | SkFontMgr_custom.cpp | 196 return this->createFromStream(new SkMemoryStream(sk_ref_sp(data)), ttcIndex); in onCreateFromData()
|
/external/skia/samplecode/ |
D | SampleAnimator.cpp | 60 SkMemoryStream is(buffer, size); in decodeMemory()
|
/external/skia/src/xml/ |
D | SkXMLParser.cpp | 180 SkMemoryStream docStream(doc, len); in parse()
|