Home
last modified time | relevance | path

Searched refs:StreamReader (Results 1 – 25 of 160) sorted by relevance

1234567

/third_party/skia/experimental/skrive/src/reader/
DJsonReader.cpp19 StreamReader::BlockType block_type(const char* type_name) { in block_type()
22 StreamReader::BlockType block_type; in block_type()
24 {"artboard" , StreamReader::BlockType::kActorArtboard }, in block_type()
25 {"artboards" , StreamReader::BlockType::kArtboards }, in block_type()
26 {"colorFill" , StreamReader::BlockType::kColorFill }, in block_type()
27 {"colorStroke" , StreamReader::BlockType::kColorStroke }, in block_type()
28 {"ellipse" , StreamReader::BlockType::kActorEllipse }, in block_type()
29 {"gradientFill" , StreamReader::BlockType::kGradientFill }, in block_type()
30 {"gradientStroke" , StreamReader::BlockType::kGradientStroke }, in block_type()
31 {"node" , StreamReader::BlockType::kActorNode }, in block_type()
[all …]
DStreamReader.cpp19 extern std::unique_ptr<StreamReader> MakeJsonStreamReader(const char[], size_t);
20 extern std::unique_ptr<StreamReader> MakeBinaryStreamReader(std::unique_ptr<SkStreamAsset>);
22 std::unique_ptr<StreamReader> StreamReader::Make(const sk_sp<SkData>& data) { in Make()
34 std::unique_ptr<StreamReader> StreamReader::Make(std::unique_ptr<SkStreamAsset> stream) { in Make()
53 return StreamReader::Make(SkData::MakeFromStream(stream.get(), stream->getLength())); in Make()
56 SkV2 StreamReader::readV2(const char label[]) { in readV2()
64 SkColor4f StreamReader::readColor(const char label[]) { in readColor()
DStreamReader.h22 class StreamReader {
24 virtual ~StreamReader() = default;
26 static std::unique_ptr<StreamReader> Make(std::unique_ptr<SkStreamAsset>);
27 static std::unique_ptr<StreamReader> Make(const sk_sp<SkData>&);
81 explicit AutoBlock(StreamReader* reader) in AutoBlock()
85 explicit AutoBlock(const std::unique_ptr<StreamReader>& reader) in AutoBlock()
98 StreamReader* fReader;
/third_party/skia/experimental/skrive/src/
DArtboard.cpp21 size_t parse_node(StreamReader*, T*);
24 std::tuple<sk_sp<Component>, size_t> make_from_stream(StreamReader* sr, Args&&... args) { in make_from_stream()
32 std::tuple<sk_sp<Component>, size_t> parse_component(StreamReader* sr) { in parse_component()
33 StreamReader::AutoBlock block(sr); in parse_component()
35 case StreamReader::BlockType::kActorNode: in parse_component()
37 case StreamReader::BlockType::kActorShape: in parse_component()
39 case StreamReader::BlockType::kColorFill: in parse_component()
41 case StreamReader::BlockType::kColorStroke: in parse_component()
43 case StreamReader::BlockType::kActorEllipse: in parse_component()
45 case StreamReader::BlockType::kActorRectangle: in parse_component()
[all …]
DSkRive.cpp17 extern sk_sp<Artboard> parse_artboard(StreamReader*);
19 void parse_artboards(const sk_sp<SkRive>& skrive, StreamReader* sr) { in parse_artboards()
24 StreamReader::AutoBlock block(sr); in parse_artboards()
25 if (block.type() == StreamReader::BlockType::kEoB) { in parse_artboards()
28 if (block.type() != StreamReader::BlockType::kActorArtboard) { in parse_artboards()
37 static sk_sp<SkRive> parse_skrive(std::unique_ptr<StreamReader> sr) { in parse_skrive()
48 StreamReader::AutoBlock block(sr); in parse_skrive()
49 if (block.type() == StreamReader::BlockType::kEoB) { in parse_skrive()
54 case StreamReader::BlockType::kArtboards: in parse_skrive()
69 auto reader = internal::StreamReader::Make(std::move(stream)); in make()
DColor.cpp17 size_t parse_node(StreamReader*, T*);
19 extern void parse_fill_stroke(StreamReader*, Paint*);
22 size_t parse_node<ColorPaint>(StreamReader* sr, ColorPaint* node) { in parse_node()
/third_party/skia/experimental/skrive/tests/
DBinaryReader.cpp40 auto sr = StreamReader::Make(SkData::MakeWithoutCopy(bin, sizeof(bin))); in DEF_TEST()
45 StreamReader::AutoBlock ab(sr); in DEF_TEST()
46 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kArtboards); in DEF_TEST()
50 StreamReader::AutoBlock ab(sr); in DEF_TEST()
51 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kActorArtboard); in DEF_TEST()
65 StreamReader::AutoBlock ab(sr); in DEF_TEST()
66 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kEoB); in DEF_TEST()
70 StreamReader::AutoBlock ab(sr); in DEF_TEST()
71 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kEoB); in DEF_TEST()
DJsonReader.cpp30 auto sr = StreamReader::Make(SkData::MakeWithoutCopy(json, strlen(json))); in DEF_TEST()
35 StreamReader::AutoBlock ab(sr); in DEF_TEST()
36 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kArtboards); in DEF_TEST()
40 StreamReader::AutoBlock ab(sr); in DEF_TEST()
41 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kActorArtboard); in DEF_TEST()
55 StreamReader::AutoBlock ab(sr); in DEF_TEST()
56 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kEoB); in DEF_TEST()
60 StreamReader::AutoBlock ab(sr); in DEF_TEST()
61 REPORTER_ASSERT(reporter, ab.type() == StreamReader::BlockType::kEoB); in DEF_TEST()
/third_party/python/Lib/test/test_asyncio/
Dtest_streams.py45 stream = asyncio.StreamReader()
141 stream = asyncio.StreamReader(loop=self.loop)
147 stream = asyncio.StreamReader(loop=self.loop)
154 stream = asyncio.StreamReader(loop=self.loop)
163 stream = asyncio.StreamReader(loop=self.loop)
176 stream = asyncio.StreamReader(loop=self.loop)
187 stream = asyncio.StreamReader(loop=self.loop)
200 stream = asyncio.StreamReader(loop=self.loop)
215 stream = asyncio.StreamReader(loop=self.loop)
227 asyncio.StreamReader(limit=0, loop=self.loop)
[all …]
/third_party/python/Lib/encodings/
Dlatin_1.py31 class StreamReader(Codec,codecs.StreamReader): class
34 class StreamConverter(StreamWriter,StreamReader):
48 streamreader=StreamReader,
Dascii.py31 class StreamReader(Codec,codecs.StreamReader): class
34 class StreamConverter(StreamWriter,StreamReader):
49 streamreader=StreamReader,
Dcharmap.py49 class StreamReader(Codec,codecs.StreamReader): class
52 codecs.StreamReader.__init__(self,stream,errors)
68 streamreader=StreamReader,
Dutf_8.py28 class StreamReader(codecs.StreamReader): class
40 streamreader=StreamReader,
Dutf_32_le.py23 class StreamReader(codecs.StreamReader): class
35 streamreader=StreamReader,
Dundefined.py35 class StreamReader(Codec,codecs.StreamReader): class
48 streamreader=StreamReader,
Doem.py27 class StreamReader(codecs.StreamReader): class
39 streamreader=StreamReader,
Dmbcs.py33 class StreamReader(codecs.StreamReader): class
45 streamreader=StreamReader,
Dutf_16_be.py28 class StreamReader(codecs.StreamReader): class
40 streamreader=StreamReader,
Dutf_32_be.py23 class StreamReader(codecs.StreamReader): class
35 streamreader=StreamReader,
Dutf_16_le.py28 class StreamReader(codecs.StreamReader): class
40 streamreader=StreamReader,
Dutf_7.py24 class StreamReader(codecs.StreamReader): class
36 streamreader=StreamReader,
Draw_unicode_escape.py31 class StreamReader(Codec,codecs.StreamReader): class
44 streamreader=StreamReader,
Dunicode_escape.py31 class StreamReader(Codec,codecs.StreamReader): class
44 streamreader=StreamReader,
Deuc_kr.py24 class StreamReader(Codec, mbc.MultibyteStreamReader, codecs.StreamReader): class
37 streamreader=StreamReader,
/third_party/python/Lib/test/
Dtestcodec.py25 class StreamReader(Codec,codecs.StreamReader): class
32 return (Codec().encode,Codec().decode,StreamReader,StreamWriter)

1234567