/external/skia/include/core/ |
D | SkStream.h | 23 class SkStreamAsset; variable 50 static std::unique_ptr<SkStreamAsset> MakeFromFile(const char path[]); 196 class SK_API SkStreamAsset : public SkStreamSeekable { 201 std::unique_ptr<SkStreamAsset> duplicate() const { in duplicate() 202 return std::unique_ptr<SkStreamAsset>(this->onDuplicate()); in duplicate() 204 std::unique_ptr<SkStreamAsset> fork() const { in fork() 205 return std::unique_ptr<SkStreamAsset>(this->onFork()); in fork() 208 SkStreamAsset* onDuplicate() const override = 0; 209 SkStreamAsset* onFork() const override = 0; 213 class SK_API SkStreamMemory : public SkStreamAsset { [all …]
|
D | SkFontMgr.h | 20 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; 140 virtual sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, 142 virtual sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>,
|
D | SkTypeface.h | 26 class SkStreamAsset; variable 135 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset> stream, int index = 0); 325 std::unique_ptr<SkStreamAsset> openStream(int* ttcIndex) const; 334 std::unique_ptr<SkStreamAsset> openExistingStream(int* ttcIndex) const; 367 sk_sp<SkTypeface> (*make)(std::unique_ptr<SkStreamAsset>, const SkFontArguments&)); 398 virtual std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const = 0; 400 virtual std::unique_ptr<SkStreamAsset> onOpenExistingStream(int* ttcIndex) const;
|
/external/skia/src/core/ |
D | SkFontDescriptor.h | 21 SkFontData(std::unique_ptr<SkStreamAsset> stream, int index, int paletteIndex, in SkFontData() 57 std::unique_ptr<SkStreamAsset> detachStream() { return std::move(fStream); } in detachStream() 58 SkStreamAsset* getStream() { return fStream.get(); } in getStream() 59 SkStreamAsset const* getStream() const { return fStream.get(); } in getStream() 70 std::unique_ptr<SkStreamAsset> fStream; 99 std::unique_ptr<SkStreamAsset> dupStream() const { return fStream->duplicate(); } in dupStream() 114 std::unique_ptr<SkStreamAsset> detachStream() { return std::move(fStream); } in detachStream() 115 void setStream(std::unique_ptr<SkStreamAsset> stream) { fStream = std::move(stream); } in setStream() 146 std::unique_ptr<SkStreamAsset> fStream;
|
D | SkTypeface.cpp | 53 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset> stream, in MakeFromStream() 63 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { return nullptr; } in onOpenStream() 164 sk_sp<SkTypeface> (*makeFromStream)(std::unique_ptr<SkStreamAsset>, const SkFontArguments&); 201 sk_sp<SkTypeface> SkTypeface::MakeFromStream(std::unique_ptr<SkStreamAsset> stream, int index) { in MakeFromStream() 238 sk_sp<SkTypeface> (*make)(std::unique_ptr<SkStreamAsset>, const SkFontArguments&)) { in Register() argument 359 std::unique_ptr<SkStreamAsset> SkTypeface::openStream(int* ttcIndex) const { in openStream() 368 std::unique_ptr<SkStreamAsset> SkTypeface::openExistingStream(int* ttcIndex) const { in openExistingStream() 525 std::unique_ptr<SkStreamAsset> SkTypeface::onOpenExistingStream(int* ttcIndex) const { in onOpenExistingStream()
|
D | SkFontMgr.cpp | 66 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { in onMakeFromStreamIndex() argument 69 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, in onMakeFromStreamArgs() argument 122 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream() 130 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream()
|
/external/skia/src/ports/ |
D | SkTypeface_mac_ct.h | 71 OpszVariation opszVariation, std::unique_ptr<SkStreamAsset> providedData) in SkTypeface_Mac() 86 std::unique_ptr<SkStreamAsset> providedData); 89 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&); 106 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override; 107 std::unique_ptr<SkStreamAsset> onOpenExistingStream(int* ttcIndex) const override; 133 mutable std::unique_ptr<SkStreamAsset> fStream;
|
D | SkFontMgr_custom.h | 21 class SkStreamAsset; variable 52 std::unique_ptr<SkStreamAsset> onOpenStream(int*) const override; 67 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override; 131 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 132 …sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, const SkFontArguments&) con…
|
D | SkFontMgr_custom.cpp | 53 std::unique_ptr<SkStreamAsset> SkTypeface_Empty::onOpenStream(int*) const { return nullptr; } in onOpenStream() 67 std::unique_ptr<SkStreamAsset> SkTypeface_File::onOpenStream(int* ttcIndex) const { in onOpenStream() 89 std::unique_ptr<SkStreamAsset> stream(this->onOpenStream(&index)); in onMakeFontData() 200 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex() 205 sk_sp<SkTypeface> SkFontMgr_Custom::onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs() 211 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
|
D | SkFontHost_FreeType_common.h | 97 bool recognizedFont(SkStreamAsset* stream, int* numFonts) const; 98 bool scanFont(SkStreamAsset* stream, int ttcIndex, 109 FT_Face openFace(SkStreamAsset* stream, int ttcIndex, FT_Stream ftStream) const; 123 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&); 181 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override;
|
D | SkFontMgr_FontConfigInterface.cpp | 23 std::unique_ptr<SkStreamAsset> SkTypeface_FCI::onOpenStream(int* ttcIndex) const { in onOpenStream() 25 return std::unique_ptr<SkStreamAsset>(fFCI->openStream(this->getIdentity())); in onOpenStream() 30 return std::make_unique<SkFontData>(std::unique_ptr<SkStreamAsset>(fFCI->openStream(id)), in onMakeFontData() 213 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex() 219 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs() 233 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile()
|
D | SkFontMgr_android.cpp | 79 std::unique_ptr<SkStreamAsset> makeStream() const { in makeStream() 95 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override { in onOpenStream() 149 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(pathName.c_str()); in SkFontStyleSet_Android() 398 … return this->makeFromStream(std::unique_ptr<SkStreamAsset>(new SkMemoryStream(std::move(data))), in onMakeFromData() 403 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(path); in onMakeFromFile() 407 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex() 413 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
|
/external/skia/include/utils/ |
D | SkOrderedFontMgr.h | 20 class SkStreamAsset; variable 53 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, 55 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>,
|
D | SkCustomTypeface.h | 24 class SkStreamAsset; variable 40 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&);
|
/external/skia/src/utils/win/ |
D | SkDWriteFontFileStream.h | 77 static HRESULT Create(SkStreamAsset* stream, 81 explicit SkDWriteFontFileStreamWrapper(SkStreamAsset* stream); 85 std::unique_ptr<SkStreamAsset> fStream;
|
/external/skia/include/ports/ |
D | SkFontMgr_indirect.h | 22 class SkStreamAsset; variable 50 …sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int ttcIndex) const overri… 51 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream,
|
D | SkFontConfigInterface.h | 92 virtual SkStreamAsset* openStream(const FontIdentity&) = 0; 101 … return SkTypeface::MakeFromStream(std::unique_ptr<SkStreamAsset>(this->openStream(identity)), in makeTypeface()
|
D | SkRemotableFontMgr.h | 17 class SkStreamAsset; variable 133 virtual SkStreamAsset* getData(int dataId) const = 0;
|
/external/skia/src/fonts/ |
D | SkFontMgr_indirect.cpp | 111 std::unique_ptr<SkStreamAsset> stream(dataTypeface->openStream(nullptr)); in createTypefaceFromFontId() 118 std::unique_ptr<SkStreamAsset> stream(fProxy->getData(id.fDataId)); in createTypefaceFromFontId() 153 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamIndex() 158 sk_sp<SkTypeface> SkFontMgr_Indirect::onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream, in onMakeFromStreamArgs()
|
/external/skia/tests/ |
D | StreamTest.cpp | 86 std::unique_ptr<SkStreamAsset> stream2(stream.duplicate()); in test_filestreams() 96 std::unique_ptr<SkStreamAsset> stream2(stream.duplicate()); in test_filestreams() 119 std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream()); in TestWStream() 124 std::unique_ptr<SkStreamAsset> stream2(stream->duplicate()); in TestWStream() 127 std::unique_ptr<SkStreamAsset> stream3(stream->fork()); in TestWStream() 143 std::unique_ptr<SkStreamAsset> stream(ds.detachAsStream()); in TestWStream() 147 std::unique_ptr<SkStreamAsset> stream2(stream->duplicate()); in TestWStream() 177 std::unique_ptr<SkStreamAsset> rstream(wstream.detachAsStream()); in TestPackedUInt() 356 SkStreamAsset* asset, in stream_peek_test() 406 std::unique_ptr<SkStreamAsset> asset(dynamicMemoryWStream.detachAsStream()); in DEF_TEST() [all …]
|
D | TypefaceTest.cpp | 105 std::unique_ptr<SkStreamAsset> stream(GetResourceAsStream("fonts/Em.ttf")); in DEF_TEST() 145 std::unique_ptr<SkStreamAsset> stream = typeface->openStream(&fontIndex); in DEF_TEST() 245 std::unique_ptr<SkStreamAsset> variable(GetResourceAsStream("fonts/Variable.ttf")); in DEF_TEST() 260 std::unique_ptr<SkStreamAsset> dupTags(GetResourceAsStream("fonts/VaryAlongQuads.ttf")); in DEF_TEST() 281 std::unique_ptr<SkStreamAsset> distortable(GetResourceAsStream("fonts/Distortable.ttf")); in DEF_TEST() 307 std::unique_ptr<SkStreamAsset> distortable(GetResourceAsStream("fonts/Distortable.ttf")); in DEF_TEST() 448 std::unique_ptr<SkStreamAsset> variable(GetResourceAsStream("fonts/Variable.ttf")); in DEF_TEST() 463 std::unique_ptr<SkStreamAsset> dupTags(GetResourceAsStream("fonts/VaryAlongQuads.ttf")); in DEF_TEST() 481 std::unique_ptr<SkStreamAsset> distortable(GetResourceAsStream("fonts/Distortable.ttf")); in DEF_TEST()
|
D | PDFDeflateWStreamTest.cpp | 44 std::unique_ptr<SkStreamAsset> stream_inflate(skiatest::Reporter* reporter, SkStream* src) { in stream_inflate() 144 std::unique_ptr<SkStreamAsset> compressed(dynamicMemoryWStream.detachAsStream()); in DEF_TEST() 145 std::unique_ptr<SkStreamAsset> decompressed(stream_inflate(r, compressed.get())); in DEF_TEST()
|
/external/skia/tools/ |
D | Resources.h | 18 class SkStreamAsset; variable 37 std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource,
|
D | Resources.cpp | 40 std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource, bool useFileStream) { in GetResourceAsStream() 46 return data ? std::unique_ptr<SkStreamAsset>(new SkMemoryStream(std::move(data))) in GetResourceAsStream()
|
/external/skia/tools/fonts/ |
D | TestTypeface.h | 29 class SkStreamAsset; variable 93 std::unique_ptr<SkStreamAsset> onOpenStream(int* ttcIndex) const override; 136 static sk_sp<SkTypeface> MakeFromStream(std::unique_ptr<SkStreamAsset>, const SkFontArguments&);
|