/external/skia/gm/ |
addarc.cpp | 224 SkRect bounds = { x - r, y - r, x + r, y + r }; local 227 path->arcTo(bounds, start, sweep, false); 229 path->addArc(bounds, start, sweep);
|
all_bitmap_configs.cpp | 65 SkRect bounds; local 67 p->measureText(&c, 1, &bounds); 68 canvas->drawText(&c, 1, x - bounds.centerX(), y - bounds.centerY(), *p);
|
coloremoji.cpp | 141 // compute the bounds of the text 142 SkRect bounds; variable 143 paint.measureText(text, strlen(text), &bounds); 145 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; 146 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; 150 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(), 152 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(), 154 SkRect interiorClip = bounds; [all...] |
complexclip.cpp | 106 SkRect bounds = SkRect::MakeLTRB( local 112 bounds.inset(SkIntToScalar(100), SkIntToScalar(100)); 116 canvas->drawRect(bounds, boundPaint); 117 canvas->saveLayer(&bounds, nullptr);
|
flippity.cpp | 69 SkRect bounds; local 70 paint.measureText(text, strlen(text), &bounds); 71 const SkMatrix mat = SkMatrix::MakeRectToRect(bounds, SkRect::MakeWH(kLabelSize, kLabelSize),
|
highcontrastfilter.cpp | 43 SkRect bounds = SkRect::MakeLTRB(0.0f, 0.0f, 1.0f, 1.0f); local 46 canvas->saveLayer(&bounds, &xferPaint); 49 bounds = SkRect::MakeLTRB(0.1f, 0.2f, 0.9f, 0.4f); 51 canvas->drawRect(bounds, paint); 57 bounds = SkRect::MakeLTRB(0.1f, 0.8f, 0.9f, 1.0f); 59 canvas->drawRect(bounds, paint); 65 bounds = SkRect::MakeLTRB(0.1f, 0.4f, 0.9f, 0.6f); 72 canvas->drawRect(bounds, paint); 74 bounds = SkRect::MakeLTRB(0.1f, 0.6f, 0.9f, 0.8f); 79 canvas->drawRect(bounds, paint) [all...] |
image_pict.cpp | 25 static void draw_something(SkCanvas* canvas, const SkRect& bounds) { 31 canvas->drawRect(bounds, paint); 34 canvas->drawOval(bounds, paint); 58 const SkRect bounds = SkRect::MakeXYWH(100, 100, 100, 100); variable 60 draw_something(recorder.beginRecording(bounds), bounds); 250 const SkRect bounds = SkRect::MakeXYWH(100, 100, 100, 100); variable 252 draw_something(recorder.beginRecording(bounds), bounds);
|
imagefiltersbase.cpp | 166 SkIRect bounds; local 167 r.roundOut(&bounds); 170 bm.allocN32Pixels(bounds.width(), bounds.height());
|
lattice.cpp | 126 SkIRect bounds = SkIRect::MakeLTRB(padLeft, padTop, local 128 lattice.fBounds = (bounds == SkIRect::MakeWH(image->width(), image->height())) ? 129 nullptr : &bounds;
|
mixedtextblobs.cpp | 56 SkRect bounds; variable 57 paint.measureText(text, strlen(text), &bounds); 59 SkScalar yOffset = bounds.height(); 61 SkScalar corruptedAx = bounds.width(); 64 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; 65 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; 76 paint.measureText(text, strlen(text), &bounds); 77 sk_tool_utils::add_to_text_blob(&builder, text, paint, xOffset - bounds.width() * 0.25f, 78 yOffset - bounds.height() * 0.5f); 79 yOffset += bounds.height() 123 SkRect bounds = fBlob->bounds(); variable [all...] |
rrects.cpp | 117 SkRect bounds = rrect.getBounds(); variable 118 bounds.outset(2.f, 2.f); 122 SkMatrix::I(), bounds, variable
|
savelayer.cpp | 152 const SkRect* bounds; member in struct:__anon33859 218 rec.fBounds = cfg.bounds;
|
texteffects.cpp | 42 SkScalar bounds[2] = { uPos - uWidth / 2, uPos + uWidth / 2 }; local 43 int count = paint.getTextIntercepts(test, len, x, y, bounds, nullptr); 47 paint.getTextIntercepts(test, len, x, y, bounds, intersections->begin()); 86 SkScalar bounds[2] = { uPos - uWidth / 2, uPos + uWidth / 2 }; local 87 int count = paint.getPosTextIntercepts(test, len, pos, bounds, nullptr); 91 paint.getPosTextIntercepts(test, len, pos, bounds, intersections->begin()); 224 const SkScalar bounds[2] = { uPos - uWidth / 2, uPos + uWidth / 2 }; local 225 const int interceptCount = paint.getTextBlobIntercepts(blob.get(), bounds, nullptr); 230 paint.getTextBlobIntercepts(blob.get(), bounds, intercepts.begin()); 232 const SkScalar start = blob->bounds().left() [all...] |
/external/skia/include/core/ |
SkPixmap.h | 110 @param area bounds to intersect with SkPixmap 188 SkIRect bounds() const { return SkIRect::MakeWH(this->width(), this->height()); } function in class:SkPixmap 235 Input is not validated: out of bounds values of x or y trigger an assert() if 252 Input is not validated: out of bounds values of x or y trigger an assert() if 335 Input is not validated: out of bounds values of x or y trigger an assert() if 353 Input is not validated: out of bounds values of x or y trigger an assert() if 371 Input is not validated: out of bounds values of x or y trigger an assert() if 389 Input is not validated: out of bounds values of x or y trigger an assert() if 407 Input is not validated: out of bounds values of x or y trigger an assert() if 433 Input is not validated: out of bounds values of x or y trigger an assert() i [all...] |
SkTextBlob.h | 35 const SkRect& bounds() const { return fBounds; } function in class:final 86 explicit SkTextBlob(const SkRect& bounds); variable 180 * @param bounds Optional run bounding box. If known in advance (!= NULL), it will 181 * be used when computing the blob bounds, to avoid re-measuring. 192 const SkRect* bounds = nullptr); 194 const SkRect* bounds = nullptr) { 195 return this->allocRunText(font, count, x, y, 0, SkString(), bounds); 209 * @param bounds Optional run bounding box. If known in advance (!= NULL), it will 210 * be used when computing the blob bounds, to avoid re-measuring. 217 const SkRect* bounds = nullptr) [all...] |
SkVertices.h | 84 const SkRect& bounds() const { return fBounds; } function in class:SkVertices
|
/external/skia/samplecode/ |
SampleDither.cpp | 43 SkRect bounds = r; local 61 path.arcTo(bounds, 0, sweep, false);
|
/external/skia/src/android/ |
SkAnimatedImage.cpp | 72 && fCropRect == fDecodeInfo.bounds()) 310 SkRect bounds = this->getBounds(); local 312 canvas->saveLayer(&bounds, nullptr);
|
/external/skia/src/atlastext/ |
SkAtlasTextTarget.cpp | 137 auto bounds = SkIRect::MakeWH(fWidth, fHeight); local 142 (const char*)glyphs, byteLength, pos, 2, {0, 0}, bounds); 159 if (GrRectsOverlap(op->bounds(), other->bounds())) {
|
/external/skia/src/core/ |
SkGpuBlurUtils.cpp | 80 int bounds[2]) { 85 std::move(proxy), direction, radius, sigma, mode, bounds)); 130 int bounds[2] = { 0, 0 }; local 135 GrTextureDomain::kIgnore_Mode, bounds); 142 bounds[0] = srcBounds.left(); 143 bounds[1] = srcBounds.right(); 153 bounds[0] = srcBounds.top(); 154 bounds[1] = srcBounds.bottom(); 173 // Blur radius covers srcBounds; use bounds over entire draw 175 std::move(proxy), direction, radius, sigma, mode, bounds); [all...] |
/external/skia/src/effects/ |
SkDashPathEffect.cpp | 73 SkRect bounds = *cullRect; local 74 outset_for_stroke(&bounds, rec); 85 inv.mapRect(&bounds); 97 if (maxX <= bounds.fLeft || minX >= bounds.fRight) { 102 // right of the bounds (keeping our new line "in phase" with the dash, 105 if (minX < bounds.fLeft) { 106 minX = bounds.fLeft - SkScalarMod(bounds.fLeft - minX, intervalLength); 108 if (maxX > bounds.fRight) [all...] |
SkMagnifierImageFilter.cpp | 88 SkIRect bounds; local 89 if (!this->applyCropRect(ctx, inputBounds, &bounds)) { 95 SkScalar invXZoom = fSrcRect.width() / bounds.width(); 96 SkScalar invYZoom = fSrcRect.height() / bounds.height(); 106 offset->fX = bounds.left(); 107 offset->fY = bounds.top(); 108 bounds.offset(-inputOffset); 112 bounds, 116 bounds.width() * invInset, 117 bounds.height() * invInset) [all...] |
/external/skia/src/gpu/ |
GrGpu.cpp | 385 SkIRect bounds = SkIRect::MakeWH(surface->width(), surface->height()); local 386 if (!bounds.contains(subRect)) { 425 SkIRect bounds = SkIRect::MakeWH(texture->width(), texture->height()); local 426 if (!bounds.contains(subRect)) { 448 void GrGpu::didWriteToSurface(GrSurface* surface, GrSurfaceOrigin origin, const SkIRect* bounds, 451 // Mark any MIP chain and resolve buffer as dirty if and only if there is a non-empty bounds. 452 if (nullptr == bounds || !bounds->isEmpty()) { 455 if (kBottomLeft_GrSurfaceOrigin == origin && bounds) { 456 flippedBounds = {bounds->fLeft, surface->height() - bounds->fBottom [all...] |
GrRenderTargetOpList.cpp | 53 const SkRect& bounds = fRecordedOps[i].fOp->bounds(); local 54 SkDebugf("ClippedBounds: [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n", bounds.fLeft, 55 bounds.fTop, bounds.fRight, bounds.fBottom); 339 op->bounds().fLeft, op->bounds().fTop, 340 op->bounds().fRight, op->bounds().fBottom) [all...] |
/external/skia/src/gpu/effects/ |
GrMagnifierEffect.cpp | 26 auto bounds = _outer.bounds(); variable 27 (void)bounds; variable 89 auto bounds = _outer.bounds(); variable 90 (void)bounds; variable 112 y = 1.0f - (srcRect.height() / bounds.height()) - y; 119 SkScalar y = bounds.y() * invH; 121 y = 1.0f - bounds.height() * invH; 125 bounds.x() * invW 182 SkIRect bounds = SkIRect::MakeWH(SkIntToScalar(kMaxWidth), SkIntToScalar(kMaxHeight)); local [all...] |