Home
last modified time | relevance | path

Searched refs:verbs (Results 1 - 25 of 27) sorted by relevance

12

/third_party/skia/docs/examples/
H A DPath_getVerbs.cpp7 auto debugster = [](const char* prefix, const SkPath& path, uint8_t* verbs, int max) -> void { in REG_FIDDLE()
8 int count = path.getVerbs(verbs, max); in REG_FIDDLE()
11 for (int i = 0; i < std::min(count, max) && verbs; ++i) { in REG_FIDDLE()
12 SkDebugf("%s ", verbStr[verbs[i]]); in REG_FIDDLE()
19 uint8_t verbs[3]; in REG_FIDDLE() local
20 debugster("no verbs", path, nullptr, 0); in REG_FIDDLE()
21 debugster("zero max", path, verbs, 0); in REG_FIDDLE()
22 debugster("too small", path, verbs, 2); in REG_FIDDLE()
23 debugster("just right", path, verbs, path.countVerbs()); in REG_FIDDLE()
H A DPath_Verb.cpp13 uint8_t verbs[7]; in REG_FIDDLE() local
14 int count = path.getVerbs(verbs, (int) SK_ARRAY_COUNT(verbs)); in REG_FIDDLE()
18 SkDebugf("k%s_Verb ", verbStr[verbs[i]]); in REG_FIDDLE()
H A Dcount_verbs.cpp38 const char* verbs[6] = {"Move", "Line", "Quad", "Conic", "Cubic", "Close"}; in REG_FIDDLE() local
43 canvas->drawString(SkStringPrintf("%-5s %3d", verbs[i], counts[i]), pt.fX, pt.fY, font, in REG_FIDDLE()
/third_party/skia/src/utils/
H A DSkCustomTypeface.cpp262 std::vector<PVerb> verbs; in compress_write() local
266 case SkPathVerb::kMove: verbs.push_back(kMove); pCount += 1; break; in compress_write()
267 case SkPathVerb::kQuad: verbs.push_back(kCurve); pCount += 2; break; in compress_write()
268 case SkPathVerb::kLine: verbs.push_back(kLine); pCount += 1; break; in compress_write()
269 case SkPathVerb::kClose: verbs.push_back(kClose); break; in compress_write()
273 int vCount = verbs.size(); in compress_write()
279 stream->write8((verbs[i+0]<<6) | (verbs[i+1]<<4) | (verbs[i+2]<<2) | verbs[ in compress_write()
[all...]
/third_party/skia/tools/fonts/
H A Dcreate_test_font.cpp125 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, in output_path_data()
132 *verbs->append() = (SkPath::Verb)verb; in output_path_data()
153 *verbs->append() = SkPath::kDone_Verb; in output_path_data()
199 SkTDArray<SkPath::Verb> verbs; in output_font() local
203 output_path_data(font, emSize, &ptsOut, &verbs, &charCodes, &widths); in output_font()
209 int verbCount = verbs.count(); in output_font()
212 SkPath::Verb verb = verbs[index]; in output_font()
124 output_path_data(const SkFont& font, int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, SkTDArray<unsigned>* charCodes, SkTDArray<SkScalar>* widths) output_path_data() argument
H A DTestTypeface.cpp57 void SkTestFont::init(const SkScalar* pts, const unsigned char* verbs) { in init() argument
62 while ((verb = (SkPath::Verb)*verbs++) != SkPath::kDone_Verb) { in init()
H A DTestTypeface.h52 void init(const SkScalar* pts, const unsigned char* verbs);
/third_party/skia/tests/
H A DSkPathRangeIterTest.cpp25 Verb verbs[] = { in DEF_TEST() local
55 for (Verb verb : verbs) { in DEF_TEST()
95 for (Verb verb : verbs) { in DEF_TEST()
H A DPathTest.cpp1776 path.lineTo(0, 0); // too many points/verbs in test_isLine()
2794 uint8_t verbs[32]; in test_zero_length_paths() local
2856 REPORTER_ASSERT(reporter, gZeroLengthTests[i].numResultVerbs == (size_t)p.getVerbs(verbs, SK_ARRAY_COUNT(verbs))); in test_zero_length_paths()
2858 REPORTER_ASSERT(reporter, gZeroLengthTests[i].resultVerbs[j] == verbs[j]); in test_zero_length_paths()
3673 // the path isn't "empty" in that it should have verbs and points. in test_rrect()
3991 uint8_t verbs[4]; in test_addPathMode() local
3992 int verbcount = p.getVerbs(verbs, 4); in test_addPathMode()
3994 REPORTER_ASSERT(reporter, verbs[0] == SkPath::kMove_Verb); in test_addPathMode()
3995 REPORTER_ASSERT(reporter, verbs[ in test_addPathMode()
4009 uint8_t verbs[7]; test_extendClosedPath() local
4548 SkPath::Verb verbs[] = {kMove, kLine, kLine, kLine, kLine, kLine, kLine, kLine, kClose, test_skbug_6947() local
4881 uint8_t verbs[6]; DEF_TEST() local
5035 const SkPath::Verb verbs[] = { DEF_TEST() local
[all...]
/third_party/skia/src/pathops/
H A DSkOpBuilder.cpp18 uint8_t* verbs = (uint8_t*) allocator.makeArrayDefault<uint8_t>(verbCount); in one_contour() local
19 (void) path.getVerbs(verbs, verbCount); in one_contour()
21 if (verbs[index] == SkPath::kMove_Verb) { in one_contour()
/third_party/skia/gm/
H A Daarectmodes.cpp42 char verbs[] = { in test4() local
50 for (size_t i = 0; i < sizeof(verbs); ++i) { in test4()
51 switch ((SkPath::Verb) verbs[i]) { in test4()
/third_party/skia/src/core/
H A DSkPathPriv.h60 auto verbs = path.fPathRef->verbsBegin(); in IsClosedSingleContour() local
62 switch (verbs[i]) { in IsClosedSingleContour()
85 auto verbs = path.fPathRef->verbsBegin(); in LeadingMoveToCount() local
87 if (verbs[i] != SkPath::Verb::kMove_Verb) { in LeadingMoveToCount()
91 return verbCount; // path is all move verbs in LeadingMoveToCount()
124 * Returns a C++11-iterable object that traverses a path's verbs in order. e.g:
148 * Iterates through a raw range of path verbs, points, and conics. All values are returned
156 * Iterable object for traversing verbs, points, and conic weights in a path:
H A DSkPath_serial.cpp227 const uint8_t* verbs = buffer.skipCount<uint8_t>(vbs); in readFromMemory_EQ4Or5() local
246 verbs += vbs - 1; in readFromMemory_EQ4Or5()
254 switch (*verbs) { in readFromMemory_EQ4Or5()
284 verbs += verbsStep; in readFromMemory_EQ4Or5()
H A DSkPath.cpp128 Stores the verbs and points as they are given to us, with exceptions:
237 // need the same structure (verbs, conicweights) and same point-count in isInterpolatable()
997 const uint8_t* verbs = fPathRef->verbsBegin(); in hasOnlyMoveTos() local
999 if (*verbs == kLine_Verb || in hasOnlyMoveTos()
1000 *verbs == kQuad_Verb || in hasOnlyMoveTos()
1001 *verbs == kConic_Verb || in hasOnlyMoveTos()
1002 *verbs == kCubic_Verb) { in hasOnlyMoveTos()
1005 ++verbs; in hasOnlyMoveTos()
1454 const uint8_t* verbs = path.fPathRef->verbsEnd(); in reversePathTo() local
1460 while (verbs > verbsBegi in reversePathTo()
1498 const uint8_t* verbs = src->fPathRef->verbsEnd(); reverseAddPath() local
1715 const uint8_t* verbs = fVerbs; isClosedContour() local
2282 auto verbs = fPathRef->verbsEnd() - 1; computeConvexity() local
2409 const uint8_t* verbs = fCurrVerb; next() local
[all...]
H A DSkPathBuilder.cpp819 const uint8_t* verbs = src.fPathRef->verbsEnd(); in privateReverseAddPath() local
825 while (verbs > verbsBegin) { in privateReverseAddPath()
826 uint8_t v = *--verbs; in privateReverseAddPath()
/third_party/skia/include/private/
H A DSkPathRef.h41 // These are computed from a stream of verbs
47 SkPathVerbAnalysis sk_path_analyze_verbs(const uint8_t verbs[], int count);
51 * Holds the path verbs and points. It is versioned by a generation ID. None of its public methods
52 * modify the contents. To modify or append to the verbs/points wrap the SkPathRef in an
58 * The points and verbs are stored in a single allocation. The points are at the begining of the
59 * allocation while the verbs are stored at end of the allocation, in reverse order. Thus the points
60 * and verbs both grow into the middle of the allocation until the meet. To access verb i in the
61 * verb array use ref.verbs()[~i] (because verbs() returns a pointer just beyond the first
67 SkPathRef(SkTDArray<SkPoint> points, SkTDArray<uint8_t> verbs, SkTDArra argument
[all...]
/third_party/skia/samplecode/
H A DSampleSimpleStroker.cpp78 const std::vector<uint8_t>& verbs() const { return fVerbs; } in verbs() function in __anon18654::PathRecorder
307 const std::vector<uint8_t>& verbs = path.verbs(); in appendPathReversed() local
311 auto verb = static_cast<SkPath::Verb>(verbs[i]); in appendPathReversed()
H A DSampleQuadStroker.cpp352 const uint8_t* verbs = SkPathPriv::VerbData(path); in draw_t_divs() local
353 if (path.countVerbs() < 2 || SkPath::kMove_Verb != verbs[0]) { in draw_t_divs()
357 auto verb = static_cast<SkPath::Verb>(verbs[1]); in draw_t_divs()
H A DSampleVariableWidthStroker.cpp852 std::vector<uint8_t> verbs;
854 verbs.resize(numVerbs);
856 path.getVerbs(verbs.data(), numVerbs);
860 auto verb = static_cast<SkPath::Verb>(verbs[i]);
/third_party/skia/modules/canvaskit/
H A Dinterface.js60 CanvasKit.Path.MakeFromVerbsPointsWeights = function(verbs, pts, weights) {
61 var verbsPtr = copy1dArray(verbs, 'HEAPU8');
66 verbsPtr, verbs.length, pointsPtr, pts.length, weightsPtr, numWeights);
67 freeArraysThatAreNotMallocedByUsers(verbsPtr, verbs);
156 CanvasKit.Path.prototype.addVerbsPointsWeights = function(verbs, points, weights) {
157 var verbsPtr = copy1dArray(verbs, 'HEAPU8');
161 this._addVerbsPointsWeights(verbsPtr, verbs.length, pointsPtr, points.length,
163 freeArraysThatAreNotMallocedByUsers(verbsPtr, verbs);
/third_party/skia/include/core/
H A DSkPath.h27 SkPath contain geometry. SkPath may be empty, or contain one or more verbs that
29 and may be followed by additional verbs that add lines or curves.
49 * The points and weights arrays are read in order, based on the sequence of verbs.
58 * If an illegal sequence of verbs is encountered, or the specified number of points
59 * or weights is not sufficient given the verbs, an empty Path is returned.
61 * A legal sequence of verbs consists of any number of Contours. A contour always begins
95 /** Constructs an empty SkPath. By default, SkPath has no verbs, no SkPoint, and no weights.
162 /** Returns true if SkPath contain equal verbs and equal weights.
165 conicTo() may add different verbs depending on conic weight, so it is not
436 /** Returns the number of verbs
1535 RangeIter(const uint8_t* verbs, const SkPoint* points, const SkScalar* weights) RangeIter() argument
[all...]
/third_party/pulseaudio/src/modules/alsa/
H A Dalsa-ucm.h33 /** For devices: List of verbs, devices or modifiers available */
259 PA_LLIST_HEAD(pa_alsa_ucm_verb, verbs);
H A Dalsa-ucm.c805 /* get a list of all UCM verbs (profiles) for this card */ in pa_alsa_ucm_query_profiles()
824 PA_LLIST_PREPEND(pa_alsa_ucm_verb, ucm->verbs, verb); in pa_alsa_ucm_query_profiles()
827 if (!ucm->verbs) { in pa_alsa_ucm_query_profiles()
1400 PA_LLIST_FOREACH(verb, ucm->verbs) { in pa_alsa_ucm_set_profile()
1846 /* Search the referenced device from all verbs. If there are in ucm_create_profile()
1847 * multiple verbs that have a device with this name, we add the in ucm_create_profile()
1849 PA_LLIST_FOREACH(verb2, ucm->verbs) { in ucm_create_profile()
2076 PA_LLIST_FOREACH(verb, ucm->verbs) { in pa_alsa_ucm_add_profile_set()
2161 PA_LLIST_FOREACH_SAFE(vi, vn, ucm->verbs) { in pa_alsa_ucm_free()
2162 PA_LLIST_REMOVE(pa_alsa_ucm_verb, ucm->verbs, v in pa_alsa_ucm_free()
[all...]
/third_party/skia/modules/pathkit/tests/
H A Dpathops.spec.js53 return `Different amount of verbs. Expected had ${eCmds.length}, Actual had ${aCmds.length}`;
/third_party/pcre2/pcre2/src/
H A Dpcre2_compile.c596 /* Table of special "verbs" like (*PRUNE). This is a short table, so it is
619 static const verbitem verbs[] = { variable
631 static const int verbcount = sizeof(verbs)/sizeof(verbitem);
3921 if (namelen == verbs[i].len && in parse_regex()
3924 vn += verbs[i].len + 1; in parse_regex()
3941 if (verbs[i].has_arg > 0 && *ptr != CHAR_COLON) in parse_regex()
3951 okquantifier = (verbs[i].meta == META_ACCEPT); in parse_regex()
3966 if (verbs[i].has_arg < 0) in parse_regex()
3968 add_after_mark = verbs[i].meta; in parse_regex()
3972 /* The remaining verbs wit in parse_regex()
[all...]

Completed in 38 milliseconds

12