Home
last modified time | relevance | path

Searched refs:fAlignedOffset (Results 1 – 4 of 4) sorted by relevance

/external/skia/tests/
DGrBlockAllocatorTest.cpp64 return br.fBlock->ptr(br.fAlignedOffset); in alloc_byte()
100 uintptr_t pt = reinterpret_cast<uintptr_t>(br.fBlock->ptr(br.fAlignedOffset)); in DEF_TEST()
104 REPORTER_ASSERT(r, br.fEnd - br.fAlignedOffset >= size); in DEF_TEST()
106 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart >= 0); in DEF_TEST()
107 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart <= align - 1); in DEF_TEST()
120 std::memset(br.fBlock->ptr(br.fAlignedOffset), 0xFF, br.fEnd - br.fAlignedOffset); in DEF_TEST()
183 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x11, p.fEnd - p.fAlignedOffset); in DEF_TEST()
187 REPORTER_ASSERT(r, reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(pNext.fAlignedOffset)) - in DEF_TEST()
188 reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(p.fAlignedOffset)) == 32); in DEF_TEST()
198 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x22, p.fEnd - p.fAlignedOffset); in DEF_TEST()
[all …]
/external/skia/src/gpu/
DGrTBlockList.h256 SkASSERT(br.fStart == br.fAlignedOffset || in pushItem()
257 br.fAlignedOffset == First(fAllocator->currentBlock())); in pushItem()
258 br.fBlock->setMetadata(br.fAlignedOffset); in pushItem()
260 return br.fBlock->ptr(br.fAlignedOffset); in pushItem()
330 memcpy(target.fBlock->ptr(target.fAlignedOffset), src->ptr(start), n * sizeof(T)); in concat()
331 target.fBlock->setMetadata(target.fAlignedOffset + (n - 1) * sizeof(T)); in concat()
DGrMemoryPool.cpp69 Header* header = static_cast<Header*>(alloc.fBlock->ptr(alloc.fAlignedOffset - sizeof(Header))); in allocate()
94 return alloc.fBlock->ptr(alloc.fAlignedOffset); in allocate()
DGrBlockAllocator.h68 int fAlignedOffset; // >= start, matching alignment requirement (i.e. first real byte) member