Home
last modified time | relevance | path

Searched refs:SkStream (Results 1 – 25 of 261) 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.h24 class SkStream; variable
56 static sk_sp<SkPicture> MakeFromStream(SkStream* stream,
247 static sk_sp<SkPicture> MakeFromStream(SkStream*, const SkDeserialProcs*,
259 static bool StreamIsSKP(SkStream*, struct SkPictInfo*);
261 friend bool SkPicture_StreamIsSKP(SkStream*, struct SkPictInfo*);
/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/tests/
DFrontBufferedStreamTest.cpp20 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, in test_read()
31 SkStream* bufferedStream, bool shouldSucceed) { in test_rewind()
41 const SkStream& bufferedStream, in test_hasLength()
42 const SkStream& streamBeingBuffered) { in test_hasLength()
64 std::unique_ptr<SkStream>(memStream), bufferSize); in test_incremental_buffering()
93 std::unique_ptr<SkStream>(memStream), bufferSize); in test_perfectly_sized_buffer()
113 std::unique_ptr<SkStream>(memStream), bufferSize); in test_skipping()
168 std::unique_ptr<SkStream>(memStream), bufferSize); in test_read_beyond_buffer()
181 class LengthOptionalStream : public SkStream {
216 std::unique_ptr<SkStream>(stream), bufferSize); in test_length_combos()
[all …]
DStreamTest.cpp35 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, in test_loop_stream()
208 SkStream* stream, size_t bytesToPeek) { in compare_peek_to_read()
233 static void test_fully_peekable_stream(skiatest::Reporter* r, SkStream* stream, size_t limit) { in test_fully_peekable_stream()
241 const SkStream& original, in test_peeking_front_buffered_stream()
243 std::unique_ptr<SkStream> dupe(original.duplicate()); in test_peeking_front_buffered_stream()
409 class DumbStream : public SkStream {
433 SkStream* stream) { in stream_copy_test()
530 auto test_full_read = [&r, &expected, remaining](SkStream* stream) { in DEF_TEST()
539 auto test_rewind = [&r, &expected, remaining](SkStream* stream) { in DEF_TEST()
548 auto test_move = [&r, &expected, size, remaining](SkStream* stream) { in DEF_TEST()
[all …]
DExifTest.cpp13 std::unique_ptr<SkStream> stream(GetResourceAsStream("images/exif-orientation-2-ur.jpg")); in DEF_TEST()
31 std::unique_ptr<SkStream> stream(GetResourceAsStream("images/orientation/exif.jpg")); in DEF_TEST()
40 std::unique_ptr<SkStream> stream(GetResourceAsStream("images/orientation/subifd.jpg")); in DEF_TEST()
/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/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/modules/svg/include/
DSkSVGDOM.h20 class SkStream; variable
38 sk_sp<SkSVGDOM> make(SkStream&) const;
45 static sk_sp<SkSVGDOM> MakeFromStream(SkStream& str) { in MakeFromStream()
/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
/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()

1234567891011