/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...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/drv/hi3516cv500/ |
H A D | hifb_graphic_hal.h | 79 hi_bool fb_hal_video_set_layer_disp_rect(hal_disp_layer layer, HIFB_RECT *rect);
80 hi_bool fb_hal_video_set_layer_video_rect(hal_disp_layer layer, HIFB_RECT *rect);
144 hi_bool fb_hal_layer_set_src_resolution(hal_disp_layer layer, HIFB_RECT *rect);
145 hi_bool fb_hal_layer_set_layer_in_rect(hal_disp_layer layer, HIFB_RECT *rect);
146 hi_bool fb_hal_layer_set_layer_out_rect(hal_disp_layer layer, HIFB_RECT *rect);
|
H A D | hifb_vou_graphics.c | 152 hi_bool vou_graphics_set_layer_in_rect(GRAPHIC_LAYER layer, HIFB_RECT *rect) in vou_graphics_set_layer_in_rect() argument 157 return graphic_drv_set_layer_in_rect(disp_layer, rect); in vou_graphics_set_layer_in_rect() 160 hi_bool vou_graphics_set_layer_src_image_reso(GRAPHIC_LAYER layer, HIFB_RECT *rect) in vou_graphics_set_layer_src_image_reso() argument 165 return graphic_drv_set_src_image_resolution(disp_layer, rect); in vou_graphics_set_layer_src_image_reso() 168 hi_bool vou_graphics_set_layer_out_rect(GRAPHIC_LAYER layer, HIFB_RECT *rect) in vou_graphics_set_layer_out_rect() argument 173 return graphic_drv_set_layer_out_rect(disp_layer, rect); in vou_graphics_set_layer_out_rect()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/ |
H A D | hi_gv_widget.h | 114 const HI_RECT *rect; member 489 [(((content rect).x & 0xFFFF)<<16) | (y & 0xFFFF), ((w & 0xFFFF)<<16) | 492 [(((content rect).x & 0xFFFF)<<16) | (y & 0xFFFF), ((w & 0xFFFF)<<16) | (h & 0xFFFF)] */ 495 /* finish fling event [wparam, lparam] = [(((content rect).x & 0xFFFF)<<16) | (y & 0xFFFF), ((w & 0xFFFF)<<16) | (h & 498 [(((content rect).x & 0xFFFF)<<16) | (y & 0xFFFF), ((w & 0xFFFF)<<16) | (h & 0xFFFF)] */ 696 HI_RECT rect; /* The position and size of widget */ member 912 * param[in] rect The area of update . 917 HI_S32 HI_GV_Widget_Paint(HIGV_HANDLE widgetHandle, const HI_RECT *rect); 1128 * param[in] rect The area of update 1132 HI_S32 HI_GV_Widget_Update(HIGV_HANDLE widgetHandle, const HI_RECT *rect); [all...] |
/device/soc/rockchip/common/hardware/display/src/display_gfx/ |
H A D | display_gfx.c | 152 int32_t rkFillRect(ISurface *iSurface, IRect *rect, uint32_t color, GfxOpt *opt) in rkFillRect() argument 164 imRect.x = rect->x; in rkFillRect() 165 imRect.y = rect->y; in rkFillRect() 166 imRect.width = rect->w; in rkFillRect() 167 imRect.height = rect->h; in rkFillRect()
|
/device/soc/rockchip/rk3399/hardware/display/src/display_gfx/ |
H A D | display_gfx.c | 152 int32_t rkFillRect(ISurface *iSurface, IRect *rect, uint32_t color, GfxOpt *opt) in rkFillRect() argument 164 imRect.x = rect->x; in rkFillRect() 165 imRect.y = rect->y; in rkFillRect() 166 imRect.width = rect->w; in rkFillRect() 167 imRect.height = rect->h; in rkFillRect()
|
/device/soc/rockchip/rk3566/hardware/display/src/display_device/ |
H A D | display_composer_vdi_impl.cpp | 140 int32_t DisplayComposerVdiImpl::SetDisplayClientCrop(uint32_t devId, const IRect& rect) in SetDisplayClientCrop() argument 260 int32_t DisplayComposerVdiImpl::SetLayerRegion(uint32_t devId, uint32_t layerId, const IRect& rect) in SetLayerRegion() argument 264 const_cast<IRect*>(&rect)); in SetLayerRegion() 269 int32_t DisplayComposerVdiImpl::SetLayerCrop(uint32_t devId, uint32_t layerId, const IRect& rect) in SetLayerCrop() argument 272 int32_t ec = composerModel_->CallLayerFunction(devId, layerId, &HdiLayer::SetLayerCrop, const_cast<IRect*>(&rect)); in SetLayerCrop()
|
/device/soc/rockchip/rk3566/hardware/display/src/display_gfx/ |
H A D | display_gfx.c | 150 int32_t rkFillRect(ISurface *iSurface, IRect *rect, uint32_t color, GfxOpt *opt) in rkFillRect() argument 162 imRect.x = rect->x; in rkFillRect() 163 imRect.y = rect->y; in rkFillRect() 164 imRect.width = rect->w; in rkFillRect() 165 imRect.height = rect->h; in rkFillRect()
|
/device/soc/rockchip/rk3568/hardware/display/src/display_gfx/ |
H A D | display_gfx.c | 150 int32_t rkFillRect(ISurface *iSurface, IRect *rect, uint32_t color, GfxOpt *opt) in rkFillRect() argument 162 imRect.x = rect->x; in rkFillRect() 163 imRect.y = rect->y; in rkFillRect() 164 imRect.width = rect->w; in rkFillRect() 165 imRect.height = rect->h; in rkFillRect()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_device/ |
H A D | display_composer_vdi_impl.cpp | 140 int32_t DisplayComposerVdiImpl::SetDisplayClientCrop(uint32_t devId, const IRect& rect) in SetDisplayClientCrop() argument 260 int32_t DisplayComposerVdiImpl::SetLayerRegion(uint32_t devId, uint32_t layerId, const IRect& rect) in SetLayerRegion() argument 264 const_cast<IRect*>(&rect)); in SetLayerRegion() 269 int32_t DisplayComposerVdiImpl::SetLayerCrop(uint32_t devId, uint32_t layerId, const IRect& rect) in SetLayerCrop() argument 272 int32_t ec = composerModel_->CallLayerFunction(devId, layerId, &HdiLayer::SetLayerCrop, const_cast<IRect*>(&rect)); in SetLayerCrop()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_gfx/ |
H A D | display_gfx.c | 150 int32_t rkFillRect(ISurface *iSurface, IRect *rect, uint32_t color, GfxOpt *opt)
in rkFillRect() argument 162 imRect.x = rect->x;
in rkFillRect() 163 imRect.y = rect->y;
in rkFillRect() 164 imRect.width = rect->w;
in rkFillRect() 165 imRect.height = rect->h;
in rkFillRect()
|
/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()
|