Home
last modified time | relevance | path

Searched refs:fCurr (Results 1 – 25 of 47) sorted by relevance

12

/external/skqp/src/core/
DSkReader32.h24 SkReader32() : fCurr(nullptr), fStop(nullptr), fBase(nullptr) {} in SkReader32()
33 fBase = fCurr = (const char*)data; in setMemory()
38 size_t offset() const { return fCurr - fBase; } in offset()
39 bool eof() const { return fCurr >= fStop; } in eof()
41 const void* peek() const { return fCurr; } in peek()
43 size_t available() const { return fStop - fCurr; } in available()
46 void rewind() { fCurr = fBase; } in rewind()
51 fCurr = fBase + offset; in setOffset()
57 SkASSERT(ptr_align_4(fCurr)); in readInt()
58 int32_t value = *(const int32_t*)fCurr; in readInt()
[all …]
DSkArenaAllocList.h35 T& operator*() const { return fCurr->fT; }
36 T* operator->() const { return &fCurr->fT; }
37 bool operator==(const Iter& that) const { return fCurr == that.fCurr; }
42 explicit Iter(Node* node) : fCurr(node) {} in Iter()
43 Node* fCurr = nullptr; variable
76 fCurr = fCurr->fNext;
DSkStream.cpp457 char* fCurr; member
462 size_t avail() const { return fStop - fCurr; } in avail()
463 size_t written() const { return fCurr - this->start(); } in written()
467 fCurr = this->start(); in init()
472 SkASSERT((size_t)(fStop - fCurr) >= size); in append()
473 sk_memcpy_4bytes(fCurr, data, size); in append()
474 fCurr += size; in append()
868 ptrdiff_t used = fTail->fCurr - (char*)fTail; in detachAsStream()
870 fTail->fStop = fTail->fCurr = (char*)fTail + used; // Update pointers. in detachAsStream()
/external/skia/src/core/
DSkTInternalLList.h198 Iter() : fCurr(nullptr) {} in Iter()
199 Iter(const Iter& iter) : fCurr(iter.fCurr) {} in Iter()
200 Iter& operator= (const Iter& iter) { fCurr = iter.fCurr; return *this; }
204 fCurr = list.fHead; in init()
207 fCurr = list.fTail; in init()
210 return fCurr; in init()
213 T* get() { return fCurr; } in get()
219 if (nullptr == fCurr) { in next()
223 fCurr = fCurr->fNext; in next()
224 return fCurr; in next()
[all …]
DSkArenaAllocList.h35 T& operator*() const { return fCurr->fT; }
36 T* operator->() const { return &fCurr->fT; }
37 bool operator==(const Iter& that) const { return fCurr == that.fCurr; }
42 explicit Iter(Node* node) : fCurr(node) {} in Iter()
43 Node* fCurr = nullptr; variable
76 fCurr = fCurr->fNext;
DSkReadBuffer.cpp42 fBase = fCurr = (const char*)data; in setMemory()
50 fCurr = fStop; in setInvalid()
58 const void* addr = fCurr; in skip()
64 fCurr += inc; in skip()
89 if (!this->validate(IsPtrAlign4(fCurr) && this->isAvailable(inc))) { in readInt()
92 int32_t value = *((const int32_t*)fCurr); in readInt()
93 fCurr += inc; in readInt()
99 if (!this->validate(IsPtrAlign4(fCurr) && this->isAvailable(inc))) { in readScalar()
102 SkScalar value = *((const SkScalar*)fCurr); in readScalar()
103 fCurr += inc; in readScalar()
[all …]
DSkReadBuffer.h59 size_t offset() const { return fCurr - fBase; } in offset()
60 bool eof() { return fCurr >= fStop; } in eof()
63 size_t available() const { return fStop - fCurr; } in available()
217 const char* fCurr = nullptr; // current position within buffer variable
DSkStream.cpp468 char* fCurr; member
473 size_t avail() const { return fStop - fCurr; } in avail()
474 size_t written() const { return fCurr - this->start(); } in written()
478 fCurr = this->start(); in init()
483 SkASSERT((size_t)(fStop - fCurr) >= size); in append()
484 sk_memcpy_4bytes(fCurr, data, size); in append()
485 fCurr += size; in append()
879 ptrdiff_t used = fTail->fCurr - (char*)fTail; in detachAsStream()
881 fTail->fStop = fTail->fCurr = (char*)fTail + used; // Update pointers. in detachAsStream()
/external/skqp/include/private/
DSkTInternalLList.h216 Iter() : fCurr(nullptr) {} in Iter()
217 Iter(const Iter& iter) : fCurr(iter.fCurr) {} in Iter()
218 Iter& operator= (const Iter& iter) { fCurr = iter.fCurr; return *this; }
222 fCurr = list.fHead; in init()
225 fCurr = list.fTail; in init()
228 return fCurr; in init()
231 T* get() { return fCurr; } in get()
237 if (nullptr == fCurr) { in next()
241 fCurr = fCurr->fNext; in next()
242 return fCurr; in next()
[all …]
/external/skqp/src/gpu/
DGrPrimitiveProcessor.h85 Iter() : fCurr(nullptr), fRemaining(0) {} in Iter()
86 Iter(const Iter& iter) : fCurr(iter.fCurr), fRemaining(iter.fRemaining) {} in Iter()
88 fCurr = iter.fCurr;
92 Iter(const Attribute* attrs, int count) : fCurr(attrs), fRemaining(count) { in Iter()
96 bool operator!=(const Iter& that) const { return fCurr != that.fCurr; }
97 const Attribute& operator*() const { return *fCurr; }
101 fCurr++;
109 fCurr = nullptr; in skipUninitialized()
111 while (!fCurr->isInitialized()) { in skipUninitialized()
112 ++fCurr; in skipUninitialized()
[all …]
/external/skia/src/gpu/
DGrGeometryProcessor.h85 Iter() : fCurr(nullptr), fRemaining(0) {} in Iter()
86 Iter(const Iter& iter) : fCurr(iter.fCurr), fRemaining(iter.fRemaining) {} in Iter()
88 fCurr = iter.fCurr;
92 Iter(const Attribute* attrs, int count) : fCurr(attrs), fRemaining(count) { in Iter()
96 bool operator!=(const Iter& that) const { return fCurr != that.fCurr; }
97 const Attribute& operator*() const { return *fCurr; }
101 fCurr++;
109 fCurr = nullptr; in skipUninitialized()
111 while (!fCurr->isInitialized()) { in skipUninitialized()
112 ++fCurr; in skipUninitialized()
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCSTLList.h51 bool operator!=(const Iter& that) { return fCurr != that.fCurr; }
52 U& operator*() { return *fCurr; }
53 void operator++() { fCurr = fCurr->fNext; }
54 U* fCurr; member
/external/skia/samplecode/
DSample.cpp76 fClick->fPrev = fClick->fCurr = fClick->fOrig = point; in mouse()
83 fClick->fPrev = fClick->fCurr; in mouse()
84 fClick->fCurr = point; in mouse()
92 fClick->fPrev = fClick->fCurr; in mouse()
93 fClick->fCurr = point; in mouse()
DSampleAudio.cpp73 if (fBar.contains(click->fCurr.fX, click->fCurr.fY)) { in onFindClickHandler()
74 fPlayer->setNormalizedTime((click->fCurr.fX - fBar.fLeft) / fBar.width()); in onFindClickHandler()
DSamplePathClip.cpp57 fCenter = c->fCurr; in onFindClickHandler()
236 void handleMove() override { *fPt = snap(fCurr); } in handleMove()
243 void handleMove() override { fRect->offset(fCurr.x() - fPrev.x(), fCurr.y() - fPrev.y()); } in handleMove()
257 const SkScalar dx = fCurr.x() - fOrig.x(); in handleMove()
258 const SkScalar dy = fCurr.y() - fOrig.y(); in handleMove()
DSampleMixer.cpp81 fRect.offset(click->fCurr.fX - click->fPrev.fX, in onClick()
82 click->fCurr.fY - click->fPrev.fY); in onClick()
DSampleSG.cpp90 SkScalar dx = click->fCurr.fX - click->fPrev.fX; in onClick()
91 SkScalar dy = click->fCurr.fY - click->fPrev.fY; in onClick()
DSampleTessellatedWedge.cpp127 SkPathPriv::UpdatePathPoint(path, fPtIdx, pt + fCurr - fPrev); in doClick()
130 SkMatrix::Translate(fCurr.x() - fPrev.x(), fCurr.y() - fPrev.y()), path); in doClick()
/external/skqp/src/gpu/ops/
DGrOp.h207 explicit Iter(const OpSubclass* head) : fCurr(head) {} in Iter()
209 return *this = Iter(static_cast<const OpSubclass*>(fCurr->nextInChain()));
211 const OpSubclass& operator*() const { return *fCurr; }
212 bool operator!=(const Iter& that) const { return fCurr != that.fCurr; }
215 const OpSubclass* fCurr;
/external/skqp/samplecode/
DSample.cpp160 click->fPrev = click->fCurr = click->fOrig; in DoClickDown()
178 click->fPrev = click->fCurr; in DoClickMoved()
179 click->fCurr.iset(x, y); in DoClickMoved()
197 click->fPrev = click->fCurr; in DoClickUp()
198 click->fCurr.iset(x, y); in DoClickUp()
DSamplePathClip.cpp66 fCenter.set(click->fCurr.fX, click->fCurr.fY); in onClick()
250 void handleMove() override { *fPt = snap(fCurr); } in handleMove()
257 void handleMove() override { fRect->offset(fCurr.x() - fPrev.x(), fCurr.y() - fPrev.y()); } in handleMove()
272 const SkScalar dx = fCurr.x() - fOrig.x(); in handleMove()
273 const SkScalar dy = fCurr.y() - fOrig.y(); in handleMove()
DPerlinPatch.cpp198 fPts[ptClick->fIndex].set(click->fCurr.fX , click->fCurr.fY ); in onClick()
200 SkScalar xDiff = click->fPrev.fX - click->fCurr.fX; in onClick()
201 SkScalar yDiff = click->fPrev.fY - click->fCurr.fY; in onClick()
205 SkScalar yDiff = click->fCurr.fY - click->fPrev.fY; in onClick()
DSampleLua.cpp150 fLua->pushScalar(click->fCurr.x()); in onClick()
151 fLua->pushScalar(click->fCurr.y()); in onClick()
/external/skqp/src/gpu/glsl/
DGrGLSLPrimitiveProcessor.cpp71 SkASSERT(nullptr == fCurr || fAddedCoord); in nextCoordTransform()
73 fCurr = fIter.next(); in nextCoordTransform()
74 return fCurr; in nextCoordTransform()
/external/skia/src/gpu/ops/
DGrOp.h217 explicit Iter(const OpSubclass* head) : fCurr(head) {} in Iter()
219 return *this = Iter(static_cast<const OpSubclass*>(fCurr->nextInChain()));
221 const OpSubclass& operator*() const { return *fCurr; }
222 bool operator!=(const Iter& that) const { return fCurr != that.fCurr; }
225 const OpSubclass* fCurr;

12