/external/skia/src/core/ |
D | SkReader32.h | 23 SkReader32() : fCurr(nullptr), fStop(nullptr), fBase(nullptr) {} in SkReader32() 32 fBase = fCurr = (const char*)data; in setMemory() 37 size_t offset() const { return fCurr - fBase; } in offset() 38 bool eof() const { return fCurr >= fStop; } in eof() 40 const void* peek() const { return fCurr; } in peek() 42 size_t available() const { return fStop - fCurr; } in available() 45 void rewind() { fCurr = fBase; } in rewind() 50 fCurr = fBase + offset; in setOffset() 56 SkASSERT(ptr_align_4(fCurr)); in readInt() 57 int32_t value = *(const int32_t*)fCurr; in readInt() [all …]
|
D | SkTInternalLList.h | 184 Iter() : fCurr(NULL) {} in Iter() 185 Iter(const Iter& iter) : fCurr(iter.fCurr) {} in Iter() 186 Iter& operator= (const Iter& iter) { fCurr = iter.fCurr; return *this; } 190 fCurr = list.fHead; in init() 193 fCurr = list.fTail; in init() 196 return fCurr; in init() 199 T* get() { return fCurr; } in get() 205 if (NULL == fCurr) { in next() 209 fCurr = fCurr->fNext; in next() 210 return fCurr; in next() [all …]
|
D | SkStream.cpp | 497 char* fCurr; member 502 size_t avail() const { return fStop - fCurr; } in avail() 503 size_t written() const { return fCurr - this->start(); } in written() 508 fCurr = this->start(); in init() 514 SkASSERT((size_t)(fStop - fCurr) >= size); in append() 515 memcpy(fCurr, data, size); in append() 516 fCurr += size; in append()
|
/external/skia/src/xml/ |
D | SkXMLPullParser.cpp | 21 fCurr.fEventType = ERROR; in SkXMLPullParser() 27 fCurr.fEventType = ERROR; in SkXMLPullParser() 47 fCurr.fEventType = START_DOCUMENT; in setStream() 52 fCurr.fEventType = ERROR; in setStream() 61 switch (fCurr.fEventType) { in nextToken() 69 reset(&fCurr); in nextToken() 70 fCurr.fEventType = this->onNextToken(); in nextToken() 74 switch (fCurr.fEventType) { in nextToken() 82 return fCurr.fEventType; in nextToken() 87 switch (fCurr.fEventType) { in getName() [all …]
|
/external/skia/samplecode/ |
D | SamplePathClip.cpp | 66 fCenter.set(click->fCurr.fX, click->fCurr.fY); in onClick() 249 void handleMove() override { *fPt = snap(fCurr); } in handleMove() 256 void handleMove() override { fRect->offset(fCurr.x() - fPrev.x(), fCurr.y() - fPrev.y()); } in handleMove() 271 const SkScalar dx = fCurr.x() - fOrig.x(); in handleMove() 272 const SkScalar dy = fCurr.y() - fOrig.y(); in handleMove()
|
D | PerlinPatch.cpp | 192 fPts[ptClick->fIndex].set(click->fCurr.fX , click->fCurr.fY ); in onClick() 194 SkScalar xDiff = click->fPrev.fX - click->fCurr.fX; in onClick() 195 SkScalar yDiff = click->fPrev.fY - click->fCurr.fY; in onClick() 199 SkScalar yDiff = click->fCurr.fY - click->fPrev.fY; in onClick()
|
D | SampleXfer.cpp | 89 SkRect target = SkRect::MakeXYWH(click->fCurr.x() - 1, click->fCurr.y() - 1, 3, 3); in onClick() 240 fSelected->fLoc.fX += click->fCurr.fX - click->fPrev.fX; in onClick() 241 fSelected->fLoc.fY += click->fCurr.fY - click->fPrev.fY; in onClick()
|
D | SampleDraw.cpp | 342 if (SkPoint::Distance(click->fOrig, click->fCurr) > SkIntToScalar(3)) { in onClick() 359 this->setDraw(fFactory->create(click->fOrig, click->fCurr))->unref(); in onClick() 363 (*iter)->offset(click->fCurr.x() - click->fPrev.x(), in onClick() 364 click->fCurr.y() - click->fPrev.y()); in onClick()
|
D | SampleLua.cpp | 168 fLua->pushScalar(click->fCurr.x()); in onClick() 169 fLua->pushScalar(click->fCurr.y()); in onClick()
|
D | SampleFatBits.cpp | 515 fPts[index] = click->fCurr; in onClick() 517 SkScalar dx = click->fCurr.fX - click->fPrev.fX; in onClick() 518 SkScalar dy = click->fCurr.fY - click->fPrev.fY; in onClick()
|
D | SamplePatch.cpp | 349 fPts[((PtClick*)click)->fIndex].set(click->fCurr.fX - DX, click->fCurr.fY - DY); in onClick()
|
D | SampleLayers.cpp | 303 fCenter = click->fCurr; in onClick()
|
D | SamplePath.cpp | 325 fPts[index] = click->fCurr; in onClick()
|
/external/skia/src/views/ |
D | SkView.cpp | 391 click->fPrev = click->fCurr = click->fOrig; in DoClickDown() 409 click->fPrev = click->fCurr; in DoClickMoved() 410 click->fCurr.iset(x, y); in DoClickMoved() 411 if (!target->globalToLocal(&click->fCurr)) { in DoClickMoved() 413 click->fCurr = click->fPrev; in DoClickMoved() 432 click->fPrev = click->fCurr; in DoClickUp() 433 click->fCurr.iset(x, y); in DoClickUp() 434 if (!target->globalToLocal(&click->fCurr)) { in DoClickUp() 436 click->fCurr = click->fPrev; in DoClickUp()
|
D | SkWidgets.cpp | 326 if (r.contains(click->fCurr))
|
/external/skia/include/xml/ |
D | SkXMLParser.h | 113 EventType getEventType() const { return fCurr.fEventType; } 147 Curr fCurr;
|
/external/skia/experimental/DrawingBoard/ |
D | SampleDrawingClient.cpp | 148 fCurrLine.moveTo(click->fCurr); in onClick() 154 fCurrLine.lineTo(click->fCurr); in onClick()
|
D | SkColorPalette.cpp | 80 SkPoint curr = click->fCurr; in onClick()
|
/external/skia/include/views/ |
D | SkView.h | 155 SkPoint fOrig, fPrev, fCurr; variable
|