Home
last modified time | relevance | path

Searched refs:rect (Results 276 - 300 of 852) sorted by relevance

1...<<11121314151617181920>>...35

/drivers/peripheral/display/hal/default_standard/src/display_layer_video/
H A Ddisplay_layer_video.cpp68 static int32_t SetLayerSize(uint32_t devId, uint32_t layerId, IRect *rect) in SetLayerSize() argument
71 DISPLAY_CHK_RETURN((rect == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("rect is nullptr")); in SetLayerSize()
72 g_layerService->SetLayerRect(devId, layerId, *rect); in SetLayerSize()
76 static int32_t SetLayerCrop(uint32_t devId, uint32_t layerId, IRect *rect) in SetLayerCrop() argument
/third_party/mesa3d/include/android_stub/android/
H A Dhardware_buffer.h52 #include <android/rect.h>
404 * If \a rect is not NULL, the caller promises to modify only data in
405 * the area specified by rect. If rect is NULL, the caller may modify
407 * of the specified rect is NOT modified by this call.
430 int32_t fence, const ARect* rect, void** outVirtualAddress) __INTRODUCED_IN(26);
460 int32_t fence, const ARect* rect, AHardwareBuffer_Planes* outPlanes) __INTRODUCED_IN(29);
535 int32_t fence, const ARect* rect, void** outVirtualAddress,
/third_party/skia/src/core/
H A DSkRasterClipStack.h53 void clipRect(const SkMatrix& ctm, const SkRect& rect, SkClipOp op, bool aa) { in clipRect() argument
54 this->writable_rc().op(rect, ctm, op, this->finalAA(aa)); in clipRect()
78 void replaceClip(const SkIRect& rect) { in replaceClip() argument
79 SkIRect devRect = rect; in replaceClip()
H A DSkClipStackDevice.cpp30 void SkClipStackDevice::onClipRect(const SkRect& rect, SkClipOp op, bool aa) { in onClipRect() argument
31 fClipStack.clipRect(rect, this->localToDevice(), op, aa); in onClipRect()
55 void SkClipStackDevice::onReplaceClip(const SkIRect& rect) { in onReplaceClip() argument
56 SkRect deviceRect = SkMatrixPriv::MapRect(this->globalToDevice(), SkRect::Make(rect)); in onReplaceClip()
H A DSkDevice.h162 void clipRect(const SkRect& rect, SkClipOp op, bool aa) { in clipRect() argument
163 this->onClipRect(rect, op, aa); in clipRect()
181 void replaceClip(const SkIRect& rect) { in replaceClip() argument
182 this->onReplaceClip(rect); in replaceClip()
215 virtual void onClipRect(const SkRect& rect, SkClipOp, bool aa) {} in onClipRect() argument
220 virtual void onReplaceClip(const SkIRect& rect) {} in onReplaceClip() argument
290 virtual void drawEdgeAAQuad(const SkRect& rect, const SkPoint clip[4],
498 void onClipRect(const SkRect& rect, SkClipOp op, bool aa) override;
503 void onReplaceClip(const SkIRect& rect) override;
/third_party/skia/tests/
H A DCanvasStateHelpers.cpp31 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); in complex_layers_draw() local
32 canvas->drawRect(rect, bluePaint); in complex_layers_draw()
33 canvas->translate(0, rect.height() + spacer); in complex_layers_draw()
34 canvas->drawRect(rect, bluePaint); in complex_layers_draw()
H A DClipStackTest.cpp40 // Build up a clip stack with a path, an empty clip, and a rect. in test_assign_and_comparison()
90 // Test that version constructed with rect-path rather than a rect is still considered equal. in test_assign_and_comparison()
373 SkRect rect = SkRect::MakeLTRB(0, 0, 10, 10);
376 path.addRect(rect);
385 REPORTER_ASSERT(reporter, bounds == rect);
389 SkRect rect = SkRect::MakeWH(100, 100);
396 // Adding a new rect with the replace operator should not increase
401 stack.replaceClip(rect, false);
403 stack.replaceClip(rect, fals
470 SkRect rect = SkRect::MakeWH(100, 100); global() local
[all...]
/third_party/skia/gm/
H A Daarecteffect.cpp78 SkRect rect = r.makeOffset(x, y); variable
80 auto fp = GrFragmentProcessor::Rect(/*inputFP=*/nullptr, edgeType, rect);
87 auto drawRect = rect.makeOutset(kOutset, kOutset);
91 x += SkScalarCeilToScalar(rect.width() + kDX);
94 // Draw rect without and with AA using normal API for reference
H A Dlocalmatrixshader.cpp87 auto rect = SkRect::Make(image->bounds()); in DEF_SIMPLE_GM() local
88 SkAssertResult(SkMatrix::Concat(inner, outer).mapRect(&rect)); in DEF_SIMPLE_GM()
96 canvas->drawRect(rect, p); in DEF_SIMPLE_GM()
97 canvas->drawRect(rect, border); in DEF_SIMPLE_GM()
99 canvas->translate(0, rect.height() * 1.5f); in DEF_SIMPLE_GM()
107 canvas->translate(0, rect.height() * SK_ARRAY_COUNT(gFactories) * 1.5f); in DEF_SIMPLE_GM()
111 canvas->translate(rect.width() * 1.5f, 0); in DEF_SIMPLE_GM()
H A Dcircularclips.cpp51 SkRect rect = SkRect::MakeLTRB(fX1 - fR, fY - fR, fX2 + fR, fY + fR); variable
63 canvas->drawRect(rect, fillPaint);
82 canvas->drawRect(rect, fillPaint);
/third_party/skia/bench/
H A DImageFilterDAGBench.cpp29 const SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); variable
48 canvas->drawRect(rect, paint);
126 SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); variable
130 canvas->drawRect(rect, paint);
/drivers/peripheral/display/hdi_service/device/include/interfaces/
H A Didisplay_device.h58 virtual int32_t SetDisplayClientCrop(uint32_t devId, const IRect *rect) = 0;
59 virtual int32_t SetDisplayClientDestRect(uint32_t devId, const IRect &rect) = 0;
61 virtual int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, const IRect &rect) = 0;
79 virtual int32_t SetLayerCrop(uint32_t devId, uint32_t layerId, const IRect *rect) = 0;
97 virtual int32_t SetLayerSize(uint32_t devId, uint32_t layerId, const IRect *rect) = 0;
98 virtual int32_t GetLayerSize(uint32_t devId, uint32_t layerId, IRect &rect) = 0;
104 virtual int32_t SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, const IRect &rect) = 0;
/drivers/peripheral/display/hdi_service/device/include/proxy/
H A Ddisplay_device_proxy.h52 int32_t SetDisplayClientCrop(uint32_t devId, const IRect *rect) override;
53 int32_t SetDisplayClientDestRect(uint32_t devId, const IRect &rect) override;
55 int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, const IRect &rect) override;
73 int32_t SetLayerCrop(uint32_t devId, uint32_t layerId, const IRect *rect) override;
91 int32_t SetLayerSize(uint32_t devId, uint32_t layerId, const IRect *rect) override;
92 int32_t GetLayerSize(uint32_t devId, uint32_t layerId, IRect &rect) override;
98 int32_t SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, const IRect &rect) override;
/drivers/peripheral/display/hdi_service/device/include/server/
H A Ddisplay_device_service.h48 int32_t SetDisplayClientCrop(uint32_t devId, const IRect *rect) override;
49 int32_t SetDisplayClientDestRect(uint32_t devId, const IRect &rect) override;
51 int32_t SetDisplayClientDamage(uint32_t devId, uint32_t num, const IRect &rect) override;
69 int32_t SetLayerCrop(uint32_t devId, uint32_t layerId, const IRect *rect) override;
87 int32_t SetLayerSize(uint32_t devId, uint32_t layerId, const IRect *rect) override;
88 int32_t GetLayerSize(uint32_t devId, uint32_t layerId, IRect &rect) override;
94 int32_t SetLayerVisibleRegion(uint32_t devId, uint32_t layerId, uint32_t num, const IRect &rect) override;
/third_party/skia/src/svg/
H A DSkSVGDevice.cpp618 void SkSVGDevice::AutoElement::addRectAttributes(const SkRect& rect) {
620 if (rect.x() != 0) {
621 this->addAttribute("x", rect.x());
623 if (rect.y() != 0) {
624 this->addAttribute("y", rect.y());
627 this->addAttribute("width", rect.width());
628 this->addAttribute("height", rect.height());
754 AutoElement rect("rect", fWriter);
757 AutoElement rect("rec
[all...]
/third_party/skia/docs/examples/
H A DRect_intersects_3.cpp7 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 DRect_intersects_2.cpp7 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 DRect_dump.cpp7 SkRect rect = {20, 30, 40, 50}; in REG_FIDDLE() local
9 rect.dump(dumpAsHex); in REG_FIDDLE()
/third_party/skia/src/gpu/vk/
H A DGrVkGpu.cpp498 SkIRect rect, in onWritePixels()
535 rect, in onWritePixels()
542 rect, in onWritePixels()
563 SkIRect rect, in onTransferPixelsTo()
601 SkASSERT(SkIRect::MakeSize(texture->dimensions()).contains(rect)); in onTransferPixelsTo()
610 region.imageOffset = { rect.left(), rect.top(), 0 }; in onTransferPixelsTo()
611 region.imageExtent = { (uint32_t)rect.width(), (uint32_t)rect.height(), 1 }; in onTransferPixelsTo()
636 SkIRect rect, in onTransferPixelsFrom()
497 onWritePixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling) onWritePixels() argument
562 onTransferPixelsTo(GrTexture* texture, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t bufferOffset, size_t rowBytes) onTransferPixelsTo() argument
635 onTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset) onTransferPixelsFrom() argument
761 uploadTexDataLinear(GrVkImage* texImage, SkIRect rect, GrColorType dataColorType, const void* data, size_t rowBytes) uploadTexDataLinear() argument
921 uploadTexDataOptimal(GrVkImage* texImage, SkIRect rect, GrColorType dataColorType, const GrMipLevel texels[], int mipLevelCount) uploadTexDataOptimal() argument
2527 onReadPixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* buffer, size_t rowBytes) onReadPixels() argument
[all...]
/third_party/skia/samplecode/
H A DSampleImageFilterDAG.cpp44 // The source content rect (this is the same for all nodes, but is stored here for convenience)
53 // Cached input bounds using the local draw bounds (e.g. saveLayer with a bounds rect, or
102 // As a proxy for what the base device had, use the content rect mapped to device space in computeInputBounds()
120 static FilterNode build_dag(const SkMatrix& ctm, const SkRect& rect, in build_dag() argument
123 skif::ParameterSpace<SkRect> content(rect); in build_dag()
124 skif::ParameterSpace<SkPoint> center({rect.centerX(), rect.centerY()}); in build_dag()
157 // Draw content-rect bounds in draw_node()
201 static float print_size(SkCanvas* canvas, const char* prefix, const SkIRect& rect, in print_size() argument
206 sz.appendf("%d x %d", rect in print_size()
285 draw_dag(SkCanvas* canvas, sk_sp<SkImageFilter> filter, const SkRect& rect, const SkISize& surfaceSize) draw_dag() argument
[all...]
/third_party/skia/src/pdf/
H A DSkPDFUtils.cpp104 void SkPDFUtils::AppendRectangle(const SkRect& rect, SkWStream* content) { in AppendRectangle() argument
106 SkScalar bottom = std::min(rect.fBottom, rect.fTop); in AppendRectangle()
108 SkPDFUtils::AppendScalar(rect.fLeft, content); in AppendRectangle()
112 SkPDFUtils::AppendScalar(rect.width(), content); in AppendRectangle()
114 SkPDFUtils::AppendScalar(rect.height(), content); in AppendRectangle()
130 SkRect rect; in EmitPath() local
133 if (path.isRect(&rect, &isClosed, &direction) && in EmitPath()
138 SkPDFUtils::AppendRectangle(rect, content); in EmitPath()
/third_party/vk-gl-cts/framework/platform/win32/
H A DtcuWin32EGLNativeDisplayFactory.cpp293 RECT rect; in readScreenPixels() local
306 TCU_CHECK(GetClientRect(m_window.getHandle(), &rect)); in readScreenPixels()
310 const int width = rect.right - rect.left; in readScreenPixels()
311 const int height = rect.bottom - rect.top; in readScreenPixels()
325 MapWindowPoints(m_window.getHandle(), DE_NULL, (LPPOINT)&rect, 2); in readScreenPixels()
332 TCU_CHECK(BitBlt(tmpDC, 0, 0, width, height, screenDC, rect.left, rect.top, SRCCOPY)); in readScreenPixels()
/third_party/skia/src/gpu/d3d/
H A DGrD3DGpu.cpp524 // The rect is already in device space so we pass in kTopLeft so no flip is done. in copySurfaceAsCopyTexture()
536 // The rect is already in device space so we pass in kTopLeft so no flip is done. in copySurfaceAsResolve()
572 SkIRect rect, in onReadPixels()
606 this->readOrTransferPixels(texResource, rect, transferBuffer, placedFootprint); in onReadPixels()
614 size_t tightRowBytes = bpp * rect.width(); in onReadPixels()
623 rect.height()); in onReadPixels()
631 SkIRect rect, in readOrTransferPixels()
642 srcBox.left = rect.left(); in readOrTransferPixels()
643 srcBox.top = rect.top(); in readOrTransferPixels()
644 srcBox.right = rect in readOrTransferPixels()
571 onReadPixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType dstColorType, void* buffer, size_t rowBytes) onReadPixels() argument
630 readOrTransferPixels(GrD3DTextureResource* texResource, SkIRect rect, sk_sp<GrGpuBuffer> transferBuffer, const D3D12_PLACED_SUBRESOURCE_FOOTPRINT& placedFootprint) readOrTransferPixels() argument
664 onWritePixels(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling) onWritePixels() argument
697 uploadToTexture(GrD3DTexture* tex, SkIRect rect, GrColorType colorType, const GrMipLevel* texels, int mipLevelCount) uploadToTexture() argument
792 onTransferPixelsTo(GrTexture* texture, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t bufferOffset, size_t rowBytes) onTransferPixelsTo() argument
860 onTransferPixelsFrom(GrSurface* surface, SkIRect rect, GrColorType surfaceColorType, GrColorType bufferColorType, sk_sp<GrGpuBuffer> transferBuffer, size_t offset) onTransferPixelsFrom() argument
[all...]
/third_party/cups-filters/filter/pdftopdf/
H A Dqpdf_pdftopdf.cc73 QPDFObjectHandle getRectAsBox(const PageRect &rect) // {{{ in getRectAsBox() argument
75 return makeBox(rect.left,rect.bottom,rect.right,rect.top); in getRectAsBox()
/third_party/skia/src/gpu/
H A DGrAuditTrail.cpp170 static void skrect_to_json(SkJSONWriter& writer, const char* name, const SkRect& rect) {
172 writer.appendFloat("Left", rect.fLeft);
173 writer.appendFloat("Right", rect.fRight);
174 writer.appendFloat("Top", rect.fTop);
175 writer.appendFloat("Bottom", rect.fBottom);

Completed in 17 milliseconds

1...<<11121314151617181920>>...35