Home
last modified time | relevance | path

Searched refs:SkStreamAsset (Results 1 – 25 of 178) sorted by relevance

12345678

/external/skia/include/core/
DSkStream.h21 class SkStreamAsset; variable
49 static std::unique_ptr<SkStreamAsset> MakeFromFile(const char path[]);
195 class SK_API SkStreamAsset : public SkStreamSeekable {
200 std::unique_ptr<SkStreamAsset> duplicate() const { in duplicate()
201 return std::unique_ptr<SkStreamAsset>(this->onDuplicate()); in duplicate()
203 std::unique_ptr<SkStreamAsset> fork() const { in fork()
204 return std::unique_ptr<SkStreamAsset>(this->onFork()); in fork()
207 SkStreamAsset* onDuplicate() const override = 0;
208 SkStreamAsset* onFork() const override = 0;
212 class SK_API SkStreamMemory : public SkStreamAsset {
[all …]
DSkFontMgr.h18 class SkStreamAsset; variable
104 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const;
107 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) const;
146 virtual sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>,
148 virtual sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>,
DSkTypeface.h26 class SkStreamAsset; variable
130 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset> stream, int index = 0);
315 std::unique_ptr<SkStreamAsset> openStream(int* ttcIndex) const;
380 virtual std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const = 0;
/external/skqp/include/core/
DSkStream.h21 class SkStreamAsset; variable
49 static std::unique_ptr<SkStreamAsset> MakeFromFile(const char path[]);
195 class SK_API SkStreamAsset : public SkStreamSeekable {
200 std::unique_ptr<SkStreamAsset> duplicate() const { in duplicate()
201 return std::unique_ptr<SkStreamAsset>(this->onDuplicate()); in duplicate()
203 std::unique_ptr<SkStreamAsset> fork() const { in fork()
204 return std::unique_ptr<SkStreamAsset>(this->onFork()); in fork()
207 SkStreamAsset* onDuplicate() const override = 0;
208 SkStreamAsset* onFork() const override = 0;
212 class SK_API SkStreamMemory : public SkStreamAsset {
[all …]
DSkFontMgr.h18 class SkStreamAsset; variable
104 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, int ttcIndex = 0) const;
107 sk_sp<SkTypeface> makeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) const;
146 virtual sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>,
148 virtual sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>,
DSkTypeface.h26 class SkStreamAsset; variable
130 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset> stream, int index = 0);
317 SkStreamAsset* openStream(int* ttcIndex) const;
383 virtual SkStreamAsset* onOpenStream(int* ttcIndex) const = 0;
/external/skqp/src/core/
DSkFontDescriptor.h19 SkFontData(std::unique_ptr<SkStreamAsset> stream, int index, const SkFixed axis[],int axisCount) in SkFontData()
37 std::unique_ptr<SkStreamAsset> detachStream() { return std::move(fStream); } in detachStream()
38 SkStreamAsset* getStream() { return fStream.get(); } in getStream()
39 SkStreamAsset const* getStream() const { return fStream.get(); } in getStream()
45 std::unique_ptr<SkStreamAsset> fStream;
DSkFontMgr.cpp69 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { in onMakeFromStreamIndex() argument
72 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() argument
133 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream()
141 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream()
167 sk_sp<SkTypeface> SkFontMgr::onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
/external/skia/src/core/
DSkFontDescriptor.h20 SkFontData(std::unique_ptr<SkStreamAsset> stream, int index, const SkFixed axis[],int axisCount) in SkFontData()
38 std::unique_ptr<SkStreamAsset> detachStream() { return std::move(fStream); } in detachStream()
39 SkStreamAsset* getStream() { return fStream.get(); } in getStream()
40 SkStreamAsset const* getStream() const { return fStream.get(); } in getStream()
46 std::unique_ptr<SkStreamAsset> fStream;
DSkFontMgr.cpp69 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { in onMakeFromStreamIndex() argument
72 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() argument
133 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream()
141 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream()
167 sk_sp<SkTypeface> SkFontMgr::onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
/external/skqp/src/ports/
DSkFontMgr_custom.h21 class SkStreamAsset; variable
52 SkStreamAsset* onOpenStream(int*) const override;
67 SkStreamAsset* onOpenStream(int* ttcIndex) const override;
84 SkStreamAsset* onOpenStream(int* ttcIndex) const override;
149 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri…
150 …sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) con…
DSkFontMgr_custom.cpp51 SkStreamAsset* SkTypeface_Empty::onOpenStream(int*) const { return nullptr; } in onOpenStream()
64 SkStreamAsset* SkTypeface_Stream::onOpenStream(int* ttcIndex) const { in onOpenStream()
95 SkStreamAsset* SkTypeface_File::onOpenStream(int* ttcIndex) const { in onOpenStream()
233 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex()
238 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
272 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
DSkFontMgr_FontConfigInterface.cpp22 SkStreamAsset* SkTypeface_FCI::onOpenStream(int* ttcIndex) const { in onOpenStream()
26 SkStreamAsset* stream = fFontData->getStream(); in onOpenStream()
42 return skstd::make_unique<SkFontData>(std::unique_ptr<SkStreamAsset>(fFCI->openStream(id)), in onMakeFontData()
234 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex()
257 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
291 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
DSkFontMgr_android.cpp78 std::unique_ptr<SkStreamAsset> makeStream() const { in makeStream()
93 SkStreamAsset* onOpenStream(int* ttcIndex) const override { in onOpenStream()
146 SkStreamAsset* onOpenStream(int* ttcIndex) const override { in onOpenStream()
190 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(pathName.c_str()); in SkFontStyleSet_Android()
449 … return this->makeFromStream(std::unique_ptr<SkStreamAsset>(new SkMemoryStream(std::move(data))), in onMakeFromData()
454 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
458 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex()
471 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
495 SkStreamAsset* stream(data->getStream()); in onMakeFromFontData()
DSkFontHost_FreeType_common.h71 bool recognizedFont(SkStreamAsset* stream, int* numFonts) const;
72 bool scanFont(SkStreamAsset* stream, int ttcIndex,
83 FT_Face openFace(SkStreamAsset* stream, int ttcIndex, FT_Stream ftStream) const;
/external/skia/src/ports/
DSkFontMgr_custom.h21 class SkStreamAsset; variable
52 std::unique_ptr<SkStreamAsset> onOpenStream(int*) const override;
67 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override;
84 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override;
149 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri…
150 …sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) con…
DSkFontMgr_FontConfigInterface.cpp21 std::unique_ptr<SkStreamAsset> SkTypeface_FCI::onOpenStream(int* ttcIndex) const { in onOpenStream()
25 SkStreamAsset* stream = fFontData->getStream(); in onOpenStream()
32 return std::unique_ptr<SkStreamAsset>(fFCI->openStream(this->getIdentity())); in onOpenStream()
41 return std::make_unique<SkFontData>(std::unique_ptr<SkStreamAsset>(fFCI->openStream(id)), in onMakeFontData()
227 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex()
250 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
284 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
DSkFontMgr_custom.cpp50 std::unique_ptr<SkStreamAsset> SkTypeface_Empty::onOpenStream(int*) const { return nullptr; } in onOpenStream()
63 std::unique_ptr<SkStreamAsset> SkTypeface_Stream::onOpenStream(int* ttcIndex) const { in onOpenStream()
94 std::unique_ptr<SkStreamAsset> SkTypeface_File::onOpenStream(int* ttcIndex) const { in onOpenStream()
232 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex()
237 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
271 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
DSkFontMgr_android.cpp77 std::unique_ptr<SkStreamAsset> makeStream() const { in makeStream()
92 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream()
145 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream()
189 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(pathName.c_str()); in SkFontStyleSet_Android()
448 … return this->makeFromStream(std::unique_ptr<SkStreamAsset>(new SkMemoryStream(std::move(data))), in onMakeFromData()
453 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
457 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex()
470 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
494 SkStreamAsset* stream(data->getStream()); in onMakeFromFontData()
/external/skia/src/utils/win/
DSkDWriteFontFileStream.h77 static HRESULT Create(SkStreamAsset* stream,
81 explicit SkDWriteFontFileStreamWrapper(SkStreamAsset* stream);
85 std::unique_ptr<SkStreamAsset> fStream;
/external/skqp/src/utils/win/
DSkDWriteFontFileStream.h76 static HRESULT Create(SkStreamAsset* stream,
80 explicit SkDWriteFontFileStreamWrapper(SkStreamAsset* stream);
84 std::unique_ptr<SkStreamAsset> fStream;
/external/skia/tools/
DResources.h16 class SkStreamAsset; variable
35 std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource);
/external/skqp/tools/
DResources.h16 class SkStreamAsset; variable
35 std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource);
/external/skqp/tests/
DStreamTest.cpp70 std::unique_ptr<SkStreamAsset> stream2(stream.duplicate()); in test_filestreams()
80 std::unique_ptr<SkStreamAsset> stream2(stream.duplicate()); in test_filestreams()
103 std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream()); in TestWStream()
108 std::unique_ptr<SkStreamAsset> stream2(stream->duplicate()); in TestWStream()
111 std::unique_ptr<SkStreamAsset> stream3(stream->fork()); in TestWStream()
127 std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream()); in TestWStream()
131 std::unique_ptr<SkStreamAsset> stream2(stream->duplicate()); in TestWStream()
161 std::unique_ptr<SkStreamAsset> rstream(wstream.detachAsStream()); in TestPackedUInt()
335 SkStreamAsset* asset, in stream_peek_test()
385 std::unique_ptr<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); in DEF_TEST()
[all …]
/external/skia/tests/
DStreamTest.cpp70 std::unique_ptr<SkStreamAsset> stream2(stream.duplicate()); in test_filestreams()
80 std::unique_ptr<SkStreamAsset> stream2(stream.duplicate()); in test_filestreams()
103 std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream()); in TestWStream()
108 std::unique_ptr<SkStreamAsset> stream2(stream->duplicate()); in TestWStream()
111 std::unique_ptr<SkStreamAsset> stream3(stream->fork()); in TestWStream()
127 std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream()); in TestWStream()
131 std::unique_ptr<SkStreamAsset> stream2(stream->duplicate()); in TestWStream()
161 std::unique_ptr<SkStreamAsset> rstream(wstream.detachAsStream()); in TestPackedUInt()
335 SkStreamAsset* asset, in stream_peek_test()
385 std::unique_ptr<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); in DEF_TEST()
[all …]

12345678