/external/fonttools/Lib/fontTools/pens/ |
D | boundsPen.py | 25 self.bounds = None 28 bounds = self.bounds 29 if bounds: 30 self.bounds = updateBounds(bounds, pt) 33 self.bounds = (x, y, x, y) 36 self.bounds = updateBounds(self.bounds, pt) 39 bounds = self.bounds 40 bounds = updateBounds(bounds, bcp1) 41 bounds = updateBounds(bounds, bcp2) 42 bounds = updateBounds(bounds, pt) [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | vg_context.h | 195 const VGfloat *bounds, in vg_shift_rectx() argument 200 if (bounds) { in vg_shift_rectx() 201 coords[2] = MIN2(coords[2], bounds[2]); in vg_shift_rectx() 203 if ((coords[0] + coords[2]) > (bounds[0] + bounds[2])) { in vg_shift_rectx() 204 coords[2] = (bounds[0] + bounds[2]) - coords[0]; in vg_shift_rectx() 210 const VGfloat *bounds, in vg_shift_recty() argument 215 if (bounds) { in vg_shift_recty() 216 coords[3] = MIN2(coords[3], bounds[3]); in vg_shift_recty() 217 if ((coords[1] + coords[3]) > (bounds[1] + bounds[3])) { in vg_shift_recty() 218 coords[3] = (bounds[1] + bounds[3]) - coords[1]; in vg_shift_recty() [all …]
|
/external/skia/src/effects/ |
D | SkMatrixConvolutionImageFilter.cpp | 122 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 129 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 130 x = SkPin32(x, bounds.fLeft, bounds.fRight - 1); in fetch() 131 y = SkPin32(y, bounds.fTop, bounds.fBottom - 1); in fetch() 138 static inline SkPMColor fetch(const SkBitmap& src, int x, int y, const SkIRect& bounds) { in fetch() argument 139 x = (x - bounds.left()) % bounds.width() + bounds.left(); in fetch() 140 y = (y - bounds.top()) % bounds.height() + bounds.top(); in fetch() 141 if (x < bounds.left()) { in fetch() 142 x += bounds.width(); in fetch() 144 if (y < bounds.top()) { in fetch() [all …]
|
D | SkOffsetImageFilter.cpp | 44 SkIRect bounds; local 45 if (!this->applyCropRect(ctx, src, srcOffset, &bounds)) { 49 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height())); 56 canvas.translate(SkIntToScalar(srcOffset.fX - bounds.fLeft), 57 SkIntToScalar(srcOffset.fY - bounds.fTop)); 62 offset->fX = bounds.fLeft; 63 offset->fY = bounds.fTop; 84 SkIRect bounds = src; local 85 bounds.offset(-SkScalarCeilToInt(vec.fX), -SkScalarCeilToInt(vec.fY)); 86 bounds.join(src); [all …]
|
D | SkDisplacementMapEffect.cpp | 57 const SkIRect& bounds) in computeDisplacement() argument 68 for (int y = bounds.top(); y < bounds.bottom(); ++y) { in computeDisplacement() 69 const SkPMColor* displPtr = displ->getAddr32(bounds.left() + offset.fX, in computeDisplacement() 71 for (int x = bounds.left(); x < bounds.right(); ++x, ++displPtr) { in computeDisplacement() 90 const SkIRect& bounds) in computeDisplacement() argument 95 scale, dst, displ, offset, src, bounds); in computeDisplacement() 99 scale, dst, displ, offset, src, bounds); in computeDisplacement() 103 scale, dst, displ, offset, src, bounds); in computeDisplacement() 107 scale, dst, displ, offset, src, bounds); in computeDisplacement() 120 const SkIRect& bounds) in computeDisplacement() argument [all …]
|
D | SkRectShaderImageFilter.cpp | 56 SkIRect bounds; in onFilterImage() local 57 if (!this->applyCropRect(ctx, source, SkIPoint::Make(0, 0), &bounds)) { in onFilterImage() 61 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), in onFilterImage() 62 bounds.height())); in onFilterImage() 70 matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); in onFilterImage() 73 SkRect rect = SkRect::MakeWH(SkIntToScalar(bounds.width()), SkIntToScalar(bounds.height())); in onFilterImage() 77 offset->fX = bounds.fLeft; in onFilterImage() 78 offset->fY = bounds.fTop; in onFilterImage()
|
D | SkDropShadowImageFilter.cpp | 65 SkIRect bounds; in onFilterImage() local 66 if (!this->applyCropRect(ctx, src, srcOffset, &bounds)) { in onFilterImage() 70 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height())); in onFilterImage() 89 canvas.translate(SkIntToScalar(srcOffset.fX - bounds.fLeft), in onFilterImage() 90 SkIntToScalar(srcOffset.fY - bounds.fTop)); in onFilterImage() 96 offset->fX = bounds.fLeft; in onFilterImage() 97 offset->fY = bounds.fTop; in onFilterImage() 121 SkIRect bounds = src; in onFilterBounds() local 124 bounds.offset(-SkScalarCeilToInt(offsetVec.x()), in onFilterBounds() 128 bounds.outset(SkScalarCeilToInt(SkScalarMul(sigma.x(), SkIntToScalar(3))), in onFilterBounds() [all …]
|
D | SkMorphologyImageFilter.cpp | 117 …ogyImageFilter::Proc procX, const SkBitmap& src, SkBitmap* dst, int radiusX, const SkIRect& bounds) in callProcX() argument 119 procX(src.getAddr32(bounds.left(), bounds.top()), dst->getAddr32(0, 0), in callProcX() 120 radiusX, bounds.width(), bounds.height(), in callProcX() 124 …ogyImageFilter::Proc procY, const SkBitmap& src, SkBitmap* dst, int radiusY, const SkIRect& bounds) in callProcY() argument 126 procY(src.getAddr32(bounds.left(), bounds.top()), dst->getAddr32(0, 0), in callProcY() 127 radiusY, bounds.height(), bounds.width(), in callProcY() 148 SkIRect bounds; in filterImageGeneric() local 149 if (!this->applyCropRect(ctx, proxy, src, &srcOffset, &bounds, &src)) { in filterImageGeneric() 158 if (!dst->tryAllocPixels(src.info().makeWH(bounds.width(), bounds.height()))) { in filterImageGeneric() 172 SkIRect srcBounds = bounds; in filterImageGeneric() [all …]
|
D | SkMagnifierImageFilter.cpp | 28 const SkRect& bounds, in Create() argument 36 bounds, in Create() 53 const SkRect& bounds() const { return fBounds; } // Bounds of source image. in bounds() function in GrMagnifierEffect 68 const SkRect& bounds, in GrMagnifierEffect() argument 76 , fBounds(bounds) in GrMagnifierEffect() 161 const char* bounds = builder->getUniformCStr(fBoundsVar); in emitCode() local 162 fsBuilder->codeAppendf("\t\tvec2 delta = (coord - %s.xy) * %s.zw;\n", bounds, bounds); in emitCode() 194 pdman.set4f(fBoundsVar, zoom.bounds().x(), zoom.bounds().y(), in setData() 195 zoom.bounds().width(), zoom.bounds().height()); in setData() 281 const SkMatrix&, const SkIRect&bounds) const { in asFragmentProcessor() [all …]
|
/external/skia/gm/ |
D | mixedtextblobs.cpp | 61 SkRect bounds; in onOnceBeforeDraw() local 62 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw() 64 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw() 66 SkScalar corruptedAx = bounds.width(); in onOnceBeforeDraw() 69 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; in onOnceBeforeDraw() 70 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; in onOnceBeforeDraw() 80 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw() 81 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw() 82 yOffset - bounds.height() * 0.5f); in onOnceBeforeDraw() 83 yOffset += bounds.height(); in onOnceBeforeDraw() [all …]
|
D | strokes.cpp | 148 static void make0(SkPath* path, const SkRect& bounds, SkString* title) { in make0() argument 149 path->addRect(bounds, SkPath::kCW_Direction); in make0() 150 path->addRect(inset(bounds), SkPath::kCW_Direction); in make0() 154 static void make1(SkPath* path, const SkRect& bounds, SkString* title) { in make1() argument 155 path->addRect(bounds, SkPath::kCW_Direction); in make1() 156 path->addRect(inset(bounds), SkPath::kCCW_Direction); in make1() 160 static void make2(SkPath* path, const SkRect& bounds, SkString* title) { in make2() argument 161 path->addOval(bounds, SkPath::kCW_Direction); in make2() 162 path->addOval(inset(bounds), SkPath::kCW_Direction); in make2() 166 static void make3(SkPath* path, const SkRect& bounds, SkString* title) { in make3() argument [all …]
|
D | textblobcolortrans.cpp | 36 SkRect bounds; in onOnceBeforeDraw() local 37 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw() 39 SkScalar yOffset = bounds.height(); in onOnceBeforeDraw() 47 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw() 69 SkRect bounds = fBlob->bounds(); in onDraw() local 78 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; in onDraw() 79 y += SkScalarFloorToInt(bounds.height())) { in onDraw()
|
/external/skia/tests/ |
D | PathOpsBoundsTest.cpp | 49 SkPathOpsBounds bounds; in DEF_TEST() local 50 bounds.setEmpty(); in DEF_TEST() 51 bounds.add(1, 2, 3, 4); in DEF_TEST() 54 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() 55 bounds.setEmpty(); in DEF_TEST() 58 bounds.add(ordinal); in DEF_TEST() 59 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() 60 bounds.setEmpty(); in DEF_TEST() 62 bounds.add(botRight); in DEF_TEST() 63 REPORTER_ASSERT(reporter, bounds == expected); in DEF_TEST() [all …]
|
/external/llvm/test/Transforms/IRCE/ |
D | with-parent-loops.ll | 8 …ner_loop: constrained Loop at depth 1 containing: %loop<header><exiting>,%in.bounds<latch><exiting> 15 loop: ; preds = %in.bounds, %entry 16 %idx = phi i32 [ 0, %entry ], [ %idx.next, %in.bounds ] 19 br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1 21 in.bounds: ; preds = %loop 27 out.of.bounds: ; preds = %loop 30 exit: ; preds = %in.bounds, %entry 36 …rent: constrained Loop at depth 2 containing: %loop.i<header><exiting>,%in.bounds.i<latch><exiting> 49 loop.i: ; preds = %in.bounds.i, %loop 50 %idx.i = phi i32 [ 0, %loop ], [ %idx.next.i, %in.bounds.i ] [all …]
|
D | multiple-access-no-preloop.ll | 13 %idx = phi i32 [ 0, %entry ] , [ %idx.next, %in.bounds.b ] 16 br i1 %abc.a, label %in.bounds.a, label %out.of.bounds, !prof !1 18 in.bounds.a: 22 br i1 %abc.b, label %in.bounds.b, label %out.of.bounds, !prof !1 24 in.bounds.b: 30 out.of.bounds: 52 ; CHECK: br i1 true, label %in.bounds.a, label %out.of.bounds 54 ; CHECK-LABEL: in.bounds.a: 55 ; CHECK: br i1 true, label %in.bounds.b, label %out.of.bounds 57 ; CHECK-LABEL: in.bounds.b: [all …]
|
D | single-access-no-preloop.ll | 10 %idx = phi i32 [ 0, %entry ] , [ %idx.next, %in.bounds ] 13 br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1 15 in.bounds: 21 out.of.bounds: 31 ; CHECK: br i1 true, label %in.bounds, label %out.of.bounds 46 ; CHECK-NEXT: %idx.postloop = phi i32 [ %idx.next.postloop, %in.bounds.postloop ], [ %idx.copy, %po… 49 ; CHECK-NEXT: br i1 %abc.postloop, label %in.bounds.postloop, label %out.of.bounds 51 ; CHECK-LABEL: in.bounds.postloop: 65 %idx = phi i32 [ 0, %entry ] , [ %idx.next, %in.bounds ] 69 br i1 %abc, label %in.bounds, label %out.of.bounds, !prof !1 [all …]
|
/external/skia/src/core/ |
D | SkImageFilter.cpp | 217 SkRect bounds; in computeFastBounds() local 218 input->computeFastBounds(src, &bounds); in computeFastBounds() 219 dst->join(bounds); in computeFastBounds() 246 SkIRect bounds; in filterImageGPU() local 247 if (!this->applyCropRect(ctx, proxy, input, &srcOffset, &bounds, &input)) { in filterImageGPU() 250 SkRect srcRect = SkRect::Make(bounds); in filterImageGPU() 256 desc.fWidth = bounds.width(); in filterImageGPU() 257 desc.fHeight = bounds.height(); in filterImageGPU() 270 offset->fX = bounds.left(); in filterImageGPU() 271 offset->fY = bounds.top(); in filterImageGPU() [all …]
|
D | SkRecordDraw.cpp | 81 DRAW(SaveLayer, saveLayer(r.bounds, r.paint, r.flags)); 228 Bounds bounds; // Bounds of everything in the block. member 275 if (op.bounds) { in updateClipBounds() 277 fCurrentClipBounds = this->adjustAndMap(*op.bounds, op.paint); in updateClipBounds() 298 fBounds[fCurrentOp] = this->bounds(op); in trackBounds() 308 sb.bounds = in pushSaveBlock() 362 this->popControl(sb.bounds); in popSaveBlock() 366 this->updateSaveBounds(sb.bounds); in popSaveBlock() 369 return sb.bounds; in popSaveBlock() 379 void popControl(const Bounds& bounds) { in popControl() argument [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowDrawable.java | 30 private Rect bounds = new Rect(0, 0, 0, 0); field in ShadowDrawable 76 return bounds; in getBounds() 81 this.bounds = rect; in setBounds() 86 bounds = new Rect(left, top, right, bottom); in setBounds() 91 Rect bounds = new Rect(); in copyBounds() local 92 copyBounds(bounds); in copyBounds() 93 return bounds; in copyBounds() 97 public void copyBounds(Rect bounds) { in copyBounds() argument 98 bounds.set(getBounds()); in copyBounds() 162 if (bounds != null ? !bounds.equals(that.bounds) : that.bounds != null) return false; in equals() [all …]
|
/external/skia/src/utils/ |
D | SkNinePatch.cpp | 76 const SkRect& bounds, const int32_t xDivs[], int numXDivs, in fillRow() argument 78 SkScalar vx = bounds.fLeft; in fillRow() 92 verts->set(bounds.fRight, vy); verts++; in fillRow() 103 void SkNinePatch::DrawMesh(SkCanvas* canvas, const SkRect& bounds, in DrawMesh() argument 108 if (bounds.isEmpty() || bitmap.width() == 0 || bitmap.height() == 0) { in DrawMesh() 139 canvas->drawBitmapRect(bitmap, NULL, bounds, paint); in DrawMesh() 161 if (bounds.width() >= fixed) in DrawMesh() 162 stretchX = (bounds.width() - fixed) / stretchSize; in DrawMesh() 164 stretchX = -bounds.width() / fixed; in DrawMesh() 173 if (bounds.height() >= fixed) in DrawMesh() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrConvolutionEffect.cpp | 92 const char* bounds = builder->getUniformCStr(fBoundsUni); in emitCode() local 95 component, bounds, component, bounds); in emitCode() 126 const float* bounds = conv.bounds(); in setData() local 129 pdman.set2f(fBoundsUni, 1.0f - bounds[1], 1.0f - bounds[0]); in setData() 131 pdman.set2f(fBoundsUni, bounds[0], bounds[1]); in setData() 156 float bounds[2]) in GrConvolutionEffect() 165 memcpy(fBounds, bounds, sizeof(fBounds)); in GrConvolutionEffect() 173 float bounds[2]) in GrConvolutionEffect() 193 memcpy(fBounds, bounds, sizeof(fBounds)); in GrConvolutionEffect() 233 float bounds[2]; in TestCreate() local [all …]
|
/external/skia/src/animator/ |
D | SkDrawSaveLayer.cpp | 19 SK_MEMBER(bounds, Rect), 27 SkSaveLayer::SkSaveLayer() : paint(NULL), bounds(NULL) { in SkSaveLayer() 35 if (!bounds) { in draw() 44 maker.fCanvas->saveLayer(&bounds->fRect, &realPaint); in draw() 47 maker.fCanvas->saveLayer(&bounds->fRect, save); in draw() 64 if (bounds) in dump() 65 SkDebugf("bounds=\"%s\" ", bounds->id); in dump() 73 if (!bounds) in onEndElement()
|
/external/skia/src/pathops/ |
D | SkIntersectionHelper.h | 32 return bounds().fBottom; in bottom() 35 const SkPathOpsBounds& bounds() const { in bounds() function 36 return fSegment->bounds(); in bounds() 48 return bounds().fLeft; in left() 56 return bounds().fRight; in right() 83 return bounds().fTop; in top() 91 return bounds().fLeft; in x() 99 return bounds().fTop; in y()
|
/external/libvterm/src/ |
D | rect.h | 18 static void rect_clip(VTermRect *dst, VTermRect *bounds) in rect_clip() argument 20 if(dst->start_row < bounds->start_row) dst->start_row = bounds->start_row; in rect_clip() 21 if(dst->start_col < bounds->start_col) dst->start_col = bounds->start_col; in rect_clip() 22 if(dst->end_row > bounds->end_row) dst->end_row = bounds->end_row; in rect_clip() 23 if(dst->end_col > bounds->end_col) dst->end_col = bounds->end_col; in rect_clip()
|
/external/llvm/test/Analysis/ScalarEvolution/ |
D | infer-via-ranges.ll | 12 %idx = phi i32 [ %start, %entry ] , [ %idx.dec, %in.bounds ] 15 ; CHECK: br i1 true, label %in.bounds, label %out.of.bounds 16 br i1 %abc, label %in.bounds, label %out.of.bounds 18 in.bounds: 19 ; CHECK-LABEL: in.bounds: 25 out.of.bounds:
|