/third_party/skia/docs/examples/ |
H A D | Rect_intersects_3.cpp | 7 SkRect rect = { 10, 40, 50, 80 }; in REG_FIDDLE() local 8 SkDebugf("%s intersection", rect.intersects({30, 60, 70, 90}) ? "" : "no "); in REG_FIDDLE()
|
H A D | Rect_intersects_2.cpp | 7 SkRect rect = { 10, 40, 50, 80 }; in REG_FIDDLE() local 8 SkDebugf("%s intersection", rect.intersects({30, 60, 70, 90}) ? "" : "no "); in REG_FIDDLE()
|
H A D | Rect_dump.cpp | 7 SkRect rect = {20, 30, 40, 50}; in REG_FIDDLE() local 9 rect.dump(dumpAsHex); in REG_FIDDLE()
|
H A D | Rect_roundOut_3.cpp | 7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local 8 SkIRect round = rect.roundOut(); in REG_FIDDLE()
|
H A D | Rect_roundOut.cpp | 7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local 9 rect.roundOut(&round); in REG_FIDDLE()
|
H A D | Rect_roundOut_2.cpp | 7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local 9 rect.roundOut(&round); in REG_FIDDLE()
|
H A D | Rect_round_2.cpp | 7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local 8 SkIRect round = rect.round(); in REG_FIDDLE()
|
H A D | Rect_roundIn.cpp | 7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local 9 rect.roundIn(&round); in REG_FIDDLE()
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkOpsRenderPass.cpp | 141 // Start with the right side of rect so we know if we end up going pass the maxWidth. in adjust_bounds_to_granularity() 160 // Start with the bottom side of rect so we know if we end up going pass the maxHeight. in adjust_bounds_to_granularity() 450 // Flip rect if necessary in onClearStencilClip() 455 vkRect = scissor.rect(); in onClearStencilClip() 457 vkRect.setLTRB(scissor.rect().fLeft, sb->height() - scissor.rect().fBottom, in onClearStencilClip() 458 scissor.rect().fRight, sb->height() - scissor.rect().fTop); in onClearStencilClip() 461 clearRect.rect.offset = { vkRect.fLeft, vkRect.fTop }; in onClearStencilClip() 462 clearRect.rect in onClearStencilClip() [all...] |
/third_party/skia/gm/ |
H A D | circularclips.cpp | 51 SkRect rect = SkRect::MakeLTRB(fX1 - fR, fY - fR, fX2 + fR, fY + fR); variable 63 canvas->drawRect(rect, fillPaint); 82 canvas->drawRect(rect, fillPaint);
|
H A D | modecolorfilters.cpp | 52 // draws a background behind each test rect to see transparency 85 // size of rect for each test case 149 SkRect rect = SkRect::MakeXYWH(x * kRectWidth, y * kRectHeight, variable 152 canvas->saveLayer(&rect, nullptr); 153 canvas->drawRect(rect, bgPaint); 154 canvas->drawRect(rect, paint);
|
H A D | nested.cpp | 56 static void AddShape(SkPathBuilder* b, const SkRect& rect, Shapes shape, SkPathDirection dir) { in AddShape() argument 59 b->addRect(rect, dir); in AddShape() 63 rr.setRectXY(rect, 5, 5); in AddShape() 68 b->addOval(rect, dir); in AddShape()
|
/third_party/skia/modules/skparagraph/src/ |
H A D | ParagraphPainterImpl.h | 24 void drawRect(const SkRect& rect, const SkPaintOrID& paint) override; 26 void drawFilledRect(const SkRect& rect, const DecorationStyle& decorStyle) override; 34 void clipRect(const SkRect& rect) override;
|
/third_party/skia/modules/sksg/src/ |
H A D | SkSGRect.cpp | 16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() argument 51 if (!fRRect.rect().contains(p.x(), p.y())) { in onContains()
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkCropImageFilter.cpp | 47 // The crop rect is specified in floating point to allow cropping to partial local pixels, 61 sk_sp<SkImageFilter> SkMakeCropImageFilter(const SkRect& rect, sk_sp<SkImageFilter> input) { in SkMakeCropImageFilter() argument 62 if (rect.isEmpty() || !rect.isFinite()) { in SkMakeCropImageFilter() 65 return sk_sp<SkImageFilter>(new SkCropImageFilter(rect, std::move(input))); in SkMakeCropImageFilter() 100 // crop rect and desired output, 'childOutput' does not necessarily fit that exactly. An in onFilterImage() 119 // sized to our crop rect. in onGetInputLayerBounds() 121 // But we can restrict the crop rect to just what's requested, since anything beyond that won't in onGetInputLayerBounds() 139 // Assuming unbounded child content, our output is a decal-tiled image sized to our crop rect. in onGetOutputLayerBounds() 148 // Nothing would be drawn into our crop rect, s in onGetOutputLayerBounds() [all...] |
/third_party/skia/tests/ |
H A D | MaskCacheTest.cpp | 35 SkRect rect = SkRect::MakeWH(100, 100); in DEF_TEST() local 37 rrect.setRectXY(rect, 30, 30); in DEF_TEST() 73 SkRect rect = SkRect::MakeWH(100, 100); in DEF_TEST() local 74 SkRect rects[2] = {rect}; in DEF_TEST()
|
H A D | VkDrawableTest.cpp | 68 clearRect.rect.offset = { fWidth / 2, 0 }; 69 clearRect.rect.extent = { (uint32_t)fWidth / 2, (uint32_t)fHeight }; 149 SkIRect rect = SkIRect::MakeXYWH(td->fWidth/2, 0, td->fWidth/4, td->fHeight); in ImportDraw() local 152 canvas->drawIRect(rect, paint); in ImportDraw() 240 SkIRect rect = SkIRect::MakeLTRB(0, DEV_H/2, DEV_W, DEV_H); in draw_drawable_test() local 241 canvas->drawIRect(rect, paint); in draw_drawable_test()
|
/third_party/skia/tools/ |
H A D | dump_record.cpp | 103 command.rect.left(), command.rect.top(), command.rect.right(), command.rect.bottom(), in print()
|
/third_party/vk-gl-cts/framework/platform/android/ |
H A D | tcuAndroidNativeActivity.cpp | 94 static void onContentRectChangedCallback (ANativeActivity* activity, const ARect* rect) in onContentRectChangedCallback() argument 96 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onContentRectChanged(rect); in onContentRectChangedCallback() 203 void NativeActivity::onContentRectChanged (const ARect* rect) in onContentRectChanged() argument 205 DE_UNREF(rect); in onContentRectChanged()
|
/third_party/skia/src/core/ |
H A D | SkBlurMF.cpp | 197 if (!prepare_to_draw_into_mask(rrect.rect(), mask)) { in draw_rrect_into_mask() 330 if (rect_exceeds(rrect.rect(), SkIntToScalar(32767))) { in filterRRectToNine() 336 srcM.fBounds = rrect.rect().roundOut(); in filterRRectToNine() 342 // special case for fast round rect blur in filterRRectToNine() 372 if (totalSmallWidth >= rrect.rect().width()) { in filterRRectToNine() 381 if (totalSmallHeight >= rrect.rect().height()) { in filterRRectToNine() 461 // special case for fast rect blur in filterRectsToNine() 474 * smallR is the smallest version of 'rect' that will still guarantee that in filterRectsToNine() 480 * pixels from the original rect. in filterRectsToNine() 485 * with our outer-rect (dst in filterRectsToNine() 931 SkRect rect; make_rect_blur() local [all...] |
H A D | SkOverdrawCanvas.cpp | 112 void SkOverdrawCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect() argument 113 fList[0]->onDrawRect(rect, this->overdrawPaint(paint)); in onDrawRect() 134 void SkOverdrawCanvas::onDrawRRect(const SkRRect& rect, const SkPaint& paint) { in onDrawRRect() argument 135 fList[0]->onDrawRRect(rect, this->overdrawPaint(paint)); in onDrawRRect() 214 void SkOverdrawCanvas::onDrawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4], in onDrawEdgeAAQuad() argument 219 fList[0]->onDrawRect(rect, fPaint); in onDrawEdgeAAQuad()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_stream.h | 201 struct rect src; /* composition area */ 202 struct rect dst; /* stream addressable area */ 312 struct rect src; 313 struct rect dst; 558 struct rect *rect,
|
/third_party/mesa3d/src/gallium/targets/d3d10sw/tests/ |
H A D | tri.cpp | 72 RECT rect = {0, 0, WindowWidth, WindowHeight}; in main() local 73 AdjustWindowRect(&rect, dwStyle, FALSE); in main() 79 rect.right - rect.left, in main() 80 rect.bottom - rect.top, in main()
|
/third_party/skia/src/gpu/ |
H A D | GrOpFlushState.cpp | 106 SkIRect rect, in doUpload() 116 size_t tightRB = rect.width()*GrColorTypeBytesPerPixel(supportedWrite.fColorType); in doUpload() 121 tmpPixels.reset(new char[rect.height()*tightRB]); in doUpload() 124 GrImageInfo srcInfo(colorType, kAT, nullptr, rect.size()); in doUpload() 125 GrImageInfo tmpInfo(supportedWrite.fColorType, kAT, nullptr, rect.size()); in doUpload() 134 rect, in doUpload()
|
/third_party/skia/bench/ |
H A D | ShapesBench.cpp | 25 "rect, oval, rrect, mixed."); 28 "none, rect, oval, rrect, mixed."); 62 if (!strcmp(FLAGS_shapesType[0], "rect")) { in ShapesBench() 71 SkDebugf("Invalid shapesType \"%s\". Must be one of: rect, oval, rrect, mixed.", in ShapesBench() 77 } else if (!strcmp(FLAGS_innerShapesType[0], "rect")) { in ShapesBench() 87 "none, rect, oval, rrect, mixed.", FLAGS_innerShapesType[0]); in ShapesBench() 116 "none", "rect", "oval", "rrect", "mixed" 140 fOval.setOval(fRect.rect()); 141 fRRect.setNinePatch(fRect.rect(), w / 8, h / 13, w / 11, h / 7); 146 fInnerOval.setOval(fInnerRect.rect()); [all...] |