/external/skia/platform_tools/nacl/src/ |
H A D | nacl_sample.cpp | 103 SkRect rect = SkRect::MakeXYWH(10, 10, 80, 80); local 107 canvas.drawRect(rect, rect_paint); 195 void SkOSWindow::onHandleInval(const SkIRect& rect) argument
|
/external/skia/samplecode/ |
H A D | SampleAARectModes.cpp | 56 SkRect rect = SkRect::MakeXYWH(W / 4 + offset, local 59 canvas->drawRect(rect, paint);
|
H A D | SampleAARects.cpp | 74 SkRect rect; local 87 rect = SkRect::MakeLTRB(0.f, 91 canvas->drawRect(rect, paints[p]); 94 rect = SkRect::MakeLTRB(0.5f, 98 canvas->drawRect(rect, paints[p]); 101 rect = SkRect::MakeLTRB(0.5f, 105 canvas->drawRect(rect, paints[p]); 108 rect = SkRect::MakeLTRB(0.75f, 112 canvas->drawRect(rect, paints[p]); 117 rect [all...] |
H A D | SampleAll.cpp | 341 SkRect rect = {0, 0, SkIntToScalar(40), SkIntToScalar(40) }; local 427 canvas->drawRect(rect, paint); 433 canvas->drawOval(rect, paint); 436 canvas->drawOval(rect, paint);
|
H A D | SampleApp.cpp | 2310 static void rand_rect(SkIRect* rect, SkRandom& rand) { argument 2313 rect->set(rand.nextU() >> shift, rand.nextU() >> shift, 2315 rect->sort(); 2324 static void test_rects(const SkIRect rect[], int count) { argument 2328 rgn0.op(rect[i], SkRegion::kUnion_Op); 2329 // dumpRect(rect[i]); 2331 rgn1.setRects(rect, count); 2336 dumpRect(rect[i]); 2379 SkIRect rect[N]; local 2381 rand_rect(&rect[ [all...] |
H A D | SampleArc.cpp | 64 static void draw_label(SkCanvas* canvas, const SkRect& rect, argument 76 canvas->drawText(str.c_str(), str.size(), rect.centerX(), 77 rect.fBottom + paint.getTextSize() * 5/4, paint);
|
H A D | SampleClock.cpp | 52 SkRect rect; variable 54 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); 57 rrect.setRectRadii(rect, radii); 78 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); 83 rrect.setRectRadii(rect, radii); 118 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); 123 rrect.setRectRadii(rect, radii); 139 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); 144 rrect.setRectRadii(rect, radii); 161 rect [all...] |
H A D | SampleDegenerateTwoPtRadials.cpp | 14 static void draw_gradient2(SkCanvas* canvas, const SkRect& rect, SkScalar delta) { argument 18 SkScalar l = rect.fLeft; 19 SkScalar t = rect.fTop; 20 SkScalar w = rect.width(); 21 SkScalar h = rect.height(); 35 canvas->drawRect(rect, paint);
|
H A D | SampleDraw.cpp | 20 SkRect rect = SkRect::MakeXYWH(25, 25, 50, 50); local 21 c.drawRect(rect, paint); 23 c.clipRect(rect); 26 rect = SkRect::MakeXYWH(50, 10, 40, 80); 27 c.clipRect(rect, SkRegion::kUnion_Op); 29 rect = SkRect::MakeXYWH(50, 0, 50, 100); 32 // c.drawRect(rect, paint); 34 c.drawRect(rect, paint);
|
H A D | SampleEmptyPath.cpp | 78 SkRect rect = SkRect::MakeWH(125*SK_Scalar1, 100*SK_Scalar1); local 87 canvas->translate(0, rect.height() + 50 * SK_Scalar1); 90 canvas->translate(rect.width() + 100 * SK_Scalar1, 0); 97 this->drawEmpty(canvas, color, rect, 105 canvas->drawRect(rect, rectPaint); 115 0, rect.height() + 15 * SK_Scalar1,
|
H A D | SampleManyRects.cpp | 17 * Animated sample used to develop batched rect implementation in GrInOrderDrawBuffer. 42 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), local 50 // that the rect is inside the clip so the clip changes interrupt batching. 54 SkIntToScalar(x) + SkScalarHalf(rect.fRight), 55 SkIntToScalar(y) + SkScalarHalf(rect.fBottom)); 58 SkRect clipRect = rect; 59 // This clip will always contain the entire rect. It's here to give the GPU batching 65 canvas->drawRect(rect, paint);
|
H A D | SampleTextOnPath.cpp | 20 SkRect rect; local 25 rect.set(0.0f, 0.21f, 28 path.addArc(rect, SkIntToScalar(280), SkIntToScalar(350));
|
/external/skia/src/animator/ |
H A D | SkBoundable.cpp | 25 void SkBoundable::getBounds(SkRect* rect) { argument 26 SkASSERT(rect); 28 INHERITED::getBounds(rect); 31 rect->fLeft = SkIntToScalar(fBounds.fLeft); 32 rect->fTop = SkIntToScalar(fBounds.fTop); 33 rect->fRight = SkIntToScalar(fBounds.fRight); 34 rect->fBottom = SkIntToScalar(fBounds.fBottom);
|
H A D | SkDisplayBounds.cpp | 35 SkIRect& rect = maker.fDisplayList.fInvalBounds; local 37 if (rect.isEmpty()) 38 rect = fBounds; 40 rect.join(fBounds);
|
H A D | SkDisplayable.cpp | 418 void SkDisplayable::getBounds(SkRect* rect) { argument 419 SkASSERT(rect); 420 rect->fLeft = rect->fTop = SK_ScalarMax; 421 rect->fRight= rect->fBottom = -SK_ScalarMax;
|
H A D | SkDrawClip.h | 25 SkDrawRect* rect; member in class:SkDrawClip
|
/external/skia/src/core/ |
H A D | SkAAClip.cpp | 40 static inline bool x_in_rect(int x, const SkIRect& rect) { argument 41 return (unsigned)(x - rect.fLeft) < (unsigned)rect.width(); 45 static inline bool y_in_rect(int y, const SkIRect& rect) { argument 46 return (unsigned)(y - rect.fTop) < (unsigned)rect.height(); 727 clip.op(iter.rect(), SkRegion::kUnion_Op); 748 const SkIRect& r = iter.rect(); 961 // we assum the rect must be all we'll see for these scanlines 994 // we assume the rect mus [all...] |
H A D | SkAnnotation.cpp | 62 void SkAnnotateRectWithURL(SkCanvas* canvas, const SkRect& rect, SkData* value) { argument 68 canvas->drawRect(rect, paint); 80 void SkAnnotateLinkToDestination(SkCanvas* canvas, const SkRect& rect, SkData* name) { argument 86 canvas->drawRect(rect, paint);
|
H A D | SkBBoxHierarchyRecord.cpp | 77 void SkBBoxHierarchyRecord::onClipRect(const SkRect& rect, argument 81 this->INHERITED::onClipRect(rect, op, edgeStyle);
|
H A D | SkBBoxRecord.cpp | 11 void SkBBoxRecord::drawOval(const SkRect& rect, const SkPaint& paint) { argument 12 if (this->transformBounds(rect, &paint)) { 13 INHERITED::drawOval(rect, paint); 18 if (this->transformBounds(rrect.rect(), &paint)) { 23 void SkBBoxRecord::drawRect(const SkRect& rect, const SkPaint& paint) { argument 24 if (this->transformBounds(rect, &paint)) { 25 INHERITED::drawRect(rect, paint); 31 if (this->transformBounds(outer.rect(), &paint)) {
|
H A D | SkBitmap.cpp | 807 void SkBitmap::eraseArea(const SkIRect& rect, SkColor c) const { argument 809 if (area.intersect(rect)) {
|
H A D | SkBlitter.cpp | 206 const SkIRect& cr = clipper.rect(); 212 void SkBlitter::blitRectRegion(const SkIRect& rect, const SkRegion& clip) { argument 213 SkRegion::Cliperator clipper(clip, rect); 216 const SkIRect& cr = clipper.rect(); 226 const SkIRect& cr = iter.rect(); 269 static inline bool y_in_rect(int y, const SkIRect& rect) { argument 270 return (unsigned)(y - rect.fTop) < (unsigned)rect.height(); 273 static inline bool x_in_rect(int x, const SkIRect& rect) { argument 274 return (unsigned)(x - rect [all...] |
H A D | SkCanvas.cpp | 1126 // Map the cull rect into device space. 1328 void SkCanvas::clipRect(const SkRect& rect, SkRegion::Op op, bool doAA) { argument 1330 this->onClipRect(rect, op, edgeStyle); 1333 void SkCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { argument 1340 if (this->quickReject(rect)) { 1359 // for these simpler matrices, we can stay a rect even after applying 1362 // is really just a rect. 1365 fMCRec->fMatrix->mapRect(&r, rect); 1369 // since we're rotated or some such thing, we convert the rect to a path 1375 path.addRect(rect); [all...] |
H A D | SkClipStack.cpp | 196 // if the new rect carves out a portion of the old one there is no 214 // are inside the current clip rect since the extensions 621 bool SkClipStack::intersectRectWithClip(SkRect* rect) const { 622 SkASSERT(NULL != rect); 628 if (bounds.contains(*rect)) { 631 // If rect's x values are both within bound's x range we 636 return rect->intersect(bounds); 640 bool SkClipStack::quickContains(const SkRect& rect) const { 648 // Part of 'rect' could be trimmed off by the inverse-filled clip element 649 if (SkRect::Intersects(element->getBounds(), rect)) { 715 clipDevRect(const SkRect& rect, SkRegion::Op op, bool doAA) argument [all...] |
H A D | SkDraw.cpp | 222 static void CallBitmapXferProc(const SkBitmap& bitmap, const SkIRect& rect, argument 243 const int widthBytes = rect.width() << shiftPerPixel; 246 pixels += rect.fTop * rowBytes + (rect.fLeft << shiftPerPixel); 247 for (int scans = rect.height() - 1; scans >= 0; --scans) { 279 CallBitmapXferProc(*fBitmap, iter.rect(), proc, procData); 788 void SkDraw::drawRect(const SkRect& rect, const SkPaint& paint) const { argument 801 tmp.addRect(rect); 810 // transform rect into devRect 811 matrix.mapPoints(rect_points(devRect), rect_points(rect), [all...] |