Home
last modified time | relevance | path

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

1234

/external/skia/src/core/
DSkStream.cpp266 SkMemoryStream::SkMemoryStream() { in SkMemoryStream() function in SkMemoryStream
271 SkMemoryStream::SkMemoryStream(size_t size) { in SkMemoryStream() function in SkMemoryStream
276 SkMemoryStream::SkMemoryStream(const void* src, size_t size, bool copyData) { in SkMemoryStream() function in SkMemoryStream
281 SkMemoryStream::SkMemoryStream(sk_sp<SkData> data) : fData(std::move(data)) { in SkMemoryStream() function in SkMemoryStream
288 std::unique_ptr<SkMemoryStream> SkMemoryStream::MakeCopy(const void* data, size_t length) { in MakeCopy()
289 return skstd::make_unique<SkMemoryStream>(data, length, true); in MakeCopy()
292 std::unique_ptr<SkMemoryStream> SkMemoryStream::MakeDirect(const void* data, size_t length) { in MakeDirect()
293 return skstd::make_unique<SkMemoryStream>(data, length, false); in MakeDirect()
296 std::unique_ptr<SkMemoryStream> SkMemoryStream::Make(sk_sp<SkData> data) { in Make()
297 return skstd::make_unique<SkMemoryStream>(std::move(data)); in Make()
[all …]
/external/skqp/src/core/
DSkStream.cpp266 SkMemoryStream::SkMemoryStream() { in SkMemoryStream() function in SkMemoryStream
271 SkMemoryStream::SkMemoryStream(size_t size) { in SkMemoryStream() function in SkMemoryStream
276 SkMemoryStream::SkMemoryStream(const void* src, size_t size, bool copyData) { in SkMemoryStream() function in SkMemoryStream
281 SkMemoryStream::SkMemoryStream(sk_sp<SkData> data) : fData(std::move(data)) { in SkMemoryStream() function in SkMemoryStream
288 std::unique_ptr<SkMemoryStream> SkMemoryStream::MakeCopy(const void* data, size_t length) { in MakeCopy()
289 return skstd::make_unique<SkMemoryStream>(data, length, true); in MakeCopy()
292 std::unique_ptr<SkMemoryStream> SkMemoryStream::MakeDirect(const void* data, size_t length) { in MakeDirect()
293 return skstd::make_unique<SkMemoryStream>(data, length, false); in MakeDirect()
296 std::unique_ptr<SkMemoryStream> SkMemoryStream::Make(sk_sp<SkData> data) { in Make()
297 return skstd::make_unique<SkMemoryStream>(std::move(data)); in Make()
[all …]
/external/skqp/include/core/
DSkStream.h363 class SK_API SkMemoryStream : public SkStreamMemory {
365 SkMemoryStream();
368 SkMemoryStream(size_t length);
371 SkMemoryStream(const void* data, size_t length, bool copyData = false);
374 SkMemoryStream(sk_sp<SkData> data);
377 static std::unique_ptr<SkMemoryStream> MakeCopy(const void* data, size_t length);
380 static std::unique_ptr<SkMemoryStream> MakeDirect(const void* data, size_t length);
383 static std::unique_ptr<SkMemoryStream> Make(sk_sp<SkData> data);
410 std::unique_ptr<SkMemoryStream> duplicate() const { in duplicate()
411 return std::unique_ptr<SkMemoryStream>(this->onDuplicate()); in duplicate()
[all …]
/external/skia/include/core/
DSkStream.h363 class SK_API SkMemoryStream : public SkStreamMemory {
365 SkMemoryStream();
368 SkMemoryStream(size_t length);
371 SkMemoryStream(const void* data, size_t length, bool copyData = false);
374 SkMemoryStream(sk_sp<SkData> data);
377 static std::unique_ptr<SkMemoryStream> MakeCopy(const void* data, size_t length);
380 static std::unique_ptr<SkMemoryStream> MakeDirect(const void* data, size_t length);
383 static std::unique_ptr<SkMemoryStream> Make(sk_sp<SkData> data);
410 std::unique_ptr<SkMemoryStream> duplicate() const { in duplicate()
411 return std::unique_ptr<SkMemoryStream>(this->onDuplicate()); in duplicate()
[all …]
/external/skqp/docs/
DSkMemoryStream_Reference.bmh4 #Class SkMemoryStream
12 #Method SkMemoryStream()
28 #Method SkMemoryStream(size_t length)
49 #Method SkMemoryStream(const void* data, size_t length, bool copyData = false)
71 #Method SkMemoryStream(sk_sp<SkData> data)
91 #Method static std::unique_ptr<SkMemoryStream> MakeCopy(const void* data, size_t length)
112 #Method static std::unique_ptr<SkMemoryStream> MakeDirect(const void* data, size_t length)
133 #Method static std::unique_ptr<SkMemoryStream> Make(sk_sp<SkData> data)
308 #Method std::unique_ptr<SkMemoryStream> duplicate() const
376 #Method std::unique_ptr<SkMemoryStream> fork() const
[all …]
/external/skia/docs/
DSkMemoryStream_Reference.bmh4 #Class SkMemoryStream
12 #Method SkMemoryStream()
28 #Method SkMemoryStream(size_t length)
49 #Method SkMemoryStream(const void* data, size_t length, bool copyData = false)
71 #Method SkMemoryStream(sk_sp<SkData> data)
91 #Method static std::unique_ptr<SkMemoryStream> MakeCopy(const void* data, size_t length)
112 #Method static std::unique_ptr<SkMemoryStream> MakeDirect(const void* data, size_t length)
133 #Method static std::unique_ptr<SkMemoryStream> Make(sk_sp<SkData> data)
308 #Method std::unique_ptr<SkMemoryStream> duplicate() const
376 #Method std::unique_ptr<SkMemoryStream> fork() const
[all …]
/external/skia/tests/
DFrontBufferedStreamTest.cpp57 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_incremental_buffering()
86 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_perfectly_sized_buffer()
106 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_skipping()
131 class AndroidLikeMemoryStream : public SkMemoryStream {
151 typedef SkMemoryStream INHERITED;
219 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_initial_offset()
DFakeStreams.h40 SkMemoryStream fStream;
84 SkMemoryStream fStream;
DCodecExactReadTest.cpp75 SkMemoryStream stream(std::move(multiData)); in DEF_TEST()
/external/skqp/tests/
DFrontBufferedStreamTest.cpp57 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_incremental_buffering()
86 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_perfectly_sized_buffer()
106 SkMemoryStream* memStream = SkMemoryStream::MakeDirect(gAbcs, strlen(gAbcs)).release(); in test_skipping()
131 class AndroidLikeMemoryStream : public SkMemoryStream {
151 typedef SkMemoryStream INHERITED;
219 SkMemoryStream* memStream = new SkMemoryStream(gAbcs, strlen(gAbcs), false); in test_initial_offset()
DFakeStreams.h40 SkMemoryStream fStream;
84 SkMemoryStream fStream;
DCodecExactReadTest.cpp75 SkMemoryStream stream(std::move(multiData)); in DEF_TEST()
DStreamTest.cpp175 static void TestDereferencingData(SkMemoryStream* memStream) { in TestDereferencingData()
182 SkMemoryStream memStream(nullptr); in TestNullData()
293 SkMemoryStream memStream(gAbcs, strlen(gAbcs), false); in DEF_TEST()
469 SkMemoryStream smartStream(src.get(), (size_t)N); in DEF_TEST()
/external/skia/modules/skottie/src/
DSkottieTest.cpp26 SkMemoryStream stream(json, strlen(json)); in DEF_TEST()
115 SkMemoryStream stream(json, strlen(json)); in DEF_TEST()
203 SkMemoryStream stream(json, strlen(json)); in DEF_TEST()
/external/skqp/modules/skottie/src/
DSkottieTest.cpp26 SkMemoryStream stream(json, strlen(json)); in DEF_TEST()
115 SkMemoryStream stream(json, strlen(json)); in DEF_TEST()
203 SkMemoryStream stream(json, strlen(json)); in DEF_TEST()
/external/skqp/platform_tools/android/apps/skottie/src/main/cpp/
DJavaInputStreamAdaptor.cpp213 static SkMemoryStream* adaptor_to_mem_stream(SkStream* stream) { in adaptor_to_mem_stream()
230 SkMemoryStream* streamMem = new SkMemoryStream(); in adaptor_to_mem_stream()
/external/skia/platform_tools/android/apps/skottie/src/main/cpp/
DJavaInputStreamAdaptor.cpp213 static SkMemoryStream* adaptor_to_mem_stream(SkStream* stream) { in adaptor_to_mem_stream()
230 SkMemoryStream* streamMem = new SkMemoryStream(); in adaptor_to_mem_stream()
/external/skqp/src/codec/
DSkRawCodec.cpp189 virtual std::unique_ptr<SkMemoryStream> transferBuffer(size_t offset, size_t size) = 0;
248 std::unique_ptr<SkMemoryStream> transferBuffer(size_t offset, size_t size) override { in transferBuffer()
280 return SkMemoryStream::Make(data); in transferBuffer()
352 std::unique_ptr<SkMemoryStream> transferBuffer(size_t offset, size_t size) override { in transferBuffer()
373 return SkMemoryStream::Make(data); in transferBuffer()
383 return SkMemoryStream::Make(data); in transferBuffer()
/external/skia/src/codec/
DSkRawCodec.cpp189 virtual std::unique_ptr<SkMemoryStream> transferBuffer(size_t offset, size_t size) = 0;
248 std::unique_ptr<SkMemoryStream> transferBuffer(size_t offset, size_t size) override { in transferBuffer()
280 return SkMemoryStream::Make(data); in transferBuffer()
352 std::unique_ptr<SkMemoryStream> transferBuffer(size_t offset, size_t size) override { in transferBuffer()
373 return SkMemoryStream::Make(data); in transferBuffer()
383 return SkMemoryStream::Make(data); in transferBuffer()
/external/skqp/modules/skottie/fuzz/
DFuzzSkottieJSON.cpp15 SkMemoryStream stream(bytes); in FuzzSkottieJSON()
/external/skia/modules/skottie/fuzz/
DFuzzSkottieJSON.cpp15 SkMemoryStream stream(bytes); in FuzzSkottieJSON()
/external/skqp/src/android/
DSkBitmapRegionDecoder.cpp16 return SkBitmapRegionDecoder::Create(new SkMemoryStream(data), in Create()
/external/skia/src/android/
DSkBitmapRegionDecoder.cpp16 return SkBitmapRegionDecoder::Create(new SkMemoryStream(data), in Create()
/external/skqp/tools/
DResources.cpp40 return data ? std::unique_ptr<SkStreamAsset>(new SkMemoryStream(std::move(data))) in GetResourceAsStream()
/external/skia/tools/
DResources.cpp40 return data ? std::unique_ptr<SkStreamAsset>(new SkMemoryStream(std::move(data))) in GetResourceAsStream()

1234