Home
last modified time | relevance | path

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

123

/external/skia/src/core/
DSkWriter32.h60 SkASSERT(SkAlign4(size) == size); in reserve()
76 SkASSERT(SkAlign4(offset) == offset); in readTAt()
87 SkASSERT(SkAlign4(offset) == offset); in overwriteTAt()
139 SkASSERT(SkAlign4(size) == size); in writePath()
147 SkASSERT(SkAlign4(size) == size); in writeRegion()
161 SkASSERT(SkAlign4(size) == size); in write()
170 size_t alignedSize = SkAlign4(size); in reservePad()
211 return 4 + SkAlign4(data ? data->size() : 0); in WriteDataSize()
219 SkASSERT(SkAlign4(offset) == offset); in rewindToOffset()
DSkWriter32.cpp14 SkASSERT(SkAlign4(size) == size); in writeMatrix()
42 return SkAlign4(lenBytes + len + 1); in WriteStringSize()
DSkBuffer.cpp34 size_t n = SkAlign4(pos) - pos; in skipToAlign4()
62 size_t n = SkAlign4(pos) - pos; in padToAlign4()
DSkReadBuffer.cpp40 this->validate(IsPtrAlign4(data) && (SkAlign4(size) == size)); in setMemory()
56 size_t inc = SkAlign4(size); in skip()
184 (void)this->validate((SkAlign4(size) == size) && (0 != size)); in readMatrix()
228 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readRRect()
239 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readRegion()
250 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readPath()
DSkCanvasPriv.cpp63 SkAlign4(flagCount * sizeof(SkCanvas::Lattice::RectType)) + in WriteLattice()
64 SkAlign4(flagCount * sizeof(SkColor)) + in WriteLattice()
DSkDescriptor.cpp17 SkASSERT(SkAlign4(length) == length); in Alloc()
29 SkASSERT(SkAlign4(length) == length); in addEntry()
DSkAutoMalloc.h160 static const size_t kSizeAlign4 = SkAlign4(kSizeRequested);
/external/skqp/src/core/
DSkWriter32.h60 SkASSERT(SkAlign4(size) == size); in reserve()
76 SkASSERT(SkAlign4(offset) == offset); in readTAt()
87 SkASSERT(SkAlign4(offset) == offset); in overwriteTAt()
145 SkASSERT(SkAlign4(size) == size); in writePath()
153 SkASSERT(SkAlign4(size) == size); in writeRegion()
167 SkASSERT(SkAlign4(size) == size); in write()
176 size_t alignedSize = SkAlign4(size); in reservePad()
218 return 4 + SkAlign4(data ? data->size() : 0); in WriteDataSize()
226 SkASSERT(SkAlign4(offset) == offset); in rewindToOffset()
DSkReader32.h31 SkASSERT(SkAlign4(size) == size); in setMemory()
49 SkASSERT(SkAlign4(offset) == offset); in setOffset()
87 fCurr += SkAlign4(size); in skip()
93 SkASSERT(SkAlign4(sizeof(T)) == sizeof(T)); in skipT()
101 fCurr += SkAlign4(size); in read()
151 bool success = (size > 0) && (size <= this->available()) && (SkAlign4(size) == size); in readObjectFromMemory()
DSkWriter32.cpp17 SkASSERT(SkAlign4(size) == size); in writeMatrix()
30 size_t alignedSize = SkAlign4(len + 1); in readString()
72 return SkAlign4(lenBytes + len + 1); in WriteStringSize()
DSkBuffer.cpp34 size_t n = SkAlign4(pos) - pos; in skipToAlign4()
62 size_t n = SkAlign4(pos) - pos; in padToAlign4()
DSkReadBuffer.cpp64 this->validate(IsPtrAlign4(data) && (SkAlign4(size) == size)); in setMemory()
78 size_t inc = SkAlign4(size); in skip()
176 (void)this->validate((SkAlign4(size) == size) && (0 != size)); in readMatrix()
206 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readRegion()
217 if (!this->validate((SkAlign4(size) == size) && (0 != size))) { in readPath()
DSkDescriptor.cpp17 SkASSERT(SkAlign4(length) == length); in Alloc()
25 SkASSERT(SkAlign4(length) == length); in addEntry()
DSkCanvasPriv.cpp59 SkAlign4(flagCount * sizeof(SkCanvas::Lattice::RectType)) + in WriteLattice()
60 SkAlign4(flagCount * sizeof(SkColor)) + in WriteLattice()
DSkAutoMalloc.h161 static const size_t kSizeAlign4 = SkAlign4(kSizeRequested);
/external/skia/src/gpu/effects/
DGrGaussianConvolutionFragmentProcessor.h81 float fKernel[SkAlign4(kMaxKernelWidth)];
82 float fOffsets[SkAlign4(kMaxKernelWidth)];
/external/skia/src/gpu/mtl/
DGrMtlBuffer.mm55 size = SkAlign4(size);
87 SkASSERT(SkAlign4(srcInBytes) == fMappedBuffer.length);
138 sizeInBytes = SkAlign4(sizeInBytes);
162 sizeInBytes = SkAlign4(sizeInBytes);
/external/skqp/include/core/
DSkTypes.h120 template <typename T> static constexpr T SkAlign4(T x) { return (x + 3) >> 2 << 2; } in SkAlign4() function
128 return sizeof(void*) == 8 ? SkAlign8(x) : SkAlign4(x); in SkAlignPtr()
/external/skqp/src/gpu/effects/
DGrSkSLFP.cpp57 offset = SkAlign4(offset); in getSpecialization()
67 offset = SkAlign4(offset) + sizeof(float) * 4; in getSpecialization()
195 offset = SkAlign4(offset); in onSetData()
307 offset = SkAlign4(offset); in onGetGLSLProcessorKey()
/external/skqp/tests/
DSerializationTest.cpp46 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); in TestAlignment()
48 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); in TestAlignment()
176 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
214 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
763 blob_size = SkAlign4(blob->serialize(procs)->size()); in DEF_TEST()
776 size_t path_size = SkAlign4(path_effect->serialize()->size()); in DEF_TEST()
DChecksumTest.cpp16 const size_t kBytes = SkAlign4(128); in DEF_TEST()
/external/skia/tests/
DSerializationTest.cpp44 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); in TestAlignment()
46 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); in TestAlignment()
174 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
212 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
853 blob_size = SkAlign4(blob->serialize(procs)->size()); in DEF_TEST()
866 size_t path_size = SkAlign4(path_effect->serialize()->size()); in DEF_TEST()
DChecksumTest.cpp16 const size_t kBytes = SkAlign4(128); in DEF_TEST()
/external/skqp/src/gpu/
DGrProgramDesc.h123 kHeaderSize = SkAlign4(sizeof(KeyHeader)),
/external/skqp/src/ports/
DSkFontMgr_FontConfigInterface.cpp82 size_t contentLen = SkAlign4(nameLen); in Request()
94 size_t contentLen = SkAlign4(nameLen); in Create()

123