/external/skqp/src/core/ |
D | SkCanvasPriv.cpp | 39 bool SkCanvasPriv::ReadLattice(SkReadBuffer& buffer, SkCanvas::Lattice* lattice) { in ReadLattice() argument 40 lattice->fXCount = buffer.readInt(); in ReadLattice() 41 lattice->fXDivs = buffer.skipT<int32_t>(lattice->fXCount); in ReadLattice() 42 lattice->fYCount = buffer.readInt(); in ReadLattice() 43 lattice->fYDivs = buffer.skipT<int32_t>(lattice->fYCount); in ReadLattice() 45 lattice->fRectTypes = nullptr; in ReadLattice() 46 lattice->fColors = nullptr; in ReadLattice() 48 lattice->fRectTypes = buffer.skipT<SkCanvas::Lattice::RectType>(flagCount); in ReadLattice() 49 lattice->fColors = buffer.skipT<SkColor>(flagCount); in ReadLattice() 51 lattice->fBounds = buffer.skipT<SkIRect>(); in ReadLattice() [all …]
|
D | SkLatticeIter.cpp | 26 bool SkLatticeIter::Valid(int width, int height, const SkCanvas::Lattice& lattice) { in Valid() argument 28 SkASSERT(lattice.fBounds); in Valid() 29 const SkIRect latticeBounds = *lattice.fBounds; in Valid() 34 bool zeroXDivs = lattice.fXCount <= 0 || (1 == lattice.fXCount && in Valid() 35 latticeBounds.fLeft == lattice.fXDivs[0]); in Valid() 36 bool zeroYDivs = lattice.fYCount <= 0 || (1 == lattice.fYCount && in Valid() 37 latticeBounds.fTop == lattice.fYDivs[0]); in Valid() 42 return valid_divs(lattice.fXDivs, lattice.fXCount, latticeBounds.fLeft, latticeBounds.fRight) in Valid() 43 && valid_divs(lattice.fYDivs, lattice.fYCount, latticeBounds.fTop, latticeBounds.fBottom); in Valid() 114 SkLatticeIter::SkLatticeIter(const SkCanvas::Lattice& lattice, const SkRect& dst) { in SkLatticeIter() argument [all …]
|
D | SkColorSpaceXformer.cpp | 183 SkCanvas::Lattice SkColorSpaceXformer::apply(const SkCanvas::Lattice& lattice, in apply() argument 186 this->apply(colorBuffer, lattice.fColors, count); in apply() 187 return {lattice.fXDivs, lattice.fYDivs, lattice.fRectTypes, in apply() 188 lattice.fXCount, lattice.fYCount, lattice.fBounds, colorBuffer}; in apply() 191 return lattice; in apply()
|
D | SkRecorder.cpp | 229 void SkRecorder::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 232 this->onDrawImageLattice(image.get(), lattice, dst, paint); in onDrawBitmapLattice() 250 void SkRecorder::onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 252 int flagCount = lattice.fRectTypes ? (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawImageLattice() 253 SkASSERT(lattice.fBounds); in onDrawImageLattice() 255 lattice.fXCount, this->copy(lattice.fXDivs, lattice.fXCount), in onDrawImageLattice() 256 lattice.fYCount, this->copy(lattice.fYDivs, lattice.fYCount), in onDrawImageLattice() 257 flagCount, this->copy(lattice.fRectTypes, flagCount), in onDrawImageLattice() 258 this->copy(lattice.fColors, flagCount), *lattice.fBounds, dst); in onDrawImageLattice()
|
D | SkColorSpaceXformCanvas.cpp | 146 const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 150 int count = lattice.fRectTypes && lattice.fColors ? in onDrawImageLattice() 151 (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawImageLattice() 154 fXformer->apply(lattice, colorBuffer.begin(), count), in onDrawImageLattice() 219 const Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument 222 return fTarget->drawBitmapLattice(bitmap, lattice, dst, in onDrawBitmapLattice() 227 int count = lattice.fRectTypes && lattice.fColors? in onDrawBitmapLattice() 228 (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawBitmapLattice() 231 fXformer->apply(lattice, colorBuffer.begin(), count), dst, in onDrawBitmapLattice()
|
D | SkRecordDraw.cpp | 105 SkCanvas::Lattice lattice; in draw() local 106 lattice.fXCount = r.xCount; in draw() 107 lattice.fXDivs = r.xDivs; in draw() 108 lattice.fYCount = r.yCount; in draw() 109 lattice.fYDivs = r.yDivs; in draw() 110 lattice.fRectTypes = (0 == r.flagCount) ? nullptr : r.flags; in draw() 111 lattice.fColors = (0 == r.flagCount) ? nullptr : r.colors; in draw() 112 lattice.fBounds = &r.src; in draw() 113 fCanvas->drawImageLattice(r.image.get(), lattice, r.dst, r.paint); in draw()
|
D | SkLatticeIter.h | 24 static bool Valid(int imageWidth, int imageHeight, const SkCanvas::Lattice& lattice); 26 SkLatticeIter(const SkCanvas::Lattice& lattice, const SkRect& dst);
|
D | SkLiteRecorder.cpp | 124 const SkCanvas::Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument 126 fDL->drawImageLattice(SkImage::MakeFromBitmap(bm), lattice, dst, paint); in onDrawBitmapLattice() 145 const SkCanvas::Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 147 fDL->drawImageLattice(sk_ref_sp(img), lattice, dst, paint); in onDrawImageLattice()
|
D | SkOverdrawCanvas.cpp | 193 void SkOverdrawCanvas::onDrawImageLattice(const SkImage* image, const Lattice& lattice, in onDrawImageLattice() argument 196 Lattice latticePlusBounds = lattice; in onDrawImageLattice() 236 void SkOverdrawCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 239 this->onDrawImageLattice(image.get(), lattice, dst, paint); in onDrawBitmapLattice()
|
D | SkLiteDL.cpp | 580 void SkLiteDL::drawImageLattice(sk_sp<const SkImage> image, const SkCanvas::Lattice& lattice, in drawImageLattice() argument 582 int xs = lattice.fXCount, ys = lattice.fYCount; in drawImageLattice() 583 int fs = lattice.fRectTypes ? (xs + 1) * (ys + 1) : 0; in drawImageLattice() 586 SkASSERT(lattice.fBounds); in drawImageLattice() 587 void* pod = this->push<DrawImageLattice>(bytes, std::move(image), xs, ys, fs, *lattice.fBounds, in drawImageLattice() 589 copy_v(pod, lattice.fXDivs, xs, in drawImageLattice() 590 lattice.fYDivs, ys, in drawImageLattice() 591 lattice.fColors, fs, in drawImageLattice() 592 lattice.fRectTypes, fs); in drawImageLattice()
|
/external/skia/src/core/ |
D | SkCanvasPriv.cpp | 39 bool SkCanvasPriv::ReadLattice(SkReadBuffer& buffer, SkCanvas::Lattice* lattice) { in ReadLattice() argument 40 lattice->fXCount = buffer.readInt(); in ReadLattice() 41 lattice->fXDivs = buffer.skipT<int32_t>(lattice->fXCount); in ReadLattice() 42 lattice->fYCount = buffer.readInt(); in ReadLattice() 43 lattice->fYDivs = buffer.skipT<int32_t>(lattice->fYCount); in ReadLattice() 45 lattice->fRectTypes = nullptr; in ReadLattice() 46 lattice->fColors = nullptr; in ReadLattice() 48 lattice->fRectTypes = buffer.skipT<SkCanvas::Lattice::RectType>(flagCount); in ReadLattice() 49 lattice->fColors = buffer.skipT<SkColor>(flagCount); in ReadLattice() 51 lattice->fBounds = buffer.skipT<SkIRect>(); in ReadLattice() [all …]
|
D | SkLatticeIter.cpp | 26 bool SkLatticeIter::Valid(int width, int height, const SkCanvas::Lattice& lattice) { in Valid() argument 28 SkASSERT(lattice.fBounds); in Valid() 29 const SkIRect latticeBounds = *lattice.fBounds; in Valid() 34 bool zeroXDivs = lattice.fXCount <= 0 || (1 == lattice.fXCount && in Valid() 35 latticeBounds.fLeft == lattice.fXDivs[0]); in Valid() 36 bool zeroYDivs = lattice.fYCount <= 0 || (1 == lattice.fYCount && in Valid() 37 latticeBounds.fTop == lattice.fYDivs[0]); in Valid() 42 return valid_divs(lattice.fXDivs, lattice.fXCount, latticeBounds.fLeft, latticeBounds.fRight) in Valid() 43 && valid_divs(lattice.fYDivs, lattice.fYCount, latticeBounds.fTop, latticeBounds.fBottom); in Valid() 114 SkLatticeIter::SkLatticeIter(const SkCanvas::Lattice& lattice, const SkRect& dst) { in SkLatticeIter() argument [all …]
|
D | SkColorSpaceXformer.cpp | 183 SkCanvas::Lattice SkColorSpaceXformer::apply(const SkCanvas::Lattice& lattice, in apply() argument 186 this->apply(colorBuffer, lattice.fColors, count); in apply() 187 return {lattice.fXDivs, lattice.fYDivs, lattice.fRectTypes, in apply() 188 lattice.fXCount, lattice.fYCount, lattice.fBounds, colorBuffer}; in apply() 191 return lattice; in apply()
|
D | SkRecorder.cpp | 233 void SkRecorder::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 236 this->onDrawImageLattice(image.get(), lattice, dst, paint); in onDrawBitmapLattice() 254 void SkRecorder::onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 256 int flagCount = lattice.fRectTypes ? (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawImageLattice() 257 SkASSERT(lattice.fBounds); in onDrawImageLattice() 259 lattice.fXCount, this->copy(lattice.fXDivs, lattice.fXCount), in onDrawImageLattice() 260 lattice.fYCount, this->copy(lattice.fYDivs, lattice.fYCount), in onDrawImageLattice() 261 flagCount, this->copy(lattice.fRectTypes, flagCount), in onDrawImageLattice() 262 this->copy(lattice.fColors, flagCount), *lattice.fBounds, dst); in onDrawImageLattice()
|
D | SkColorSpaceXformCanvas.cpp | 146 const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 150 int count = lattice.fRectTypes && lattice.fColors ? in onDrawImageLattice() 151 (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawImageLattice() 154 fXformer->apply(lattice, colorBuffer.begin(), count), in onDrawImageLattice() 219 const Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument 222 return fTarget->drawBitmapLattice(bitmap, lattice, dst, in onDrawBitmapLattice() 227 int count = lattice.fRectTypes && lattice.fColors? in onDrawBitmapLattice() 228 (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawBitmapLattice() 231 fXformer->apply(lattice, colorBuffer.begin(), count), dst, in onDrawBitmapLattice()
|
D | SkRecordDraw.cpp | 109 SkCanvas::Lattice lattice; in draw() local 110 lattice.fXCount = r.xCount; in draw() 111 lattice.fXDivs = r.xDivs; in draw() 112 lattice.fYCount = r.yCount; in draw() 113 lattice.fYDivs = r.yDivs; in draw() 114 lattice.fRectTypes = (0 == r.flagCount) ? nullptr : r.flags; in draw() 115 lattice.fColors = (0 == r.flagCount) ? nullptr : r.colors; in draw() 116 lattice.fBounds = &r.src; in draw() 117 fCanvas->drawImageLattice(r.image.get(), lattice, r.dst, r.paint); in draw()
|
D | SkLatticeIter.h | 24 static bool Valid(int imageWidth, int imageHeight, const SkCanvas::Lattice& lattice); 26 SkLatticeIter(const SkCanvas::Lattice& lattice, const SkRect& dst);
|
D | SkLiteRecorder.cpp | 127 const SkCanvas::Lattice& lattice, const SkRect& dst, in onDrawBitmapLattice() argument 129 fDL->drawImageLattice(SkImage::MakeFromBitmap(bm), lattice, dst, paint); in onDrawBitmapLattice() 148 const SkCanvas::Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 150 fDL->drawImageLattice(sk_ref_sp(img), lattice, dst, paint); in onDrawImageLattice()
|
D | SkOverdrawCanvas.cpp | 197 void SkOverdrawCanvas::onDrawImageLattice(const SkImage* image, const Lattice& lattice, in onDrawImageLattice() argument 200 Lattice latticePlusBounds = lattice; in onDrawImageLattice() 240 void SkOverdrawCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 243 this->onDrawImageLattice(image.get(), lattice, dst, paint); in onDrawBitmapLattice()
|
/external/skqp/gm/ |
D | lattice.cpp | 118 SkCanvas::Lattice lattice; in onDrawHelper() local 119 lattice.fXCount = 4; in onDrawHelper() 120 lattice.fXDivs = xDivs + 1; in onDrawHelper() 121 lattice.fYCount = 4; in onDrawHelper() 122 lattice.fYDivs = yDivs + 1; in onDrawHelper() 123 lattice.fRectTypes = nullptr; in onDrawHelper() 124 lattice.fColors = nullptr; in onDrawHelper() 128 lattice.fBounds = (bounds == SkIRect::MakeWH(image->width(), image->height())) ? in onDrawHelper() 136 canvas->drawBitmapLattice(bitmap, lattice, r); in onDrawHelper() 155 lattice.fXCount = 5; in onDrawHelper() [all …]
|
/external/skia/gm/ |
D | lattice.cpp | 118 SkCanvas::Lattice lattice; in onDrawHelper() local 119 lattice.fXCount = 4; in onDrawHelper() 120 lattice.fXDivs = xDivs + 1; in onDrawHelper() 121 lattice.fYCount = 4; in onDrawHelper() 122 lattice.fYDivs = yDivs + 1; in onDrawHelper() 123 lattice.fRectTypes = nullptr; in onDrawHelper() 124 lattice.fColors = nullptr; in onDrawHelper() 128 lattice.fBounds = (bounds == SkIRect::MakeWH(image->width(), image->height())) ? in onDrawHelper() 136 canvas->drawBitmapLattice(bitmap, lattice, r); in onDrawHelper() 155 lattice.fXCount = 5; in onDrawHelper() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrLatticeOp.cpp | 385 SkCanvas::Lattice lattice; in GR_DRAW_OP_TEST_DEFINE() local 416 lattice.fBounds = ⊂ in GR_DRAW_OP_TEST_DEFINE() 417 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE() 418 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE() 419 xdivs.reset(new int[lattice.fXCount]); in GR_DRAW_OP_TEST_DEFINE() 420 ydivs.reset(new int[lattice.fYCount]); in GR_DRAW_OP_TEST_DEFINE() 421 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random); in GR_DRAW_OP_TEST_DEFINE() 422 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random); in GR_DRAW_OP_TEST_DEFINE() 423 lattice.fXDivs = xdivs.get(); in GR_DRAW_OP_TEST_DEFINE() 424 lattice.fYDivs = ydivs.get(); in GR_DRAW_OP_TEST_DEFINE() [all …]
|
/external/skia/src/gpu/ops/ |
D | GrLatticeOp.cpp | 391 SkCanvas::Lattice lattice; in GR_DRAW_OP_TEST_DEFINE() local 422 lattice.fBounds = ⊂ in GR_DRAW_OP_TEST_DEFINE() 423 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE() 424 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE() 425 xdivs.reset(new int[lattice.fXCount]); in GR_DRAW_OP_TEST_DEFINE() 426 ydivs.reset(new int[lattice.fYCount]); in GR_DRAW_OP_TEST_DEFINE() 427 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random); in GR_DRAW_OP_TEST_DEFINE() 428 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random); in GR_DRAW_OP_TEST_DEFINE() 429 lattice.fXDivs = xdivs.get(); in GR_DRAW_OP_TEST_DEFINE() 430 lattice.fYDivs = ydivs.get(); in GR_DRAW_OP_TEST_DEFINE() [all …]
|
/external/skqp/samplecode/ |
D | SampleTextEffects.cpp | 100 SkMatrix lattice; in makepe() local 102 lattice.setScale(rad*2, rad*2, 0, 0); in makepe() 103 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in makepe() 104 return sk_make_sp<Dot2DPathEffect>(rad, lattice, pts); in makepe()
|
/external/skia/samplecode/ |
D | SampleTextEffects.cpp | 100 SkMatrix lattice; in makepe() local 102 lattice.setScale(rad*2, rad*2, 0, 0); in makepe() 103 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in makepe() 104 return sk_make_sp<Dot2DPathEffect>(rad, lattice, pts); in makepe()
|