Home
last modified time | relevance | path

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

/third_party/skia/tests/
DSkBlockAllocatorTest.cpp72 return br.fBlock->ptr(br.fAlignedOffset); in alloc_byte()
109 uintptr_t pt = reinterpret_cast<uintptr_t>(br.fBlock->ptr(br.fAlignedOffset)); in DEF_TEST()
113 REPORTER_ASSERT(r, br.fEnd - br.fAlignedOffset >= size); in DEF_TEST()
115 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart >= 0); in DEF_TEST()
116 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart <= align - 1); in DEF_TEST()
129 std::memset(br.fBlock->ptr(br.fAlignedOffset), 0xFF, br.fEnd - br.fAlignedOffset); in DEF_TEST()
192 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x11, p.fEnd - p.fAlignedOffset); in DEF_TEST()
196 REPORTER_ASSERT(r, reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(pNext.fAlignedOffset)) - in DEF_TEST()
197 reinterpret_cast<uintptr_t>(pNext.fBlock->ptr(p.fAlignedOffset)) == 32); in DEF_TEST()
207 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x22, p.fEnd - p.fAlignedOffset); in DEF_TEST()
[all …]
/third_party/skia/src/core/
DSkTBlockList.h257 SkASSERT(br.fStart == br.fAlignedOffset || in pushItem()
258 br.fAlignedOffset == First(fAllocator->currentBlock())); in pushItem()
259 br.fBlock->setMetadata(br.fAlignedOffset); in pushItem()
261 return br.fBlock->ptr(br.fAlignedOffset); in pushItem()
326 memcpy(target.fBlock->ptr(target.fAlignedOffset), src->ptr(start), n * sizeof(T)); in concat()
327 target.fBlock->setMetadata(target.fAlignedOffset + (n - 1) * sizeof(T)); in concat()
DSkBlockAllocator.h75 int fAlignedOffset; // >= start, matching alignment requirement (i.e. first real byte) member
/third_party/skia/src/gpu/
DGrMemoryPool.cpp68 Header* header = static_cast<Header*>(alloc.fBlock->ptr(alloc.fAlignedOffset - sizeof(Header))); in allocate()
93 return alloc.fBlock->ptr(alloc.fAlignedOffset); in allocate()