Home
last modified time | relevance | path

Searched refs:writable_data (Results 1 - 25 of 61) sorted by relevance

123

/third_party/skia/docs/examples/
H A DCanvas_readPixels_a.cpp12 sk_bzero(data->writable_data(), info.minRowBytes() * info.height()); in REG_FIDDLE()
15 canvas->readPixels(info, data->writable_data(), info.minRowBytes(), x, y); in REG_FIDDLE()
H A DSurface_readPixels_2.cpp14 sk_bzero(data->writable_data(), info.minRowBytes() * info.height()); in REG_FIDDLE()
17 surf->readPixels(info, data->writable_data(), info.minRowBytes(), x, y); in REG_FIDDLE()
H A DRegion_readFromMemory.cpp10 region.writeToMemory(data->writable_data()); in REG_FIDDLE()
H A DRegion_writeToMemory.cpp17 xRegion.writeToMemory(data->writable_data()); in REG_FIDDLE()
H A DTextBlob_Deserialize.cpp17 memcpy((char*)data->writable_data() + 0x54, glyphs, sizeof(glyphs)); in REG_FIDDLE()
H A DImage_MakeRasterData.cpp11 image->readPixels(nullptr, dstInfo, data->writable_data(), rowBytes, 0, 0, SkImage::kAllow_CachingHint); in REG_FIDDLE()
H A DSkImage_to_PPM_binary.cpp27 uint8_t* ptr = static_cast<uint8_t*>(result->writable_data()); in REG_FIDDLE()
/third_party/skia/bench/
H A DJSONBench.cpp74 auto* data8 = reinterpret_cast<uint8_t*>(fCStringData->writable_data());
126 auto* data8 = reinterpret_cast<uint8_t*>(fCStringData->writable_data());
146 if (!doc.deserialize_in_place(static_cast<char*>(data->writable_data()))) {
/third_party/skia/src/utils/
H A DSkAnimCodecPlayer.cpp81 auto canvas = SkCanvas::MakeRasterDirect(imageInfo, data->writable_data(), rb); in getFrameAt()
98 if (SkCodec::kSuccess != fCodec->getPixels(imageInfo, data->writable_data(), rb, &opts)) { in getFrameAt()
108 auto canvas = SkCanvas::MakeRasterDirect(imageInfo, data->writable_data(), rb); in getFrameAt()
/third_party/skia/tests/
H A DYUVCacheTest.cpp51 memset(data->writable_data(), 0xff, size); in DEF_TEST()
54 yuvaPixmapInfo.initPixmapsFromSingleAllocation(data->writable_data(), pmaps); in DEF_TEST()
H A DMaskCacheTest.cpp46 memset(data->writable_data(), 0xff, size); in DEF_TEST()
83 memset(data->writable_data(), 0xff, size); in DEF_TEST()
H A DCodecExactReadTest.cpp67 void* dst = multiData->writable_data(); in DEF_TEST()
H A DCachedDataTest.cpp52 memset(data->writable_data(), 0x80, size); // just to use writable_data() in test_locking()
H A DFlattenDrawableTest.cpp220 writeBuffer.writeToMemory(data->writable_data()); in DEF_TEST()
279 writeBuffer.writeToMemory(data->writable_data()); in DEF_TEST()
/third_party/skia/src/effects/
H A DSkOverdrawColorFilter.cpp37 SkPMColor4f* premul = (SkPMColor4f*)data->writable_data(); in MakeWithSkColors()
/third_party/skia/src/core/
H A DSkData.cpp89 memcpy(data->writable_data(), srcOrNull, length); in PrivateNewWithCopy()
210 if (stream->read(data->writable_data(), size) != size) {
H A DSkCachedData.h26 void* writable_data() { return fData; } in writable_data() function in SkCachedData
H A DSkFlattenable.cpp124 writer.writeToMemory(data->writable_data());
H A DSkFontDescriptor.cpp107 if (stream->read(data->writable_data(), length) != length) { in Deserialize()
/third_party/skia/gm/
H A Dreadpixels.cpp116 if (!image->readPixels(dContext, dstInfo, data->writable_data(), rowBytes, 0, 0, hint)) { in draw_image()
117 memset(data->writable_data(), 0, rowBytes * image->height()); in draw_image()
H A Dbc1_transparency.cpp86 BC1Block* dstBlocks = reinterpret_cast<BC1Block*>(tmp->writable_data()); in make_compressed_data()
/third_party/skia/src/codec/
H A DSkRawCodec.cpp256 const size_t bytesRead = fStream->read(data->writable_data(), size);
263 !fStreamBuffer.read(data->writable_data(), offset, alreadyBuffered)) {
269 auto* dst = static_cast<uint8_t*>(data->writable_data()) + alreadyBuffered;
379 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead);
H A DSkStreamBuffer.cpp84 void* dst = data->writable_data(); in getDataAtPosition()
/third_party/skia/include/core/
H A DSkData.h61 void* writable_data() { in writable_data() function in final
96 * Create a new data with uninitialized contents. The caller should call writable_data()
/third_party/skia/src/pdf/
H A DSkPDFType1Font.cpp163 uint8_t* const resultHeader = (uint8_t*)data->writable_data(); in convert_type1_font_stream()
185 uint8_t* buffer = (uint8_t*)data->writable_data(); in convert_type1_font_stream()

Completed in 8 milliseconds

123