Lines Matching defs:SkStreamAsset
21 class SkStreamAsset;
49 static std::unique_ptr<SkStreamAsset> MakeFromFile(const char path[]);
142 //SkStreamAsset
194 /** SkStreamAsset is a SkStreamSeekable for which getLength is required. */
195 class SK_API SkStreamAsset : public SkStreamSeekable {
200 std::unique_ptr<SkStreamAsset> duplicate() const {
201 return std::unique_ptr<SkStreamAsset>(this->onDuplicate());
203 std::unique_ptr<SkStreamAsset> fork() const {
204 return std::unique_ptr<SkStreamAsset>(this->onFork());
207 SkStreamAsset* onDuplicate() const override = 0;
208 SkStreamAsset* onFork() const override = 0;
211 /** SkStreamMemory is a SkStreamAsset for which getMemoryBase is required. */
212 class SK_API SkStreamMemory : public SkStreamAsset {
302 class SK_API SkFILEStream : public SkStreamAsset {
333 std::unique_ptr<SkStreamAsset> duplicate() const {
334 return std::unique_ptr<SkStreamAsset>(this->onDuplicate());
341 std::unique_ptr<SkStreamAsset> fork() const {
342 return std::unique_ptr<SkStreamAsset>(this->onFork());
351 SkStreamAsset* onDuplicate() const override;
352 SkStreamAsset* onFork() const override;
360 typedef SkStreamAsset INHERITED;
491 std::unique_ptr<SkStreamAsset> detachAsStream();