Home
last modified time | relevance | path

Searched refs:rgn (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/skia/tests/
DRegionTest.cpp14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() argument
15 rgn->op(rect, SkRegion::kUnion_Op); in Union()
18 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) argument
19 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) argument
20 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) argument
74 SkRegion rgn; in test_fromchrome() local
75 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome()
76 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome()
77 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome()
118 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn() argument
[all …]
DAAClipTest.cpp71 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask() argument
74 if (rgn.isEmpty()) { in copyToMask()
81 mask->fBounds = rgn.getBounds(); in copyToMask()
96 SkRegion tmpRgn(rgn); in copyToMask()
97 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask()
133 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { in make_rand_rgn() argument
136 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); in make_rand_rgn()
140 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) { in operator ==() argument
143 copyToMask(rgn, &mask0); in operator ==()
152 static bool equalsAAClip(const SkRegion& rgn) { in equalsAAClip() argument
[all …]
/third_party/skia/src/core/
DSkRegion.cpp209 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument
212 return this->op(tmp, rgn, op); in op()
215 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument
218 return this->op(rgn, tmp, op); in op()
438 bool SkRegion::contains(const SkRegion& rgn) const { in contains()
440 SkDEBUGCODE(SkRegionPriv::Validate(rgn)); in contains()
442 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains()
448 if (rgn.isRect()) { in contains()
449 return this->contains(rgn.getBounds()); in contains()
456 return !Oper(rgn, *this, kDifference_Op, nullptr); in contains()
[all …]
DSkClipStackDevice.cpp46 void SkClipStackDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument
50 rgn.getBoundaryPath(&path); in onClipRegion()
76 void SkClipStackDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip()
82 rgn->setRect(bounds.round()); in onAsRgnClip()
87 *rgn = boundsRgn; in onAsRgnClip()
99 rgn->setRect(elem->getDeviceSpaceRect().round()); in onAsRgnClip()
101 rgn->op(tmpRgn, static_cast<SkRegion::Op>(elem->getOp())); in onAsRgnClip()
DSkRasterClip.cpp46 SkRasterClip::SkRasterClip(const SkRegion& rgn) : fBW(rgn) { in SkRasterClip() argument
118 bool SkRasterClip::op(const SkRegion& rgn, SkClipOp op) { in op() argument
122 (void)fBW.op(rgn, (SkRegion::Op) op); in op()
125 tmp.setRegion(rgn); in op()
DSkWriter32.h145 void writeRegion(const SkRegion& rgn) { in writeRegion() argument
146 size_t size = rgn.writeToMemory(nullptr); in writeRegion()
148 rgn.writeToMemory(this->reserve(size)); in writeRegion()
DSkBitmapDevice.cpp663 void SkBitmapDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument
666 const SkRegion* ptr = &rgn; in onClipRegion()
669 rgn.translate(-origin.fX, -origin.fY, &tmp); in onClipRegion()
693 void SkBitmapDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip()
696 rgn->setRect(rc.getBounds()); in onAsRgnClip()
698 *rgn = rc.bwRgn(); in onAsRgnClip()
DSkRasterClipStack.h73 void clipRegion(const SkRegion& rgn, SkClipOp op) { in clipRegion() argument
74 this->writable_rc().op(rgn, op); in clipRegion()
DSkRegionPriv.h26 static void VisitSpans(const SkRegion& rgn, const std::function<void(const SkIRect&)>&);
29 static void Validate(const SkRegion& rgn);
DSkAAClip.cpp1307 bool SkAAClip::setRegion(const SkRegion& rgn) { in setRegion() argument
1308 if (rgn.isEmpty()) { in setRegion()
1311 if (rgn.isRect()) { in setRegion()
1312 return this->setRect(rgn.getBounds()); in setRegion()
1316 const SkIRect& bounds = rgn.getBounds(); in setRegion()
1340 SkRegion::Iterator iter(rgn); in setRegion()
DSkCanvas.cpp1572 void SkCanvas::clipRegion(const SkRegion& rgn, SkClipOp op) { in clipRegion() argument
1574 this->onClipRegion(rgn, op); in clipRegion()
1577 void SkCanvas::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument
1579 this->topDevice()->clipRegion(rgn, op); in onClipRegion()
1597 void SkCanvas::temporary_internal_getRgnClip(SkRegion* rgn) { in temporary_internal_getRgnClip() argument
1598 rgn->setEmpty(); in temporary_internal_getRgnClip()
1601 device->onAsRgnClip(rgn); in temporary_internal_getRgnClip()
1604 rgn->translate(origin.x(), origin.y()); in temporary_internal_getRgnClip()
DSkDevice.h509 void onAsRgnClip(SkRegion* rgn) const override { in onAsRgnClip() argument
510 rgn->setRect(this->onDevClipBounds()); in onAsRgnClip()
DSkScan_Path.cpp675 SkRegion rgn(ir); in FillPath() local
676 FillPath(path, rgn, blitter); in FillPath()
/third_party/skia/include/core/
DSkRegion.h332 bool quickReject(const SkRegion& rgn) const { in quickReject() argument
333 return this->isEmpty() || rgn.isEmpty() || in quickReject()
334 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject()
393 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument
404 bool op(const SkIRect& rect, const SkRegion& rgn, Op op);
415 bool op(const SkRegion& rgn, const SkIRect& rect, Op op);
500 const SkRegion* rgn() const { return fRgn; } in rgn() function
/third_party/skia/gm/
Dclipdrawdraw.cpp58 SkRegion rgn({ 10, 10, 100, 100 }); variable
61 canvas->clipRegion(rgn);
67 canvas->clipRegion(rgn);
/third_party/skia/src/effects/
DSk2DPathEffect.cpp80 SkRegion rgn; in onFilterPath() local
81 rgn.setPath(tmp, SkRegion(ir)); in onFilterPath()
82 SkRegion::Iterator iter(rgn); in onFilterPath()
/third_party/skia/src/effects/imagefilters/
DSkAlphaThresholdImageFilter.cpp89 SkRegion rgn; in CreateProc() local
90 buffer.readRegion(&rgn); in CreateProc()
91 return SkImageFilters::AlphaThreshold(rgn, inner, outer, common.getInput(0), common.cropRect()); in CreateProc()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/
DvktDescriptorSetsIndexingTests.hpp333 …::ostream& s, const std::string& header, const tcu::PixelBufferAccess* pa, const deUint32& rgn = 4) in printImage() argument
339 for (deUint32 r = 0; r < rgn; ++r) in printImage()
341 for (deUint32 c = 0; c < rgn; ++c) in printImage()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/descriptor_indexing/
DvktDescriptorSetsIndexingTests.hpp333 …::ostream& s, const std::string& header, const tcu::PixelBufferAccess* pa, const deUint32& rgn = 4) in printImage() argument
339 for (deUint32 r = 0; r < rgn; ++r) in printImage()
341 for (deUint32 c = 0; c < rgn; ++c) in printImage()
/third_party/skia/docs/examples/
DRegion_Iterator_rgn.cpp13 auto b = iter.rgn()->getBounds(); in draw()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingPipelineFlagsTests.cpp446 …VkStridedDeviceAddressRegionKHR rgn = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(m_v… in createRaygenShaderBindingTable() local
449 return { de::SharedPtr<BufferWithMemory>(sbt.release()), rgn }; in createRaygenShaderBindingTable()
472 …VkStridedDeviceAddressRegionKHR rgn = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(m_v… in createMissShaderBindingTable() local
475 return { de::SharedPtr<BufferWithMemory>(sbt.release()), rgn }; in createMissShaderBindingTable()
481 VkStridedDeviceAddressRegionKHR rgn; in createHitShaderBindingTable() local
504 rgn = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(m_vkd, m_device, **buf, 0), in createHitShaderBindingTable()
507 return { de::SharedPtr<BufferWithMemory>(buf.release()), rgn }; in createHitShaderBindingTable()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/
DvktRayTracingPipelineFlagsTests.cpp446 …VkStridedDeviceAddressRegionKHR rgn = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(m_v… in createRaygenShaderBindingTable() local
449 return { de::SharedPtr<BufferWithMemory>(sbt.release()), rgn }; in createRaygenShaderBindingTable()
472 …VkStridedDeviceAddressRegionKHR rgn = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(m_v… in createMissShaderBindingTable() local
475 return { de::SharedPtr<BufferWithMemory>(sbt.release()), rgn }; in createMissShaderBindingTable()
481 VkStridedDeviceAddressRegionKHR rgn; in createHitShaderBindingTable() local
504 rgn = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(m_vkd, m_device, **buf, 0), in createHitShaderBindingTable()
507 return { de::SharedPtr<BufferWithMemory>(buf.release()), rgn }; in createHitShaderBindingTable()
/third_party/skia/third_party/externals/icu/source/data/lang/
Dhy.txt345 rgn{"ռոմանիոլերեն"}
Dmk.txt462 rgn{"ромањолски"}
/third_party/icu/icu4c/source/data/lang/
Dhy.txt378 rgn{"ռոմանիոլերեն"}

1234