Home
last modified time | relevance | path

Searched refs:fCursor (Results 1 – 9 of 9) sorted by relevance

/external/skqp/src/core/
DSkArenaAlloc.cpp21 , fCursor {block}
28 fEnd = fCursor = fDtorCursor = nullptr;
31 if (fCursor != nullptr) {
52 memmove(fCursor, &encodedFooter, sizeof(Footer)); in installFooter()
53 fCursor += sizeof(Footer); in installFooter()
54 fDtorCursor = fCursor; in installFooter()
58 memmove(fCursor, &ptr, sizeof(char*)); in installPtrFooter()
59 fCursor += sizeof(char*); in installPtrFooter()
92 memmove(fCursor, &value, sizeof(uint32_t)); in installUint32Footer()
93 fCursor += sizeof(uint32_t); in installUint32Footer()
[all …]
/external/skia/src/core/
DSkArenaAlloc.cpp16 , fCursor {block}
21 fEnd = fCursor = fDtorCursor = nullptr;
24 if (fCursor != nullptr) {
37 fDtorCursor = fCursor; in installFooter()
94 fCursor = newBlock; in ensureSpace()
96 fEnd = fCursor + allocationSize; in ensureSpace()
106 const bool needsSkipFooter = fCursor != fDtorCursor; in allocObjectWithFooter()
113 if (!fCursor) { in allocObjectWithFooter()
120 char* objStart = (char*)((uintptr_t)(fCursor + skipOverhead + mask) & ~mask); in allocObjectWithFooter()
131 this->installRaw(ToU32(fCursor - fDtorCursor)); in allocObjectWithFooter()
DSkArenaAlloc.h129 fCursor = objStart + size;
133 uint32_t padding = ToU32(objStart - fCursor);
136 fCursor = objStart + size;
189 fCursor = objStart + size; in makeBytesAlignedTo()
212 memcpy(fCursor, &val, sizeof(val)); in installRaw()
213 fCursor += sizeof(val); in installRaw()
221 uintptr_t alignedOffset = (~reinterpret_cast<uintptr_t>(fCursor) + 1) & mask; in allocObject()
224 if (totalSize > static_cast<uintptr_t>(fEnd - fCursor)) { in allocObject()
226 alignedOffset = (~reinterpret_cast<uintptr_t>(fCursor) + 1) & mask; in allocObject()
229 char* object = fCursor + alignedOffset; in allocObject()
[all …]
/external/skqp/include/private/
DSkArenaAlloc.h81 fCursor = objStart + size; in make()
85 uint32_t padding = ToU32(objStart - fCursor); in make()
88 fCursor = objStart + size; in make()
132 fCursor = objStart + size; in makeBytesAlignedTo()
161 uintptr_t alignedOffset = (~reinterpret_cast<uintptr_t>(fCursor) + 1) & mask; in allocObject()
164 if (totalSize > static_cast<uintptr_t>(fEnd - fCursor)) { in allocObject()
166 alignedOffset = (~reinterpret_cast<uintptr_t>(fCursor) + 1) & mask; in allocObject()
168 return fCursor + alignedOffset; in allocObject()
182 fCursor = objStart + arraySize; in commonArrayAlloc()
190 uint32_t padding = ToU32(objStart - fCursor); in commonArrayAlloc()
[all …]
/external/skia/src/gpu/
DGrBlockAllocator.h139 int cursor() const { return this->alignedOffset<Align, Padding>(fCursor); } in cursor()
144 bool isScratch() const { return fCursor < 0; } in isScratch()
146 fCursor = -1; in markAsScratch()
158 int fCursor; // (this + fCursor) points to next available allocation variable
586 SkASSERT(offset - fTail->fCursor >= (int) Padding && in allocate()
587 offset - fTail->fCursor <= (int) (Padding + Align - 1)); in allocate()
590 int start = fTail->fCursor; in allocate()
591 fTail->fCursor = end; in allocate()
647 if (fCursor == end) { in resize()
652 if (nextCursor < fCursor) { in resize()
[all …]
DGrBlockAllocator.cpp35 , fCursor(kDataStart) in Block()
76 size += (b->fCursor - kDataStart); in totalSpaceInUse()
99 block->fCursor = kDataStart; in releaseBlock()
171 b->fCursor = kDataStart; in reset()
183 fHead.metadata() == 0 && fHead.fCursor == kDataStart); in reset()
281 SkASSERT(block->fCursor >= kDataStart); in validate()
282 SkASSERT(block->fCursor <= block->fSize); in validate()
/external/skia/modules/skplaintexteditor/include/
Deditor.h97 TextPosition fCursor; member
/external/skia/modules/skplaintexteditor/app/
Deditor_application.cpp129 options.fCursor = fTextPos; in onPaint()
/external/skia/modules/skplaintexteditor/src/
Deditor.cpp449 c->drawRect(Editor::getLocation(options.fCursor), SkPaint(options.fCursorColor)); in paint()