Home
last modified time | relevance | path

Searched refs:SkStream (Results 1 – 25 of 258) sorted by relevance

1234567891011

/external/skqp/include/core/
DSkStream.h18 class SkStream; variable
41 class SK_API SkStream {
43 virtual ~SkStream() {} in ~SkStream()
44 SkStream() {} in SkStream() function
114 std::unique_ptr<SkStream> duplicate() const { in duplicate()
115 return std::unique_ptr<SkStream>(this->onDuplicate()); in duplicate()
120 std::unique_ptr<SkStream> fork() const { in fork()
121 return std::unique_ptr<SkStream>(this->onFork()); in fork()
154 virtual SkStream* onDuplicate() const { return nullptr; } in onDuplicate()
155 virtual SkStream* onFork() const { return nullptr; } in onFork()
[all …]
DSkPicture.h30 class SkStream; variable
61 static sk_sp<SkPicture> MakeFromStream(SkStream* stream,
215 static sk_sp<SkPicture> MakeFromStream(SkStream*, const SkDeserialProcs*,
227 static bool StreamIsSKP(SkStream*, struct SkPictInfo*);
229 friend bool SkPicture_StreamIsSKP(SkStream*, struct SkPictInfo*);
/external/skia/include/core/
DSkStream.h18 class SkStream; variable
41 class SK_API SkStream {
43 virtual ~SkStream() {} in ~SkStream()
44 SkStream() {} in SkStream() function
114 std::unique_ptr<SkStream> duplicate() const { in duplicate()
115 return std::unique_ptr<SkStream>(this->onDuplicate()); in duplicate()
120 std::unique_ptr<SkStream> fork() const { in fork()
121 return std::unique_ptr<SkStream>(this->onFork()); in fork()
154 virtual SkStream* onDuplicate() const { return nullptr; } in onDuplicate()
155 virtual SkStream* onFork() const { return nullptr; } in onFork()
[all …]
DSkPicture.h30 class SkStream; variable
61 static sk_sp<SkPicture> MakeFromStream(SkStream* stream,
215 static sk_sp<SkPicture> MakeFromStream(SkStream*, const SkDeserialProcs*,
227 static bool StreamIsSKP(SkStream*, struct SkPictInfo*);
229 friend bool SkPicture_StreamIsSKP(SkStream*, struct SkPictInfo*);
/external/skia/tests/
DFrontBufferedStreamTest.cpp16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read()
27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind()
37 const SkStream& bufferedStream, in test_hasLength()
38 const SkStream& streamBeingBuffered) { in test_hasLength()
59 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_incremental_buffering()
87 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_perfectly_sized_buffer()
107 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_skipping()
162 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_read_beyond_buffer()
176 class LengthOptionalStream : public SkStream {
210 auto buffered = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(stream), in test_length_combos()
[all …]
DStreamTest.cpp30 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, in test_loop_stream()
203 SkStream* stream, size_t bytesToPeek) { in compare_peek_to_read()
228 static void test_fully_peekable_stream(skiatest::Reporter* r, SkStream* stream, size_t limit) { in test_fully_peekable_stream()
235 const SkStream& original, in test_peeking_front_buffered_stream()
237 std::unique_ptr<SkStream> dupe(original.duplicate()); in test_peeking_front_buffered_stream()
399 class DumbStream : public SkStream {
423 SkStream* stream) { in stream_copy_test()
520 auto test_full_read = [&r, &expected, remaining](SkStream* stream) { in DEF_TEST()
529 auto test_rewind = [&r, &expected, remaining](SkStream* stream) { in DEF_TEST()
538 auto test_move = [&r, &expected, size, remaining](SkStream* stream) { in DEF_TEST()
[all …]
/external/skqp/tests/
DFrontBufferedStreamTest.cpp16 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read()
27 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind()
37 const SkStream& bufferedStream, in test_hasLength()
38 const SkStream& streamBeingBuffered) { in test_hasLength()
59 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_incremental_buffering()
87 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_perfectly_sized_buffer()
107 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_skipping()
162 auto bufferedStream = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(memStream), in test_read_beyond_buffer()
176 class LengthOptionalStream : public SkStream {
210 auto buffered = SkFrontBufferedStream::Make(std::unique_ptr<SkStream>(stream), in test_length_combos()
[all …]
DStreamTest.cpp30 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, in test_loop_stream()
203 SkStream* stream, size_t bytesToPeek) { in compare_peek_to_read()
228 static void test_fully_peekable_stream(skiatest::Reporter* r, SkStream* stream, size_t limit) { in test_fully_peekable_stream()
235 const SkStream& original, in test_peeking_front_buffered_stream()
237 std::unique_ptr<SkStream> dupe(original.duplicate()); in test_peeking_front_buffered_stream()
399 class DumbStream : public SkStream {
423 SkStream* stream) { in stream_copy_test()
520 auto test_full_read = [&r, &expected, remaining](SkStream* stream) { in DEF_TEST()
529 auto test_rewind = [&r, &expected, remaining](SkStream* stream) { in DEF_TEST()
538 auto test_move = [&r, &expected, size, remaining](SkStream* stream) { in DEF_TEST()
[all …]
/external/skia/src/core/
DSkFontStream.h11 class SkStream; variable
25 static int CountTTCEntries(SkStream*);
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { in GetTableSize()
DSkFontStream.cpp40 static bool read(SkStream* stream, void* buffer, size_t amount) { in read()
44 static bool skip(SkStream* stream, size_t amount) { in skip()
55 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { in count_tables()
114 bool init(SkStream* stream, int ttcIndex) { in init()
139 int SkFontStream::CountTTCEntries(SkStream* stream) { in CountTTCEntries()
156 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, in GetTableTags()
171 size_t SkFontStream::GetTableData(SkStream* stream, int ttcIndex, in GetTableData()
DSkStreamPriv.h14 class SkStream; variable
26 sk_sp<SkData> SkCopyStreamToData(SkStream* stream);
32 bool SkStreamCopy(SkWStream* out, SkStream* input);
/external/skqp/src/core/
DSkFontStream.h11 class SkStream; variable
25 static int CountTTCEntries(SkStream*);
33 static int GetTableTags(SkStream*, int ttcIndex, SkFontTableTag tags[]);
41 static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
44 static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) { in GetTableSize()
DSkFontStream.cpp40 static bool read(SkStream* stream, void* buffer, size_t amount) { in read()
44 static bool skip(SkStream* stream, size_t amount) { in skip()
55 static int count_tables(SkStream* stream, int ttcIndex, size_t* offsetToDir) { in count_tables()
114 bool init(SkStream* stream, int ttcIndex) { in init()
139 int SkFontStream::CountTTCEntries(SkStream* stream) { in CountTTCEntries()
156 int SkFontStream::GetTableTags(SkStream* stream, int ttcIndex, in GetTableTags()
171 size_t SkFontStream::GetTableData(SkStream* stream, int ttcIndex, in GetTableData()
DSkStreamPriv.h14 class SkStream; variable
26 sk_sp<SkData> SkCopyStreamToData(SkStream* stream);
32 bool SkStreamCopy(SkWStream* out, SkStream* input);
/external/skia/src/utils/mac/
DSkStream_mac.cpp25 SkStream* stream = (SkStream*)info; in delete_stream_proc()
35 return ((SkStream*)info)->read(buffer, bytes); in get_bytes_proc()
39 return ((SkStream*)info)->skip((size_t) bytes); in skip_forward_proc()
44 ((SkStream*)info)->rewind(); in rewind_proc()
50 delete (SkStream*)info; in release_info_proc()
/external/skqp/src/utils/mac/
DSkStream_mac.cpp25 SkStream* stream = (SkStream*)info; in delete_stream_proc()
35 return ((SkStream*)info)->read(buffer, bytes); in get_bytes_proc()
39 return ((SkStream*)info)->skip((size_t) bytes); in skip_forward_proc()
44 ((SkStream*)info)->rewind(); in rewind_proc()
50 delete (SkStream*)info; in release_info_proc()
/external/skia/src/codec/
DSkBmpCodec.h31 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*);
37 static std::unique_ptr<SkCodec> MakeFromIco(std::unique_ptr<SkStream>, Result*);
41 SkBmpCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream>,
50 static Result ReadHeader(SkStream*, bool inIco, std::unique_ptr<SkCodec>* codecOut);
114 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*, bool inIco);
DSkJpegCodec.h32 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*);
66 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*,
91 static Result ReadHeader(SkStream* stream, SkCodec** codecOut,
104 SkJpegCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream,
DSkWbmpCodec.cpp40 static bool read_byte(SkStream* stream, uint8_t* data) in read_byte()
46 static bool read_mbf(SkStream* stream, uint64_t* value) { in read_mbf()
64 static bool read_header(SkStream* stream, SkISize* size) { in read_header()
96 SkWbmpCodec::SkWbmpCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream) in SkWbmpCodec()
148 std::unique_ptr<SkCodec> SkWbmpCodec::MakeFromStream(std::unique_ptr<SkStream> stream, in MakeFromStream()
/external/skqp/src/codec/
DSkBmpCodec.h31 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*);
37 static std::unique_ptr<SkCodec> MakeFromIco(std::unique_ptr<SkStream>, Result*);
41 SkBmpCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream>,
50 static Result ReadHeader(SkStream*, bool inIco, std::unique_ptr<SkCodec>* codecOut);
114 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*, bool inIco);
DSkJpegCodec.h32 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*);
66 static std::unique_ptr<SkCodec> MakeFromStream(std::unique_ptr<SkStream>, Result*,
91 static Result ReadHeader(SkStream* stream, SkCodec** codecOut,
104 SkJpegCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream,
DSkWbmpCodec.cpp40 static bool read_byte(SkStream* stream, uint8_t* data) in read_byte()
46 static bool read_mbf(SkStream* stream, uint64_t* value) { in read_mbf()
64 static bool read_header(SkStream* stream, SkISize* size) { in read_header()
96 SkWbmpCodec::SkWbmpCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream) in SkWbmpCodec()
148 std::unique_ptr<SkCodec> SkWbmpCodec::MakeFromStream(std::unique_ptr<SkStream> stream, in MakeFromStream()
/external/skia/src/utils/
DSkFrontBufferedStream.cpp15 FrontBufferedStream(std::unique_ptr<SkStream>, size_t bufferSize);
32 std::unique_ptr<SkStream> fStream;
61 typedef SkStream INHERITED;
64 std::unique_ptr<SkStreamRewindable> SkFrontBufferedStream::Make(std::unique_ptr<SkStream> stream, in Make()
73 FrontBufferedStream::FrontBufferedStream(std::unique_ptr<SkStream> stream, size_t bufferSize) in FrontBufferedStream()
/external/skqp/src/utils/
DSkFrontBufferedStream.cpp15 FrontBufferedStream(std::unique_ptr<SkStream>, size_t bufferSize);
32 std::unique_ptr<SkStream> fStream;
61 typedef SkStream INHERITED;
64 std::unique_ptr<SkStreamRewindable> SkFrontBufferedStream::Make(std::unique_ptr<SkStream> stream, in Make()
73 FrontBufferedStream::FrontBufferedStream(std::unique_ptr<SkStream> stream, size_t bufferSize) in FrontBufferedStream()
/external/skqp/src/utils/win/
DSkIStream.h20 class SkStream; variable
85 SkStream *fSkStream;
89 SkIStream(SkStream* stream, bool fDeleteOnRelease);
93 HRESULT static CreateFromSkStream(SkStream* stream

1234567891011