Home
last modified time | relevance | path

Searched refs:SkAlign4 (Results 1 – 25 of 34) sorted by relevance

12

/external/skia/src/core/
DSkWriter32.h62 SkASSERT(SkAlign4(size) == size); in reserve()
78 SkASSERT(SkAlign4(offset) == offset); in readTAt()
89 SkASSERT(SkAlign4(offset) == offset); in overwriteTAt()
141 SkASSERT(SkAlign4(size) == size); in writePath()
149 SkASSERT(SkAlign4(size) == size); in writeRegion()
165 SkASSERT(SkAlign4(size) == size); in write()
174 size_t alignedSize = SkAlign4(size); in reservePad()
215 return 4 + SkAlign4(data ? data->size() : 0); in WriteDataSize()
223 SkASSERT(SkAlign4(offset) == offset); in rewindToOffset()
DSkReadBuffer.cpp53 this->validate(IsPtrAlign4(data) && (SkAlign4(size) == size)); in setMemory()
69 size_t inc = SkAlign4(size); in skip()
197 (void)this->validate((SkAlign4(size) == size) && (0 != size)); in readMatrix()
247 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readRRect()
258 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readRegion()
269 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readPath()
DSkWriter32.cpp16 SkASSERT(SkAlign4(size) == size); in writeMatrix()
58 return SkAlign4(lenBytes + len + 1); in WriteStringSize()
DSkCanvasPriv.cpp62 SkAlign4(flagCount * sizeof(SkCanvas::Lattice::RectType)) + in WriteLattice()
63 SkAlign4(flagCount * sizeof(SkColor)) + in WriteLattice()
DSkDescriptor.cpp21 SkASSERT(length >= sizeof(SkDescriptor) && SkAlign4(length) == length); in Alloc()
37 SkASSERT(SkAlign4(length) == length); in addEntry()
DSkTextBlobPriv.h108 SkAlign4(fCount * sizeof(uint16_t))); in posBuffer()
DSkBitmap.cpp543 srcM.fRowBytes = SkAlign4(this->width()); in extractAlpha()
554 dstM.fRowBytes = SkAlign4(dstM.fBounds.width()); in extractAlpha()
DSkResourceCache.cpp43 SkASSERT(SkAlign4(dataSize) == dataSize); in init()
/external/skia/include/private/base/
DSkAlign.h16 template <typename T> static constexpr T SkAlign4(T x) { return (x + 3) >> 2 << 2; } in SkAlign4() function
24 return sizeof(void*) == 8 ? SkAlign8(x) : SkAlign4(x); in SkAlignPtr()
DSkTemplates.h392 static const size_t kCountWithPadding = SkAlign4(kCountRequested*sizeof(T)) / sizeof(T);
406 uint32_t fStorage32[SkAlign4(kCount*sizeof(T)) >> 2];
/external/skia/src/base/
DSkBuffer.cpp37 size_t n = SkAlign4(pos) - pos; in skipToAlign4()
65 size_t n = SkAlign4(pos) - pos; in padToAlign4()
DSkAutoMalloc.h162 static const size_t kSizeAlign4 = SkAlign4(kSizeRequested);
/external/skia/src/gpu/ganesh/dawn/
DGrDawnBuffer.cpp54 bufferDesc.size = SkAlign4(bufferDesc.size); in Make()
138 size = SkAlign4(size + r); in internalUnmap()
258 size = SkAlign4(size + r); in blockingMap()
/external/skia/src/gpu/graphite/
DAttribute.h38 constexpr size_t sizeAlign4() const { return SkAlign4(this->size()); } in sizeAlign4()
/external/skia/src/ports/
DSkFontMgr_FontConfigInterface.cpp71 size_t contentLen = SkAlign4(nameLen); in Request()
83 size_t contentLen = SkAlign4(nameLen); in Create()
DSkImageEncoder_WIC.cpp80 rowBytes = SkAlign4(bitmap.width() * 3); in SkEncodeImageWithWIC()
/external/skia/tests/
DSerializationTest.cpp80 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); in TestAlignment()
82 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); in TestAlignment()
210 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
248 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
948 blob_size = SkAlign4(blob->serialize(procs)->size()); in DEF_TEST()
961 size_t path_size = SkAlign4(path_effect->serialize()->size()); in DEF_TEST()
DChecksumTest.cpp23 const size_t kBytes = SkAlign4(128); in DEF_TEST()
DWriter32Test.cpp128 const char* stop = readPtr + SkAlign4(len); in testWritePad()
/external/skia/src/effects/
DSkTableMaskFilter.cpp73 dst->fRowBytes = SkAlign4(dst->fBounds.width()); in filterMask()
/external/skia/src/codec/
DSkBmpStandardCodec.cpp42 , fAndMaskRowBytes(fInIco ? SkAlign4(compute_row_bytes(this->dimensions().width(), 1)) : 0) in SkBmpStandardCodec()
DSkBmpCodec.cpp618 , fSrcRowBytes(SkAlign4(compute_row_bytes(this->dimensions().width(), fBitsPerPixel))) in SkBmpCodec()
/external/skia/src/gpu/ganesh/geometry/
DGrStyledShape.cpp104 return 1 + (SkAlign4(verbCnt) >> 2) + 2 * pointCnt + conicWeightCnt; in path_key_from_data_size()
118 int verbKeySize = SkAlign4(verbCnt); in write_path_key_from_data()
/external/skia/src/gpu/ganesh/
DGrGeometryProcessor.h68 static constexpr size_t AlignOffset(size_t offset) { return SkAlign4(offset); } in AlignOffset()
/external/skia/gm/
Dbleed.cpp49 size_t rowBytes = SkAlign4(info.minRowBytes()); in make_ringed_image()

12