/external/skia/include/core/ |
D | SkWriter32.h | 56 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()
|
D | SkTypes.h | 278 #define SkAlign4(x) (((x) + 3) >> 2 << 2) macro 287 #define SkAlignPtr(x) (sizeof(void*) == 8 ? SkAlign8(x) : SkAlign4(x))
|
/external/skia/src/core/ |
D | SkReader32.h | 30 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()
|
D | SkValidatingReadBuffer.cpp | 36 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()
|
D | SkBuffer.cpp | 29 size_t n = SkAlign4(pos) - pos; in skipToAlign4() 56 size_t n = SkAlign4(pos) - pos; in padToAlign4()
|
D | SkWriter32.cpp | 21 size_t alignedSize = SkAlign4(len + 1); in readString() 63 return SkAlign4(lenBytes + len + 1); in WriteStringSize()
|
D | SkGlyph.h | 180 rb = SkAlign4(rb << 1); in ComputeRowBytes() 182 rb = SkAlign4(rb); in ComputeRowBytes() 201 allocSize = SkAlign4(fWidth) * fHeight; in allocImage()
|
D | SkColorSpace.cpp | 415 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()
|
D | SkDescriptor.h | 24 SkASSERT(SkAlign4(length) == length); in Alloc() 40 SkASSERT(SkAlign4(length) == length);
|
D | SkPictureRecord.cpp | 545 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()
|
D | SkMask.cpp | 48 return (uint8_t*)sk_malloc_throw(SkAlign4(size)); in AllocImage()
|
D | SkAutoMalloc.h | 159 static const size_t kSizeAlign4 = SkAlign4(kSizeRequested);
|
D | SkStream.cpp | 505 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/ |
D | SkPipeReader.cpp | 347 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/ |
D | ChecksumTest.cpp | 15 const size_t kBytes = SkAlign4(128); in DEF_TEST()
|
D | SerializationTest.cpp | 38 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()
|
D | Writer32Test.cpp | 138 size_t alignedSize = SkAlign4(len + 1); in test2() 177 const char* stop = readPtr + SkAlign4(len); in testWritePad()
|
D | ReadPixelsTest.cpp | 289 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/ |
D | GrPrimitiveProcessor.h | 112 , fOffset(SkAlign4(GrVertexAttribTypeSize(type))) in Attribute()
|
D | GrProgramDesc.h | 152 kHeaderSize = SkAlign4(sizeof(KeyHeader)),
|
D | GrShape.cpp | 88 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/ |
D | SkFontMgr_FontConfigInterface.cpp | 81 size_t contentLen = SkAlign4(nameLen); in Request() 93 size_t contentLen = SkAlign4(nameLen); in Create()
|
D | SkImageEncoder_WIC.cpp | 97 rowBytes = SkAlign4(bitmap.width() * 3); in SkEncodeImageWithWIC()
|
/external/skia/include/private/ |
D | SkTemplates.h | 390 static const size_t kCountWithPadding = SkAlign4(kCountRequested*sizeof(T)) / sizeof(T); 404 uint32_t fStorage32[SkAlign4(kCount*sizeof(T)) >> 2];
|
/external/skia/src/effects/ |
D | SkTableMaskFilter.cpp | 34 dst->fRowBytes = SkAlign4(dst->fBounds.width()); in filterMask()
|