Home
last modified time | relevance | path

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

12

/external/skia/include/core/
DSkWriter32.h56 SkASSERT(SkAlign4(size) == size); in reserve()
72 SkASSERT(SkAlign4(offset) == offset); in readTAt()
83 SkASSERT(SkAlign4(offset) == offset); in overwriteTAt()
135 SkASSERT(SkAlign4(size) == size); in writePath()
141 SkASSERT(SkAlign4(size) == size); in writeMatrix()
147 SkASSERT(SkAlign4(size) == size); in writeRegion()
161 SkASSERT(SkAlign4(size) == size); in write()
170 size_t alignedSize = SkAlign4(size); in reservePad()
212 return 4 + SkAlign4(data ? data->size() : 0); in WriteDataSize()
220 SkASSERT(SkAlign4(offset) == offset); in rewindToOffset()
DSkTypes.h278 #define SkAlign4(x) (((x) + 3) >> 2 << 2) macro
287 #define SkAlignPtr(x) (sizeof(void*) == 8 ? SkAlign8(x) : SkAlign4(x))
/external/skia/src/core/
DSkReader32.h30 SkASSERT(SkAlign4(size) == size); in setMemory()
48 SkASSERT(SkAlign4(offset) == offset); in setOffset()
86 fCurr += SkAlign4(size); in skip()
92 SkASSERT(SkAlign4(sizeof(T)) == sizeof(T)); in skipT()
100 fCurr += SkAlign4(size); in read()
150 bool success = (size > 0) && (size <= this->available()) && (SkAlign4(size) == size); in readObjectFromMemory()
DSkValidatingReadBuffer.cpp36 this->validate(IsPtrAlign4(data) && (SkAlign4(size) == size)); in setMemory()
43 size_t inc = SkAlign4(size); in skip()
105 const size_t alignedSize = SkAlign4(len + 1); in readString()
131 this->validate((SkAlign4(size) == size) && (0 != size)); in readMatrix()
168 this->validate((SkAlign4(size) == size) && (0 != size)); in readRegion()
179 this->validate((SkAlign4(size) == size) && (0 != size)); in readPath()
193 const void* ptr = this->skip(SkAlign4(byteLength)); in readArray()
DSkBuffer.cpp29 size_t n = SkAlign4(pos) - pos; in skipToAlign4()
56 size_t n = SkAlign4(pos) - pos; in padToAlign4()
DSkWriter32.cpp21 size_t alignedSize = SkAlign4(len + 1); in readString()
63 return SkAlign4(lenBytes + len + 1); in WriteStringSize()
DSkGlyph.h180 rb = SkAlign4(rb << 1); in ComputeRowBytes()
182 rb = SkAlign4(rb); in ComputeRowBytes()
201 allocSize = SkAlign4(fWidth) * fHeight; in allocImage()
DSkColorSpace.cpp415 if (SkAlign4(profileSize) != (uint32_t) SkAlign4(profileSize)) { in writeToMemory()
425 *((uint32_t*) memory) = (uint32_t) SkAlign4(profileSize); in writeToMemory()
429 memset(SkTAddOffset<void>(memory, profileSize), 0, SkAlign4(profileSize) - profileSize); in writeToMemory()
431 return sizeof(ColorSpaceHeader) + sizeof(uint32_t) + SkAlign4(profileSize); in writeToMemory()
DSkDescriptor.h24 SkASSERT(SkAlign4(length) == length); in Alloc()
40 SkASSERT(SkAlign4(length) == length);
DSkPictureRecord.cpp545 SkAlign4(flagCount * sizeof(SkCanvas::Lattice::Flags)) + sizeof(SkIRect); in onDrawImageLattice()
567 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) + 2 * sizeof(SkScalar); in onDrawText()
583 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) + kUInt32Size + points * sizeof(SkPoint); in onDrawPosText()
600 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) + 1 * kUInt32Size; in onDrawPosTextH()
617 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) + kUInt32Size + m.writeToMemory(nullptr); in onDrawTextOnPath()
631 size_t size = 5 * kUInt32Size + SkAlign4(byteLength) + count * sizeof(SkRSXform); in onDrawTextRSXform()
DSkMask.cpp48 return (uint8_t*)sk_malloc_throw(SkAlign4(size)); in AllocImage()
DSkAutoMalloc.h159 static const size_t kSizeAlign4 = SkAlign4(kSizeRequested);
DSkStream.cpp505 size = SkAlign4(size); // ensure we're always a multiple of 4 (see padToAlign4()) in write()
616 SkASSERT(bytes == SkAlign4(bytes)); // see padToAlign4() in validate()
/external/skia/src/pipe/
DSkPipeReader.cpp347 const void* text = reader.skip(SkAlign4(len)); in drawText_handler()
359 const void* text = reader.skip(SkAlign4(len)); in drawPosText_handler()
373 const void* text = reader.skip(SkAlign4(len)); in drawPosTextH_handler()
391 const void* text = reader.skip(SkAlign4(byteLength)); in drawTextOnPath_handler()
416 const void* text = reader.skip(SkAlign4(len)); in drawTextRSXform_handler()
458 region.readFromMemory(skip<char>(reader, SkAlign4(size)), size); in drawRegion_handler()
553 lattice.fFlags = skip<SkCanvas::Lattice::Flags>(reader, SkAlign4(count)); in drawImageLattice_handler()
629 data = SkData::MakeWithCopy(reader.skip(SkAlign4(size)), size); in drawAnnotation_handler()
671 SkASSERT(encodedSize == SkAlign4(stream.getPosition())); in make_from_skiaimageformat()
740 const char* name = (const char*)reader.skip(SkAlign4(len + 1)); in defineFactory_handler()
/external/skia/tests/
DChecksumTest.cpp15 const size_t kBytes = SkAlign4(128); in DEF_TEST()
DSerializationTest.cpp38 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); in TestAlignment()
40 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); in TestAlignment()
158 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
196 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
DWriter32Test.cpp138 size_t alignedSize = SkAlign4(len + 1); in test2()
177 const char* stop = readPtr + SkAlign4(len); in testWritePad()
DReadPixelsTest.cpp289 rowBytes = SkAlign4((info.width() + 16) * info.bytesPerPixel()); in init_bitmap()
292 rowBytes = SkAlign4(info.width() * info.bytesPerPixel()) + 3; in init_bitmap()
/external/skia/src/gpu/
DGrPrimitiveProcessor.h112 , fOffset(SkAlign4(GrVertexAttribTypeSize(type))) in Attribute()
DGrProgramDesc.h152 kHeaderSize = SkAlign4(sizeof(KeyHeader)),
DGrShape.cpp88 return 2 + (SkAlign4(verbCnt) >> 2) + 2 * pointCnt + conicWeightCnt; in path_key_from_data_size()
103 int verbKeySize = SkAlign4(verbCnt); in write_path_key_from_data()
/external/skia/src/ports/
DSkFontMgr_FontConfigInterface.cpp81 size_t contentLen = SkAlign4(nameLen); in Request()
93 size_t contentLen = SkAlign4(nameLen); in Create()
DSkImageEncoder_WIC.cpp97 rowBytes = SkAlign4(bitmap.width() * 3); in SkEncodeImageWithWIC()
/external/skia/include/private/
DSkTemplates.h390 static const size_t kCountWithPadding = SkAlign4(kCountRequested*sizeof(T)) / sizeof(T);
404 uint32_t fStorage32[SkAlign4(kCount*sizeof(T)) >> 2];
/external/skia/src/effects/
DSkTableMaskFilter.cpp34 dst->fRowBytes = SkAlign4(dst->fBounds.width()); in filterMask()

12