Home
last modified time | relevance | path

Searched refs:SkMemoryStream (Results 1 – 25 of 39) sorted by relevance

12

/external/skia/src/core/
DSkStream.cpp259 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 …]
DSkPicture.cpp156 SkMemoryStream stream(data, size); in MakeFromData()
164 SkMemoryStream stream(data->data(), data->size()); in MakeFromData()
DSkFontDescriptor.cpp111 skstd::make_unique<SkMemoryStream>(data), index, axis, axisCount); in Deserialize()
/external/skia/tests/
DFrontBufferedStreamTest.cpp57 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()
DFakeStreams.h40 SkMemoryStream fStream;
84 SkMemoryStream fStream;
DStreamTest.cpp168 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()
DCodecExactReadTest.cpp68 SkMemoryStream stream(std::move(multiData)); in DEF_TEST()
DSkDOMTest.cpp40 SkMemoryStream docStream(gDoc, sizeof(gDoc) - 1); in DEF_TEST()
DStreamBufferTest.cpp86 { [&data]() { return new SkMemoryStream(data); }, false }, in DEF_TEST()
DCodecTest.cpp452 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()
DTypefaceTest.cpp51 sk_sp<SkTypeface> newTypeface(SkTypeface::MakeFromStream(new SkMemoryStream(sk_ref_sp(data)))); in TypefaceStyle_test()
/external/skia/include/core/
DSkStream.h300 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/
DSkRawCodec.cpp199 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()
DSkIcoCodec.cpp143 std::unique_ptr<SkMemoryStream> embeddedStream(new SkMemoryStream(data)); in NewFromStream()
DSkWbmpCodec.cpp159 SkMemoryStream stream(buffer, bytesRead, false); in IsWbmp()
DSkAndroidCodec.cpp104 return NewFromStream(new SkMemoryStream(data), chunkReader); in NewFromData()
DSkBmpStandardCodec.cpp294 SkMemoryStream subStream(subStreamMemoryBase, subStreamLength, false); in decodeRows()
DSkCodec.cpp114 return NewFromStream(new SkMemoryStream(data), reader); in NewFromData()
/external/skia/src/android/
DSkBitmapRegionDecoder.cpp16 return SkBitmapRegionDecoder::Create(new SkMemoryStream(data), in Create()
/external/skia/src/ports/
DSkFontMgr_custom_embedded.cpp51 auto stream = skstd::make_unique<SkMemoryStream>(data, size, false); in load_embedded_font()
DSkImageGeneratorWIC.cpp34 hr = SkIStream::CreateFromSkStream(new SkMemoryStream(sk_ref_sp(data)), true, &iStream); in NewFromEncodedWIC()
DSkFontMgr_android.cpp80 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()
DSkFontMgr_custom.cpp196 return this->createFromStream(new SkMemoryStream(sk_ref_sp(data)), ttcIndex); in onCreateFromData()
/external/skia/samplecode/
DSampleAnimator.cpp60 SkMemoryStream is(buffer, size); in decodeMemory()
/external/skia/src/xml/
DSkXMLParser.cpp180 SkMemoryStream docStream(doc, len); in parse()

12