Home
last modified time | relevance | path

Searched refs:shape (Results 76 - 100 of 282) sorted by relevance

12345678910>>...12

/third_party/skia/src/gpu/ops/
H A DFillRRectOp.cpp213 const GrShape& shape, in clipToShape()
218 if ((shape.isRect() || shape.isRRect()) && in clipToShape()
221 // The clip shape is a round rect. Attempt to map it to a round rect in "viewMatrix" space. in clipToShape()
224 if (shape.isRect()) { in clipToShape()
225 clipRRect.setRect(shape.rect()); in clipToShape()
227 clipRRect = shape.rrect(); in clipToShape()
250 if (shape.isRect()) { in clipToShape()
251 clipRRect.setRect(clipToView.mapRect(shape.rect())); in clipToShape()
253 if (!shape in clipToShape()
210 clipToShape(skgpu::v1::SurfaceDrawContext* sdc, SkClipOp clipOp, const SkMatrix& clipMatrix, const GrShape& shape, GrAA aa) clipToShape() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_button_ffi.cpp141 void FfiOHOSAceFrameworkButtonSetType(int32_t shape) in FfiOHOSAceFrameworkButtonSetType() argument
143 if (!Utils::CheckParamsValid(shape, BUTTON_TYPES.size())) { in FfiOHOSAceFrameworkButtonSetType()
147 ButtonModel::GetInstance()->SetType(static_cast<int>(BUTTON_TYPES[shape])); in FfiOHOSAceFrameworkButtonSetType()
/third_party/skia/src/gpu/geometry/
H A DGrShape.h35 * (such as contains()) from the underlying shape types.
39 * the shape's type (e.g. rect, rrect, or oval).
41 * Regarding GrShape's empty shape:
57 // The direction and start index used when a shape does not have a representable winding,
72 GrShape(const GrShape& shape) { *this = shape; } in GrShape() argument
78 GrShape& operator=(const GrShape& shape);
80 // These type queries reflect the shape type provided when assigned, it does not incorporate
93 // Report the shape type, winding direction, start index, and invertedness as a value suitable
97 // Whether or not the shape i
[all...]
/third_party/skia/gm/
H A Drecordopts.cpp109 sk_sp<SkPicture> shape; in draw_svg_opacity_and_filter_layer_sequence() local
117 shape = recorder.finishRecordingAsPicture(); in draw_svg_opacity_and_filter_layer_sequence()
126 drawPaint.setImageFilter(SkImageFilters::Picture(shape)); in draw_svg_opacity_and_filter_layer_sequence()
H A Dnested.cpp56 static void AddShape(SkPathBuilder* b, const SkRect& rect, Shapes shape, SkPathDirection dir) { in AddShape() argument
57 switch (shape) { in AddShape()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_canvas.cpp196 bool SkiaCanvas::AddSdfPara(SkRuntimeShaderBuilder& builder, const SDFShapeBase& shape) in AddSdfPara() argument
198 std::vector<float> para = shape.GetPara(); in AddSdfPara()
199 std::vector<float> transPara = shape.GetTransPara(); in AddSdfPara()
220 std::vector<float> color = shape.GetColorPara(); in AddSdfPara()
231 builder.uniform("sdfsize") = shape.GetSize(); in AddSdfPara()
232 builder.uniform("filltype") = shape.GetFillType(); in AddSdfPara()
233 builder.uniform("translatex") = shape.GetTranslateX(); in AddSdfPara()
234 builder.uniform("translatey") = shape.GetTranslateY(); in AddSdfPara()
238 void SkiaCanvas::DrawSdf(const SDFShapeBase& shape) in DrawSdf() argument
240 std::string shaderString = shape in DrawSdf()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DArabicShaping.java38 * Unicode that are rendered as letters with a specific shape
88 public int shape(char[] source, int sourceStart, int sourceLength, in shape() method in ArabicShaping
145 public void shape(char[] source, int start, int length) throws ArabicShapingException { in shape() method in ArabicShaping
147 throw new ArabicShapingException("Cannot shape in place with length option resize."); in shape()
149 shape(source, start, length, source, start, length); in shape()
160 public String shape(String text) throws ArabicShapingException { in shape() method in ArabicShaping
168 int len = shape(src, 0, src.length, dest, 0, dest.length); in shape()
324 * TAIL (i.e. 0xFE73) or the old unofficial Unicode TAIL code point (i.e. 0x200B) and de-shape the
481 * the isolated forms rather than to their correct shape.
622 case LETTERS_SHAPE: buf.append(", shape letter in toString()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DArabicShaping.java39 * Unicode that are rendered as letters with a specific shape
88 public int shape(char[] source, int sourceStart, int sourceLength, in shape() method in ArabicShaping
144 public void shape(char[] source, int start, int length) throws ArabicShapingException { in shape() method in ArabicShaping
146 throw new ArabicShapingException("Cannot shape in place with length option resize."); in shape()
148 shape(source, start, length, source, start, length); in shape()
158 public String shape(String text) throws ArabicShapingException { in shape() method in ArabicShaping
166 int len = shape(src, 0, src.length, dest, 0, dest.length); in shape()
310 * TAIL (i.e. 0xFE73) or the old unofficial Unicode TAIL code point (i.e. 0x200B) and de-shape the
447 * the isolated forms rather than to their correct shape.
574 case LETTERS_SHAPE: buf.append(", shape letter in toString()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_form.cpp70 JSRef<JSVal> shape = obj->GetProperty("shape"); in Create() local
101 if (!shape->IsNull() && !shape->IsEmpty()) { in Create()
102 formInfo.shape = shape->ToNumber<int32_t>(); in Create()
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_median_filter.c163 generate_offsets(enum vl_median_filter_shape shape, unsigned size, in generate_offsets() argument
176 switch(shape) { in generate_offsets()
200 switch(shape) { in generate_offsets()
246 enum vl_median_filter_shape shape) in vl_median_filter_init()
312 generate_offsets(shape, size, &offsets, &num_offsets); in vl_median_filter_init()
244 vl_median_filter_init(struct vl_median_filter *filter, struct pipe_context *pipe, unsigned width, unsigned height, unsigned size, enum vl_median_filter_shape shape) vl_median_filter_init() argument
H A Dvl_median_filter.h59 enum vl_median_filter_shape shape);
/third_party/skia/experimental/sktext/tests/
H A DSelectableText.cpp104 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST()
152 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST()
194 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST()
235 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST()
276 auto shapedText = fontResolvedText->shape(&unicodeText, TextDirection::kLtr); in UNIX_ONLY_TEST()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dmodel_view_impl.cpp90 void ModelViewImpl::AddGeometry(const RefPtr<OHOS::Render3D::SVGeometry>& shape) in AddGeometry() argument
92 GET_COMPONENT_OR_RETURN()->AddGeometry(shape); in AddGeometry()
/third_party/skia/tests/
H A DGrStyledShapeTest.cpp40 static bool make_key(Key* key, const GrStyledShape& shape) { in make_key() argument
41 int size = shape.unstyledKeySize(); in make_key()
48 shape.writeUnstyledKey(key->begin()); in make_key()
98 static bool can_interchange_winding_and_even_odd_fill(const GrStyledShape& shape) { in can_interchange_winding_and_even_odd_fill() argument
100 shape.asPath(&path); in can_interchange_winding_and_even_odd_fill()
101 if (shape.style().hasNonDashPathEffect()) { in can_interchange_winding_and_even_odd_fill()
104 const SkStrokeRec::Style strokeRecStyle = shape.style().strokeRec().getStyle(); in can_interchange_winding_and_even_odd_fill()
107 (shape.style().isSimpleFill() && path.isConvex()); in can_interchange_winding_and_even_odd_fill()
116 // for the shape without the path effect. If *both* have path effects then they should have both in check_equivalence()
249 // empty). If we started with a simple shape o in check_original_path_ids()
280 test_inversions(skiatest::Reporter* r, const GrStyledShape& shape, const Key& shapeKey) test_inversions() argument
537 TestCase(const GrStyledShape& shape, skiatest::Reporter* r, SkScalar scale = SK_Scalar1) TestCase() argument
570 CheckBounds(skiatest::Reporter* r, const GrStyledShape& shape, const SkRect& bounds) CheckBounds() argument
1030 GrStyledShape shape = geo.makeShape(hairline); test_stroke_cap() local
1044 shape_known_not_to_have_joins(const GrStyledShape& shape) shape_known_not_to_have_joins() argument
1052 GrStyledShape shape = geo.makeShape(hairline); test_stroke_join() local
1080 GrStyledShape shape = geo.makeShape(hairline); test_miter_limit() local
[all...]
H A DShaperTest.cpp73 shaper->shape((const char*)data->data(), data->size(), font, true, kWidth, &rh); in shaper_test()
80 shaper->shape((const char*)data->data(), data->size(), in shaper_test()
/third_party/python/Lib/
H A Dturtle.py137 'setundobuffer', 'setx', 'sety', 'shape', 'shapesize', 'shapetransform', 'shearfactor', 'showturtle',
160 "shape": "classic",
891 raise TurtleGraphicsError("There is no shape type %s" % type_)
895 """Add component to a shape of type compound.
1108 def register_shape(self, name, shape=None):
1109 """Adds a turtle shape to TurtleScreen's shapelist.
1112 (1) name is the name of a gif-file and shape is None.
1113 Installs the corresponding image shape.
1116 (2) name is an arbitrary string and shape is a tuple
1118 polygon shape
2754 def shape(self, name=None): global() member in RawTurtle
[all...]
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dneural_network_core.cpp883 NNRT_API OH_NN_ReturnCode OH_NNTensorDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength) in OH_NNTensorDesc_SetShape() argument
889 if (shape == nullptr) { in OH_NNTensorDesc_SetShape()
890 LOGE("OH_NNTensorDesc_SetShape failed, shape is nullptr."); in OH_NNTensorDesc_SetShape()
898 return tensorDescImpl->SetShape(shape, shapeLength); in OH_NNTensorDesc_SetShape()
902 int32_t **shape, in OH_NNTensorDesc_GetShape()
909 if (shape == nullptr) { in OH_NNTensorDesc_GetShape()
910 LOGE("OH_NNTensorDesc_GetShape failed, shape is nullptr."); in OH_NNTensorDesc_GetShape()
913 if (*shape != nullptr) { in OH_NNTensorDesc_GetShape()
914 LOGE("OH_NNTensorDesc_GetShape failed, *shape is not nullptr."); in OH_NNTensorDesc_GetShape()
923 return tensorDescImpl->GetShape(shape, shapeLengt in OH_NNTensorDesc_GetShape()
901 OH_NNTensorDesc_GetShape(const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength) OH_NNTensorDesc_GetShape() argument
1459 OH_NNExecutor_GetOutputShape(OH_NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength) OH_NNExecutor_GetOutputShape() argument
[all...]
/third_party/skia/src/pdf/
H A DSkPDFDevice.cpp252 SkPath* shape = &fShape; in ~ScopedContentEntry() local
253 if (shape->isEmpty()) { in ~ScopedContentEntry()
254 shape = nullptr; in ~ScopedContentEntry()
256 fDevice->finishContentEntry(fClipStack, fBlendMode, fDstFormXObject, shape); in ~ScopedContentEntry()
263 /* Returns true when we explicitly need the shape of the drawing. */
281 /* Returns true unless we only need the shape of the drawing. */
289 /* If the shape is different than the alpha component of the content, then
290 * setShape should be called with the shape. In particular, images and
291 * devices have rectangular shape.
293 void setShape(const SkPath& shape) { in setShape() argument
1280 finishContentEntry(const SkClipStack* clipStack, SkBlendMode blendMode, SkPDFIndirectReference dst, SkPath* shape) finishContentEntry() argument
1651 SkPath shape = SkPath::Rect(SkRect::Make(subset)).makeTransform(matrix); internalDrawImageRect() local
1712 SkPath shape = SkPath::Rect(SkRect::Make(device->imageInfo().dimensions())); drawDevice() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Dscene_viewer_component.h181 void AddGeometry(const RefPtr<OHOS::Render3D::SVGeometry>& shape) in AddGeometry() argument
183 shapes_.push_back(shape); in AddGeometry()
/foundation/arkui/ace_engine/test/unittest/core/pattern/particle/
H A Dparticle_test_ng.cpp155 disTwo.shape = static_cast<ParticleDisturbanceShapeType>(3); // 3 is not a valid ParticleDisturbanceShapeType. in HWTEST_F()
156 disThree.shape = ParticleDisturbanceShapeType::ELLIPSE; in HWTEST_F()
/third_party/python/Include/cpython/
H A Dabstract.h211 const Py_ssize_t *shape);
213 const Py_ssize_t *shape);
/third_party/python/Lib/turtledemo/
H A Dpenrose.py99 shape("kite")
102 shape("dart")
H A Dpaint.py39 shape("circle")
/third_party/skia/experimental/graphite/src/geom/
H A DShape.h35 Shape(const Shape& shape) { *this = shape; } in Shape() argument
84 // True if the given bounding box is completely inside the shape, if it's conservatively treated
85 // as a filled, closed shape.
89 // True if the underlying geometry represents a closed shape, without the need for an
93 // True if the underlying shape is known to be convex, assuming no other styles. If 'simpleFill'
97 // The bounding box of the shape.
100 // Convert the shape into a path that describes the same geometry.
103 // Access the actual geometric description of the shape. May only access the appropriate type
/third_party/skia/modules/skparagraph/src/
H A DOneLineShaper.h27 bool shape();
58 bool iterateThroughShapingRegions(const ShapeVisitor& shape);

Completed in 20 milliseconds

12345678910>>...12