Home
last modified time | relevance | path

Searched refs:rect (Results 426 - 450 of 786) sorted by relevance

1...<<11121314151617181920>>...32

/third_party/skia/gm/
H A Dskbug_257.cpp101 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 Dstrokerect.cpp25 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 Danalytic_gradients.cpp126 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 Dblurroundrect.cpp110 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 Dhardstop_gradients.cpp72 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 DFake.cpp25 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 DSkMorphologyImageFilter.cpp445 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 DCanvasTest.cpp67 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 DMultiPictureDocumentTest.cpp37 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 DReadPixelsTest.cpp252 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 Dinterface.js143 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 Dpdftopdf_processor.cc330 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 DGrD3DOpsRenderPass.cpp64 // 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 DGrD3DCommandList.cpp461 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 DSurface.hpp54 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 Dimgui_impl_win32.cpp314 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 DSkPath.cpp259 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 DSkDraw.h42 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 DInspectableNativeWindow.h59 bool getClientRect(RECT *rect) in getClientRect() argument
66 *rect = mClientRect; in getClientRect()
/third_party/skia/samplecode/
H A DSampleAARectModes.cpp50 SkRect rect = SkRect::MakeXYWH(W / 4 + offset, in drawCell() local
53 canvas->drawRect(rect, paint); in drawCell()
/third_party/skia/example/
H A DHelloWorld.cpp67 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 Dskpaint_xfer.cpp42 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 DSkNoDrawCanvas.h34 void resetCanvas(const SkIRect& rect) { this->resetForNextPicture(rect); } in resetCanvas() argument
/third_party/skia/modules/skparagraph/include/
H A DDartTypes.h31 // 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 Dv3dv_meta_clear.c1033 .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...]

Completed in 20 milliseconds

1...<<11121314151617181920>>...32