/external/skia/src/images/ |
D | SkDecodingImageGenerator.cpp | 54 fStream = SkNEW_ARGS(SkMemoryStream, (fData)); in SkDecodingImageGenerator() 55 SkASSERT(fStream != NULL); in SkDecodingImageGenerator() 56 SkASSERT(fStream->unique()); in SkDecodingImageGenerator() 62 , fStream(stream) in SkDecodingImageGenerator() 65 SkASSERT(fStream != NULL); in SkDecodingImageGenerator() 66 SkASSERT(fStream->unique()); in SkDecodingImageGenerator() 71 fStream->unref(); in ~SkDecodingImageGenerator() 88 if (!fStream->rewind()) { in refEncodedData() 91 size_t length = fStream->getLength(); in refEncodedData() 96 SkCheckResult(fStream->read(buffer, length), length); in refEncodedData() [all …]
|
D | SkImageRef.cpp | 26 fStream = stream; in SkImageRef() 46 this, fConfig, (int)fStream->getLength()); in ~SkImageRef() 49 fStream->unref(); in ~SkImageRef() 106 if (!fStream->rewind()) { in prepareBitmap() 113 codec = fFactory->newDecoder(fStream); in prepareBitmap() 115 codec = SkImageDecoder::Factory(fStream); in prepareBitmap() 123 if (this->onDecode(codec, fStream, &fBitmap, fBitmap.config(), mode)) { in prepareBitmap() 176 fStream = SkNEW_ARGS(SkMemoryStream, (length)); in SkImageRef() 177 buffer.readByteArray((void*)fStream->getMemoryBase(), length); in SkImageRef() 195 if (!fStream->rewind()) { in flatten() [all …]
|
D | SkJpegUtility.cpp | 19 if (!src->fStream->rewind()) { in sk_init_source() 31 (void)src->fStream->skip(bo - src->current_offset); in sk_seek_input_data() 33 if (!src->fStream->rewind()) { in sk_seek_input_data() 38 (void)src->fStream->skip(bo); in sk_seek_input_data() 53 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); in sk_fill_input_buffer() 74 size_t bytes = src->fStream->skip(bytesToSkip); in sk_skip_input_data() 99 : fStream(SkRef(stream)) in skjpeg_source_mgr() 114 SkSafeUnref(fStream); in ~skjpeg_source_mgr() 130 if (!dest->fStream->write(dest->fBuffer, in sk_empty_output_buffer() 146 if (!dest->fStream->write(dest->fBuffer, size)) { in sk_term_destination() [all …]
|
D | SkJpegUtility.h | 41 SkStream* fStream; member 58 SkWStream* fStream; member
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkDecodingImageGenerator.cpp | 54 fStream = SkNEW_ARGS(SkMemoryStream, (fData)); in SkDecodingImageGenerator() 55 SkASSERT(fStream != NULL); in SkDecodingImageGenerator() 56 SkASSERT(fStream->unique()); in SkDecodingImageGenerator() 62 , fStream(stream) in SkDecodingImageGenerator() 65 SkASSERT(fStream != NULL); in SkDecodingImageGenerator() 66 SkASSERT(fStream->unique()); in SkDecodingImageGenerator() 71 fStream->unref(); in ~SkDecodingImageGenerator() 88 if (!fStream->rewind()) { in refEncodedData() 91 size_t length = fStream->getLength(); in refEncodedData() 96 SkCheckResult(fStream->read(buffer, length), length); in refEncodedData() [all …]
|
D | SkImageRef.cpp | 26 fStream = stream; in SkImageRef() 42 this, fConfig, (int)fStream->getLength()); in ~SkImageRef() 45 fStream->unref(); in ~SkImageRef() 102 if (!fStream->rewind()) { in prepareBitmap() 109 codec = fFactory->newDecoder(fStream); in prepareBitmap() 111 codec = SkImageDecoder::Factory(fStream); in prepareBitmap() 119 if (this->onDecode(codec, fStream, &fBitmap, fBitmap.config(), mode)) { in prepareBitmap() 168 fStream = SkNEW_ARGS(SkMemoryStream, (length)); in SkImageRef() 169 buffer.readByteArray((void*)fStream->getMemoryBase(), length); in SkImageRef() 183 if (!fStream->rewind()) { in flatten() [all …]
|
D | SkJpegUtility.cpp | 19 if (!src->fStream->rewind()) { in sk_init_source() 31 (void)src->fStream->skip(bo - src->current_offset); in sk_seek_input_data() 33 if (!src->fStream->rewind()) { in sk_seek_input_data() 38 (void)src->fStream->skip(bo); in sk_seek_input_data() 53 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); in sk_fill_input_buffer() 74 size_t bytes = src->fStream->skip(bytesToSkip); in sk_skip_input_data() 99 : fStream(SkRef(stream)) in skjpeg_source_mgr() 114 SkSafeUnref(fStream); in ~skjpeg_source_mgr() 130 if (!dest->fStream->write(dest->fBuffer, in sk_empty_output_buffer() 146 if (!dest->fStream->write(dest->fBuffer, size)) { in sk_term_destination() [all …]
|
D | SkJpegUtility.h | 41 SkStream* fStream; member 58 SkWStream* fStream; member
|
/external/skia/src/xml/ |
D | SkXMLWriter.cpp | 204 SkXMLStreamWriter::SkXMLStreamWriter(SkWStream* stream) : fStream(*stream) in SkXMLStreamWriter() 216 fStream.writeText(" "); in onAddAttributeLen() 217 fStream.writeText(name); in onAddAttributeLen() 218 fStream.writeText("=\""); in onAddAttributeLen() 219 fStream.write(value, length); in onAddAttributeLen() 220 fStream.writeText("\""); in onAddAttributeLen() 228 tab(fStream, fElems.count()); in onEndElement() 229 fStream.writeText("</"); in onEndElement() 230 fStream.writeText(elem->fName.c_str()); in onEndElement() 231 fStream.writeText(">"); in onEndElement() [all …]
|
D | SkXMLPullParser.cpp | 19 SkXMLPullParser::SkXMLPullParser() : fStream(NULL) in SkXMLPullParser() 25 SkXMLPullParser::SkXMLPullParser(SkStream* stream) : fStream(NULL) in SkXMLPullParser() 40 if (fStream && !stream) in setStream() 43 SkRefCnt_SafeAssign(fStream, stream); in setStream() 45 if (fStream) in setStream() 56 return fStream; in setStream()
|
/external/chromium_org/third_party/skia/src/xml/ |
D | SkXMLWriter.cpp | 204 SkXMLStreamWriter::SkXMLStreamWriter(SkWStream* stream) : fStream(*stream) in SkXMLStreamWriter() 216 fStream.writeText(" "); in onAddAttributeLen() 217 fStream.writeText(name); in onAddAttributeLen() 218 fStream.writeText("=\""); in onAddAttributeLen() 219 fStream.write(value, length); in onAddAttributeLen() 220 fStream.writeText("\""); in onAddAttributeLen() 228 tab(fStream, fElems.count()); in onEndElement() 229 fStream.writeText("</"); in onEndElement() 230 fStream.writeText(elem->fName.c_str()); in onEndElement() 231 fStream.writeText(">"); in onEndElement() [all …]
|
D | SkXMLPullParser.cpp | 19 SkXMLPullParser::SkXMLPullParser() : fStream(NULL) in SkXMLPullParser() 25 SkXMLPullParser::SkXMLPullParser(SkStream* stream) : fStream(NULL) in SkXMLPullParser() 40 if (fStream && !stream) in setStream() 43 SkRefCnt_SafeAssign(fStream, stream); in setStream() 45 if (fStream) in setStream() 56 return fStream; in setStream()
|
/external/chromium_org/third_party/skia/src/doc/ |
D | SkDocument.cpp | 12 fStream = stream; // we do not own this object. in SkDocument() 66 bool success = this->onClose(fStream); in close() 69 fDoneProc(fStream, false); in close() 73 fStream = NULL; in close() 90 fDoneProc(fStream, true); in abort() 94 fStream = NULL; in abort()
|
/external/skia/src/doc/ |
D | SkDocument.cpp | 12 fStream = stream; // we do not own this object. in SkDocument() 66 bool success = this->onClose(fStream); in close() 69 fDoneProc(fStream, false); in close() 73 fStream = NULL; in close() 90 fDoneProc(fStream, true); in abort() 94 fStream = NULL; in abort()
|
/external/skia/bench/ |
D | SkipZeroesBench.cpp | 27 , fStream() in SkipZeroesBench() 64 fStream.setData(skdata.get()); in onPreDraw() 65 fDecoder.reset(SkImageDecoder::Factory(&fStream)); in onPreDraw() 85 SkDEBUGCODE(bool success =) fDecoder->decode(&fStream, &bm, in onDraw() 93 SkDEBUGCODE(success =) fStream.rewind(); in onDraw() 107 SkMemoryStream fStream; member in SkipZeroesBench
|
D | ImageDecodeBench.cpp | 26 , fStream() in ImageDecodeBench() 50 fStream.setData(skdata.get()); in onPreDraw() 65 SkDEBUGCODE(bool success =) SkImageDecoder::DecodeStream(&fStream, &bm); in onDraw() 72 SkDEBUGCODE(success =) fStream.rewind(); in onDraw() 85 SkMemoryStream fStream; member in ImageDecodeBench
|
/external/chromium_org/third_party/skia/src/utils/ |
D | SkFrontBufferedStream.cpp | 34 SkAutoTUnref<SkStream> fStream; member in FrontBufferedStream 72 : fStream(SkRef(stream)) in FrontBufferedStream() 85 return fStream->isAtEnd(); in isAtEnd() 98 return fStream->hasLength(); in hasLength() 102 return fStream->getLength(); in getLength() 130 const size_t buffered = fStream->read(buffer, bytesToBuffer); in bufferAndWriteTo() 149 const size_t bytesReadDirectly = fStream->read(dst, size); in readDirectlyFromStream() 194 if (size > 0 && !fStream->isAtEnd()) { in read()
|
/external/skia/src/utils/ |
D | SkFrontBufferedStream.cpp | 34 SkAutoTUnref<SkStream> fStream; member in FrontBufferedStream 74 : fStream(SkRef(stream)) in FrontBufferedStream() 89 return fStream->isAtEnd(); in isAtEnd() 126 const size_t buffered = fStream->read(buffer, bytesToBuffer); in bufferAndWriteTo() 145 const size_t bytesReadDirectly = fStream->read(dst, size); in readDirectlyFromStream() 190 if (size > 0 && !fStream->isAtEnd()) { in read()
|
/external/chromium_org/third_party/skia/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 145 : fRefCount(1), fStream(SkRef(stream)) { in SkDWriteFontFileStreamWrapper() 190 const void* data = fStream->getMemoryBase(); in ReadFileFragment() 202 if (!fStream->rewind()) { in ReadFileFragment() 205 if (fStream->skip(static_cast<size_t>(fileOffset)) != fileOffset) { in ReadFileFragment() 209 if (fStream->read(streamData.get(), static_cast<size_t>(fragmentSize)) != fragmentSize) { in ReadFileFragment() 224 *fileSize = fStream->getLength(); in GetFileSize()
|
/external/skia/src/utils/win/ |
D | SkDWriteFontFileStream.cpp | 145 : fRefCount(1), fStream(SkRef(stream)) { in SkDWriteFontFileStreamWrapper() 190 const void* data = fStream->getMemoryBase(); in ReadFileFragment() 202 if (!fStream->rewind()) { in ReadFileFragment() 205 if (fStream->skip(static_cast<size_t>(fileOffset)) != fileOffset) { in ReadFileFragment() 209 if (fStream->read(streamData.get(), static_cast<size_t>(fragmentSize)) != fragmentSize) { in ReadFileFragment() 224 *fileSize = fStream->getLength(); in GetFileSize()
|
/external/chromium_org/third_party/skia/src/utils/ios/ |
D | SkFontHost_iOS.mm | 62 fStream->ref(); 63 return fStream; 67 SkStream* fStream; 74 fStream = stream; 75 fStream->ref(); 79 fStream->unref();
|
/external/skia/src/utils/ios/ |
D | SkFontHost_iOS.mm | 62 fStream->ref(); 63 return fStream; 67 SkStream* fStream; 74 fStream = stream; 75 fStream->ref(); 79 fStream->unref();
|
/external/skia/src/ports/ |
D | SkXMLPullParser_expat.cpp | 155 size_t len = fStream->getLength(); in onInit() 158 fStream->rewind(); in onInit() 159 size_t len2 = fStream->read(fImpl->fBuffer, len); in onInit()
|
/external/chromium_org/third_party/skia/src/ports/ |
D | SkXMLPullParser_expat.cpp | 155 size_t len = fStream->getLength(); in onInit() 158 fStream->rewind(); in onInit() 159 size_t len2 = fStream->read(fImpl->fBuffer, len); in onInit()
|
/external/chromium_org/third_party/skia/include/xml/ |
D | SkXMLParser.h | 94 SkStream* getStream() const { return fStream; } 146 SkStream* fStream;
|