/third_party/skia/gm/ |
H A D | skbug_257.cpp | 101 SkRect rect = SkRect::MakeLTRB(8, 8 + translate, size - 8, in DEF_SIMPLE_GM() local 103 canvas->drawRect(rect, checker); in DEF_SIMPLE_GM() 109 rrect.setRectRadii(rect, radii); in DEF_SIMPLE_GM()
|
H A D | strokerect.cpp | 25 static void draw_path(SkCanvas* canvas, const SkPath& path, const SkRect& rect, in draw_path() argument 34 canvas->drawRect(rect, paint); in draw_path() 129 * Exercise rect-stroking (which is specialized from paths) when the resulting stroke-width is
|
H A D | analytic_gradients.cpp | 126 const SkRect rect = SkRect::MakeWH(SkIntToScalar(RECT_WIDTH), SkIntToScalar(RECT_HEIGHT)); in shade_rect() local 127 canvas->drawRect(rect, paint); in shade_rect()
|
H A D | blurroundrect.cpp | 110 auto rect = SkRect::MakeLTRB(5.f, -20000.f, 240.f, 25.f); in DEF_SIMPLE_GM() local 111 SkRRect rrect = SkRRect::MakeRectXY(rect, 40.f, 40.f); in DEF_SIMPLE_GM()
|
H A D | hardstop_gradients.cpp | 72 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(cellCol * CELL_WIDTH + PAD_WIDTH), in shade_rect() local 77 canvas->drawRect(rect, paint); in shade_rect()
|
/third_party/skia/experimental/sorttoy/ |
H A D | Fake.cpp | 25 if (fCmds[i]->rect() != other.fCmds[i]->rect()) { in operator ==() 47 SkIRect r = c->rect(); in FakeMCBlob()
|
/third_party/skia/src/effects/imagefilters/ |
H A D | SkMorphologyImageFilter.cpp | 445 GrRecordingContext* rContext, SkSpecialImage* input, const SkIRect& rect, in apply_morphology() 455 const SkIRect dstRect = SkIRect::MakeWH(rect.width(), rect.height()); in apply_morphology() 456 SkIRect srcRect = rect; in apply_morphology() 462 GrImageInfo info(colorType, kPremul_SkAlphaType, colorSpace, rect.size()); in apply_morphology() 486 GrImageInfo info(colorType, kPremul_SkAlphaType, colorSpace, rect.size()); in apply_morphology() 504 SkIRect::MakeWH(rect.width(), rect.height()), in apply_morphology() 444 apply_morphology( GrRecordingContext* rContext, SkSpecialImage* input, const SkIRect& rect, MorphType morphType, SkISize radius, const SkImageFilter_Base::Context& ctx) apply_morphology() argument
|
/third_party/skia/tests/ |
H A D | CanvasTest.cpp | 67 return op.rect; in operator ()() 96 SkRect rect, rect2; in DEF_TEST() local 104 rect = canvas.getLocalClipBounds(); in DEF_TEST() 105 REPORTER_ASSERT(reporter, rect.contains(SkRect::MakeWH(10, 10))); in DEF_TEST() 107 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST() 116 rect = canvas.getLocalClipBounds(); in DEF_TEST() 117 REPORTER_ASSERT(reporter, rect == SkRect::MakeEmpty()); in DEF_TEST() 119 REPORTER_ASSERT(reporter, rect == rect2); in DEF_TEST()
|
H A D | MultiPictureDocumentTest.cpp | 37 SkRect rect = SkRect::MakeXYWH(50+seed, 50+seed, 4*seed, 60); in draw_basic() local 38 canvas->drawRect(rect, paint); in draw_basic() 41 oval.setOval(rect); in draw_basic() 49 rect.offset(80, 0); in draw_basic() 51 canvas->drawRoundRect(rect, 10, 10, paint); in draw_basic()
|
H A D | ReadPixelsTest.cpp | 252 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, TightRowBytes tightRB, in init_bitmap() argument 254 SkImageInfo info = SkImageInfo::Make(rect.size(), ct, at); in init_bitmap() 329 for (size_t rect = 0; rect < SK_ARRAY_COUNT(gReadPixelsTestRects); ++rect) { in test_readpixels() 330 const SkIRect& srcRect = gReadPixelsTestRects[rect]; in test_readpixels()
|
/third_party/skia/modules/canvaskit/ |
H A D | interface.js | 143 CanvasKit.Path.prototype.addRect = function(rect, isCCW) { 144 var rPtr = copyRectToWasm(rect); 463 CanvasKit.Canvas.prototype.clipRect = function(rect, op, antialias) { 465 var rPtr = copyRectToWasm(rect); 712 CanvasKit.Canvas.prototype.drawRect = function(rect, paint) { 714 var rPtr = copyRectToWasm(rect); 1142 // RRectXY returns a TypedArray representing an RRect with the given rect and a radiusX and 1144 CanvasKit.RRectXY = function(rect, rx, ry) { 1146 rect[0], rect[ [all...] |
/third_party/cups-filters/filter/pdftopdf/ |
H A D | pdftopdf_processor.cc | 330 PageRect rect; in processPDFTOPDF() local 331 rect = page->getRect(); in processPDFTOPDF() 332 //rect.dump(); in processPDFTOPDF() 334 bool newPage=nupstate.nextPage(rect.width,rect.height,pgedit); in processPDFTOPDF() 340 // TODO? update rect? --- not needed any more in processPDFTOPDF() 357 // page->"uncrop"(rect); // page->setMedia() in processPDFTOPDF() 358 // Note: currently "fixed" in add_subpage(...&rect); in processPDFTOPDF() 359 page->add_border_rect(rect,param.border,1.0/pgedit.scale); in processPDFTOPDF()
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DOpsRenderPass.cpp | 64 // Passing in nullptr for the rect clears the entire d3d RT. Is this correct? Does the load in onBegin() 296 // Flip rect if necessary in scissor_to_d3d_clear_rect() 301 d3dRect = scissor.rect(); in scissor_to_d3d_clear_rect() 303 d3dRect.setLTRB(scissor.rect().fLeft, surface->height() - scissor.rect().fBottom, in scissor_to_d3d_clear_rect() 304 scissor.rect().fRight, surface->height() - scissor.rect().fTop); in scissor_to_d3d_clear_rect()
|
H A D | GrD3DCommandList.cpp | 461 const D3D12_RECT* rect) { in clearRenderTargetView() 468 unsigned int numRects = rect ? 1 : 0; in clearRenderTargetView() 470 numRects, rect); in clearRenderTargetView() 475 const D3D12_RECT* rect) { in clearDepthStencilView() 478 unsigned int numRects = rect ? 1 : 0; in clearDepthStencilView() 480 stencilClearValue, numRects, rect); in clearDepthStencilView() 459 clearRenderTargetView(const GrD3DRenderTarget* renderTarget, std::array<float, 4> color, const D3D12_RECT* rect) clearRenderTargetView() argument 473 clearDepthStencilView(const GrD3DAttachment* stencil, uint8_t stencilClearValue, const D3D12_RECT* rect) clearDepthStencilView() argument
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Surface.hpp | 54 SliceRectT(const RectT<T>& rect) : RectT<T>(rect), slice(0) {} in SliceRectT() 55 SliceRectT(const RectT<T>& rect, int s) : RectT<T>(rect), slice(s) {} in SliceRectT() 303 bool isEntire(const Rect& rect) const;
|
/third_party/skia/third_party/externals/imgui/backends/ |
H A D | imgui_impl_win32.cpp | 314 RECT rect = { 0, 0, 0, 0 }; in ImGui_ImplWin32_NewFrame() local 315 ::GetClientRect(bd->hWnd, &rect); in ImGui_ImplWin32_NewFrame() 316 io.DisplaySize = ImVec2((float)(rect.right - rect.left), (float)(rect.bottom - rect.top)); in ImGui_ImplWin32_NewFrame()
|
/third_party/skia/src/core/ |
H A D | SkPath.cpp | 259 const SkRect& rect, in check_edge_against_rect() 271 // check the cross product of v with the vec from edgeBegin to each rect corner in check_edge_against_rect() 272 SkScalar yL = v.fY * (rect.fLeft - edgeBegin->fX); in check_edge_against_rect() 273 SkScalar xT = v.fX * (rect.fTop - edgeBegin->fY); in check_edge_against_rect() 274 SkScalar yR = v.fY * (rect.fRight - edgeBegin->fX); in check_edge_against_rect() 275 SkScalar xB = v.fX * (rect.fBottom - edgeBegin->fY); in check_edge_against_rect() 283 bool SkPath::conservativelyContainsRect(const SkRect& rect) const { in conservativelyContainsRect() 328 if (!check_edge_against_rect(quadPts[0], quadPts[2], rect, direction)) { in conservativelyContainsRect() 331 if (!check_edge_against_rect(quadPts[2], quadPts[4], rect, direction)) { in conservativelyContainsRect() 335 if (!check_edge_against_rect(prevPt, pts[nextPt], rect, directio in conservativelyContainsRect() 257 check_edge_against_rect(const SkPoint& p0, const SkPoint& p1, const SkRect& rect, SkPathFirstDirection dir) check_edge_against_rect() argument 451 isRect(SkRect* rect, bool* isClosed, SkPathDirection* direction) const isRect() argument 793 addRect(const SkRect &rect, SkPathDirection dir, unsigned startIndex) addRect() argument 922 addRoundRect(const SkRect& rect, const SkScalar radii[], SkPathDirection dir) addRoundRect() argument 1025 addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry, SkPathDirection dir) addRoundRect() argument 3129 IsSimpleRect(const SkPath& path, bool isSimpleFill, SkRect* rect, SkPathDirection* direction, unsigned* start) IsSimpleRect() argument 3501 IsRectContour(const SkPath& path, bool allowPartial, int* currVerb, const SkPoint** ptsPtr, bool* isClosed, SkPathDirection* direction, SkRect* rect) IsRectContour() argument [all...] |
H A D | SkDraw.h | 42 void drawRect(const SkRect& rect, const SkPaint& paint) const { in drawRect() argument 43 this->drawRect(rect, paint, nullptr, nullptr); in drawRect() 116 * to draw the rect. If no special-case is available, returns
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/winrt/ |
H A D | InspectableNativeWindow.h | 59 bool getClientRect(RECT *rect) in getClientRect() argument 66 *rect = mClientRect; in getClientRect()
|
/third_party/skia/samplecode/ |
H A D | SampleAARectModes.cpp | 50 SkRect rect = SkRect::MakeXYWH(W / 4 + offset, in drawCell() local 53 canvas->drawRect(rect, paint); in drawCell()
|
/third_party/skia/example/ |
H A D | HelloWorld.cpp | 67 SkRect rect = SkRect::MakeXYWH(10, 10, 128, 128); in onPaint() local 68 canvas->drawRect(rect, paint); in onPaint()
|
/third_party/skia/docs/examples/ |
H A D | skpaint_xfer.cpp | 42 SkRect rect = SkRect::MakeWH(64.0f, 64.0f); in REG_FIDDLE() local 83 canvas->drawRect(rect, stroke); in REG_FIDDLE()
|
/third_party/skia/include/utils/ |
H A D | SkNoDrawCanvas.h | 34 void resetCanvas(const SkIRect& rect) { this->resetForNextPicture(rect); } in resetCanvas() argument
|
/third_party/skia/modules/skparagraph/include/ |
H A D | DartTypes.h | 31 // The top and bottom of each rect will cover half of the 34 // The line spacing will be added to the top of the rect. 36 // The line spacing will be added to the bottom of the rect. 47 // Extends the width of the last rect of each line to match the position of 48 // the widest rect over all the lines. 81 SkRect rect; member 84 TextBox(SkRect r, TextDirection d) : rect(r), direction(d) {} in TextBox()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_meta_clear.c | 1033 .x = rects[i].rect.offset.x, in emit_subpass_color_clear_rects() 1034 .y = rects[i].rect.offset.y, in emit_subpass_color_clear_rects() 1035 .width = rects[i].rect.extent.width, in emit_subpass_color_clear_rects() 1036 .height = rects[i].rect.extent.height, in emit_subpass_color_clear_rects() 1041 v3dv_CmdSetScissor(cmd_buffer_handle, 0, 1, &rects[i].rect); in emit_subpass_color_clear_rects() 1135 .x = rects[i].rect.offset.x, in emit_subpass_ds_clear_rects() 1136 .y = rects[i].rect.offset.y, in emit_subpass_ds_clear_rects() 1137 .width = rects[i].rect.extent.width, in emit_subpass_ds_clear_rects() 1138 .height = rects[i].rect.extent.height, in emit_subpass_ds_clear_rects() 1143 v3dv_CmdSetScissor(cmd_buffer_handle, 0, 1, &rects[i].rect); in emit_subpass_ds_clear_rects() [all...] |