/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()
|
/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 | SkRecorder.cpp | 227 void SkRecorder::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 230 this->onDrawImageLattice(image.get(), lattice, dst, paint); in onDrawBitmapLattice() 248 void SkRecorder::onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, in onDrawImageLattice() argument 250 int flagCount = lattice.fRectTypes ? (lattice.fXCount + 1) * (lattice.fYCount + 1) : 0; in onDrawImageLattice() 251 SkASSERT(lattice.fBounds); in onDrawImageLattice() 253 lattice.fXCount, this->copy(lattice.fXDivs, lattice.fXCount), in onDrawImageLattice() 254 lattice.fYCount, this->copy(lattice.fYDivs, lattice.fYCount), in onDrawImageLattice() 255 flagCount, this->copy(lattice.fRectTypes, flagCount), in onDrawImageLattice() 256 this->copy(lattice.fColors, flagCount), *lattice.fBounds, dst); in onDrawImageLattice()
|
D | SkRecordDraw.cpp | 112 SkCanvas::Lattice lattice; in draw() local 113 lattice.fXCount = r.xCount; in draw() 114 lattice.fXDivs = r.xDivs; in draw() 115 lattice.fYCount = r.yCount; in draw() 116 lattice.fYDivs = r.yDivs; in draw() 117 lattice.fRectTypes = (0 == r.flagCount) ? nullptr : r.flags; in draw() 118 lattice.fColors = (0 == r.flagCount) ? nullptr : r.colors; in draw() 119 lattice.fBounds = &r.src; in draw() 120 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 | SkOverdrawCanvas.cpp | 175 void SkOverdrawCanvas::onDrawImageLattice(const SkImage* image, const Lattice& lattice, in onDrawImageLattice() argument 178 Lattice latticePlusBounds = lattice; in onDrawImageLattice() 211 void SkOverdrawCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 214 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 | 131 SkCanvas::Lattice lattice; in onDrawHelper() local 132 lattice.fXCount = 4; in onDrawHelper() 133 lattice.fXDivs = xDivs + 1; in onDrawHelper() 134 lattice.fYCount = 4; in onDrawHelper() 135 lattice.fYDivs = yDivs + 1; in onDrawHelper() 136 lattice.fRectTypes = nullptr; in onDrawHelper() 137 lattice.fColors = nullptr; in onDrawHelper() 141 lattice.fBounds = (bounds == SkIRect::MakeWH(image->width(), image->height())) ? in onDrawHelper() 149 canvas->drawBitmapLattice(bitmap, lattice, r); in onDrawHelper() 168 lattice.fXCount = 5; in onDrawHelper() [all …]
|
/external/skia/docs/examples/ |
D | skpaint_line_2d_path_effect.cpp | 7 SkMatrix lattice; in draw() local 8 lattice.setScale(8.0f, 8.0f); in draw() 9 lattice.preRotate(30.0f); in draw() 10 paint.setPathEffect(SkLine2DPathEffect::Make(0.0f, lattice)); in draw()
|
D | Canvas_drawBitmapLattice.cpp | 30 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], SK_ARRAY_COUNT(xDivs), in draw() local 33 canvas->drawBitmapLattice(bitmap, lattice, SkRect::MakeWH(dest, 110 - dest), nullptr); in draw()
|
/external/skia/src/gpu/ops/ |
D | GrLatticeOp.cpp | 396 SkCanvas::Lattice lattice; in GR_DRAW_OP_TEST_DEFINE() local 436 lattice.fBounds = ⊂ in GR_DRAW_OP_TEST_DEFINE() 437 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE() 438 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE() 439 xdivs.reset(new int[lattice.fXCount]); in GR_DRAW_OP_TEST_DEFINE() 440 ydivs.reset(new int[lattice.fYCount]); in GR_DRAW_OP_TEST_DEFINE() 441 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random); in GR_DRAW_OP_TEST_DEFINE() 442 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random); in GR_DRAW_OP_TEST_DEFINE() 443 lattice.fXDivs = xdivs.get(); in GR_DRAW_OP_TEST_DEFINE() 444 lattice.fYDivs = ydivs.get(); in GR_DRAW_OP_TEST_DEFINE() [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/samplecode/ |
D | SampleTextEffects.cpp | 99 SkMatrix lattice; in makepe() local 101 lattice.setScale(rad*2, rad*2, 0, 0); in makepe() 102 lattice.postSkew(SK_Scalar1/3, 0, 0, 0); in makepe() 103 return sk_make_sp<Dot2DPathEffect>(rad, lattice, pts); in makepe()
|
/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/src/utils/ |
D | SkPaintFilterCanvas.cpp | 142 void SkPaintFilterCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 146 this->SkNWayCanvas::onDrawBitmapLattice(bitmap, lattice, dst, &apf.paint()); in onDrawBitmapLattice() 175 void SkPaintFilterCanvas::onDrawImageLattice(const SkImage* image, const Lattice& lattice, in onDrawImageLattice() argument 179 this->SkNWayCanvas::onDrawImageLattice(image, lattice, dst, &apf.paint()); in onDrawImageLattice()
|
/external/skqp/src/utils/ |
D | SkPaintFilterCanvas.cpp | 146 void SkPaintFilterCanvas::onDrawBitmapLattice(const SkBitmap& bitmap, const Lattice& lattice, in onDrawBitmapLattice() argument 150 this->SkNWayCanvas::onDrawBitmapLattice(bitmap, lattice, dst, apf.paint()); in onDrawBitmapLattice() 179 void SkPaintFilterCanvas::onDrawImageLattice(const SkImage* image, const Lattice& lattice, in onDrawImageLattice() argument 183 this->SkNWayCanvas::onDrawImageLattice(image, lattice, dst, apf.paint()); in onDrawImageLattice()
|