Home
last modified time | relevance | path

Searched refs:rect (Results 376 - 400 of 1129) sorted by relevance

1...<<11121314151617181920>>...46

/third_party/skia/gm/
H A Dnested.cpp56 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/vk-gl-cts/framework/platform/android/
H A DtcuAndroidNativeActivity.cpp94 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 DSkBlurMF.cpp197 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 DSkOverdrawCanvas.cpp112 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()
H A DSkImageFilter.cpp68 skif::ParameterSpace<SkRect>(as_IFB(this)->getCropRect().rect())).roundOut(); in filterBounds()
72 // Nothing would be output by the filter, so return empty rect in filterBounds()
82 // Manually apply the crop rect for now, until cropping is performed by a dedicated SkIF. in filterBounds()
194 SkRect rect; in unflatten() local
195 buffer.readRect(&rect); in unflatten()
196 if (!buffer.isValid() || !buffer.validate(SkIsValidRect(rect))) { in unflatten()
205 fCropRect = CropRect(flags ? &rect : nullptr); in unflatten()
218 buffer.writeRect(fCropRect.rect()); in flatten()
267 mapping.paramToLayer(skif::ParameterSpace<SkRect>(fCropRect.rect())).roundOut(); in getInputBounds()
269 // Nothing would be output by the filter, so return empty rect in getInputBounds()
458 SkIRect rect = filter ? filter->filterBounds(src, ctm, dir, inputRect) : src; onFilterBounds() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/
H A Ddc_stream.h201 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 Dtri.cpp72 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 DGrOpFlushState.cpp106 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/tests/
H A DVkDrawableTest.cpp68 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/bench/
H A DShapesBench.cpp25 "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...]
/third_party/skia/docs/examples/
H A DRect_roundOut_3.cpp7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local
8 SkIRect round = rect.roundOut(); in REG_FIDDLE()
H A DRect_roundOut.cpp7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local
9 rect.roundOut(&round); in REG_FIDDLE()
H A DRect_roundOut_2.cpp7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local
9 rect.roundOut(&round); in REG_FIDDLE()
H A DRect_round_2.cpp7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local
8 SkIRect round = rect.round(); in REG_FIDDLE()
H A DRect_roundIn.cpp7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local
9 rect.roundIn(&round); in REG_FIDDLE()
H A DRect_round.cpp7 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f }; in REG_FIDDLE() local
9 rect.round(&round); in REG_FIDDLE()
/kernel/linux/linux-5.10/drivers/media/platform/coda/
H A Dcoda-bit.c487 ysize = round_up(q_data->rect.width, 16) * in coda_alloc_framebuffers()
488 round_up(q_data->rect.height, 16); in coda_alloc_framebuffers()
490 ysize = round_up(q_data->rect.width, 8) * q_data->rect.height; in coda_alloc_framebuffers()
586 size = (DIV_ROUND_UP(q_data->rect.width, 16) * in coda_alloc_context_buffers()
587 DIV_ROUND_UP(q_data->rect.height, 16)) * 3200 / 8 + 512; in coda_alloc_context_buffers()
644 r = &q_data_src->rect; in coda_encode_header()
834 mb_width = DIV_ROUND_UP(q_data_src->rect.width, 16); in coda_setup_iram()
1136 value = (q_data_src->rect.width & CODADX6_PICWIDTH_MASK) in coda_start_encoding()
1138 value |= (q_data_src->rect in coda_start_encoding()
2351 struct v4l2_rect *rect = &q_data_dst->rect; coda_finish_decode() local
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/chips-media/
H A Dcoda-bit.c489 ysize = round_up(q_data->rect.width, 16) * in coda_alloc_framebuffers()
490 round_up(q_data->rect.height, 16); in coda_alloc_framebuffers()
492 ysize = round_up(q_data->rect.width, 8) * q_data->rect.height; in coda_alloc_framebuffers()
588 size = (DIV_ROUND_UP(q_data->rect.width, 16) * in coda_alloc_context_buffers()
589 DIV_ROUND_UP(q_data->rect.height, 16)) * 3200 / 8 + 512; in coda_alloc_context_buffers()
646 r = &q_data_src->rect; in coda_encode_header()
836 mb_width = DIV_ROUND_UP(q_data_src->rect.width, 16); in coda_setup_iram()
1138 value = (q_data_src->rect.width & CODADX6_PICWIDTH_MASK) in coda_start_encoding()
1140 value |= (q_data_src->rect in coda_start_encoding()
2373 struct v4l2_rect *rect = &q_data_dst->rect; coda_finish_decode() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawScissorTests.cpp181 const VkClearRect rect = in addCommands() local
183 makeRect2D(m_quad.m_x, m_quad.m_y, m_quad.m_width, m_quad.m_height), // VkRect2D rect in addCommands()
188 vk.cmdClearAttachments(cmdBuffer, 1u, &attachment, 1u, &rect); in addCommands()
836 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); in createTests() local
841 scissors.push_back(rect); in createTests()
842 rect.offset.x += 10; in createTests()
843 rect.offset.y += 10; in createTests()
844 scissors.push_back(rect); in createTests()
845 rect.offset.x += 10; in createTests()
846 rect in createTests()
864 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); createTests() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawScissorTests.cpp181 const VkClearRect rect = in addCommands() local
183 makeRect2D(m_quad.m_x, m_quad.m_y, m_quad.m_width, m_quad.m_height), // VkRect2D rect in addCommands()
188 vk.cmdClearAttachments(cmdBuffer, 1u, &attachment, 1u, &rect); in addCommands()
836 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); in createTests() local
841 scissors.push_back(rect); in createTests()
842 rect.offset.x += 10; in createTests()
843 rect.offset.y += 10; in createTests()
844 scissors.push_back(rect); in createTests()
845 rect.offset.x += 10; in createTests()
846 rect in createTests()
864 VkRect2D rect = makeRect2D(10, 20, WIDTH - 60, HEIGHT - 70); createTests() local
[all...]
/third_party/skia/src/gpu/dawn/
H A DGrDawnGpu.cpp182 SkIRect rect, in onWritePixels()
192 this->uploadTextureData(srcColorType, texels, mipLevelCount, rect, texture->texture()); in onWritePixels()
200 SkIRect rect, in onTransferPixelsTo()
211 SkIRect rect, in onTransferPixelsFrom()
357 int mipLevelCount, const SkIRect& rect, in uploadTextureData()
359 uint32_t x = rect.x(); in uploadTextureData()
360 uint32_t y = rect.y(); in uploadTextureData()
361 uint32_t width = rect.width(); in uploadTextureData()
362 uint32_t height = rect.height(); in uploadTextureData()
621 SkIRect rect, in onReadPixels()
181 onWritePixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling) onWritePixels() argument
199 onTransferPixelsTo(GrTexture* texture, SkIRect rect, GrColorType textureColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t bufferOffset, size_t rowBytes) onTransferPixelsTo() argument
210 onTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset) onTransferPixelsFrom() argument
356 uploadTextureData(GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, const SkIRect& rect, wgpu::Texture texture) uploadTextureData() argument
620 onReadPixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* buffer, size_t rowBytes) onReadPixels() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
H A Dhantro_v4l2.c687 struct v4l2_rect *rect = &sel->r; in vidioc_s_selection() local
707 if (rect->left != 0 || rect->top != 0 || in vidioc_s_selection()
708 round_up(rect->width, MB_DIM) != ctx->src_fmt.width || in vidioc_s_selection()
709 round_up(rect->height, MB_DIM) != ctx->src_fmt.height) { in vidioc_s_selection()
711 rect->left = 0; in vidioc_s_selection()
712 rect->top = 0; in vidioc_s_selection()
713 rect->width = ctx->src_fmt.width; in vidioc_s_selection()
714 rect->height = ctx->src_fmt.height; in vidioc_s_selection()
717 rect in vidioc_s_selection()
[all...]
/third_party/vk-gl-cts/modules/egl/
H A DteglSwapBuffersWithDamageTests.cpp103 ColoredRect rect; member
108 , rect (rect_) in DrawCommand()
192 const ColoredRect& coloredRect = frame.draws[drawNdx].rect; in render()
658 const ColoredRect rect (IVec2(0, frameNdx*frameDiff+rectNdx*rectHeight), IVec2(width, frameNdx*frameDiff+(rectNdx+1)*rectHeight), color); in generateFrameSequence()
659 const DrawCommand drawCommand (frameDrawType[rectNdx], rect); in generateFrameSequence()
673 const ColoredRect& rect = frame.draws[drawNdx].rect; in getDamageRegion() local
674 damageRegion.push_back(rect.bottomLeft.x()); in getDamageRegion()
675 damageRegion.push_back(rect.bottomLeft.y()); in getDamageRegion()
676 damageRegion.push_back(rect in getDamageRegion()
[all...]
/third_party/skia/tools/debugger/
H A DDebugCanvas.cpp99 // circumvent this we create a wide open clip here (an empty clip rect in DebugCanvas()
102 // rounded out. The following code creates a nearly maximal rect that will in DebugCanvas()
363 void DebugCanvas::onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle) {
364 this->addDrawCommand(new ClipRectCommand(rect, op, kSoft_ClipEdgeStyle == edgeStyle));
396 void DebugCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) {
406 fnextDrawPictureDirtyRect = rect.roundOut();
418 fAndroidClip = rect;
420 this->addDrawCommand(new DrawAnnotationCommand(rect, key, sk_ref_sp(value)));
514 void DebugCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) {
516 addDrawCommand(new DrawRectCommand(rect, pain
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
H A DNativeWindow9.cpp21 bool NativeWindow9::getClientRect(LPRECT rect) const in getClientRect()
23 return GetClientRect(getNativeWindow(), rect) == TRUE; in getClientRect()

Completed in 20 milliseconds

1...<<11121314151617181920>>...46