Home
last modified time | relevance | path

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

/third_party/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(SkToU32(fCursor - fDtorCursor)); in allocObjectWithFooter()
DSkArenaAlloc.h129 fCursor = objStart + size;
133 uint32_t padding = SkToU32(objStart - fCursor);
136 fCursor = objStart + size;
189 fCursor = objStart + size; in makeBytesAlignedTo()
208 memcpy(fCursor, &val, sizeof(val)); in installRaw()
209 fCursor += sizeof(val); in installRaw()
217 uintptr_t alignedOffset = (~reinterpret_cast<uintptr_t>(fCursor) + 1) & mask; in allocObject()
220 if (totalSize > static_cast<uintptr_t>(fEnd - fCursor)) { in allocObject()
222 alignedOffset = (~reinterpret_cast<uintptr_t>(fCursor) + 1) & mask; in allocObject()
225 char* object = fCursor + alignedOffset; in allocObject()
[all …]
DSkBlockAllocator.h146 int cursor() const { return this->alignedOffset<Align, Padding>(fCursor); } in cursor()
151 bool isScratch() const { return fCursor < 0; } in isScratch()
153 fCursor = -1; in markAsScratch()
165 int fCursor; // (this + fCursor) points to next available allocation variable
592 SkASSERT(offset - fTail->fCursor >= (int) Padding && in allocate()
593 offset - fTail->fCursor <= (int) (Padding + Align - 1)); in allocate()
596 int start = fTail->fCursor; in allocate()
597 fTail->fCursor = end; in allocate()
653 if (fCursor == end) { in resize()
658 if (nextCursor < fCursor) { in resize()
[all …]
DSkBlockAllocator.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()
/third_party/skia/experimental/sktext/editor/
DEditor.cpp19 fCursor = Cursor::Make(); in Editor()
51 fCursor->place(endOfText.fBoundaries); in Editor()
61 …auto position = fEditableText->adjustedPosition(fDefaultPositionType, fCursor->getCenterPosition()… in update()
63 fCursor->place(position.fBoundaries); in update()
72 auto cursorPosition = fCursor->getCenterPosition(); in moveCursor()
103 fCursor->place(position.fBoundaries); in moveCursor()
153 auto cursorPosition = fCursor->getCenterPosition(); in deleteElement()
163 fCursor->place(position.fBoundaries); in deleteElement()
172 fCursor->place(position.fBoundaries); in deleteElement()
179 auto cursorPosition = fCursor->getCenterPosition(); in insertCodepoint()
[all …]
DEditor.h34 void blink() { fCursor->blink(); } in blink()
55 std::unique_ptr<Cursor> fCursor; variable
/third_party/skia/modules/skplaintexteditor/include/
Deditor.h97 TextPosition fCursor; member
/third_party/skia/modules/skplaintexteditor/app/
Deditor_application.cpp129 options.fCursor = fTextPos; in onPaint()
/third_party/skia/modules/skplaintexteditor/src/
Deditor.cpp449 c->drawRect(Editor::getLocation(options.fCursor), SkPaint(options.fCursorColor)); in paint()