Searched defs:verbs (Results 1 - 11 of 11) sorted by relevance

/external/skia/gm/
H A Daarectmodes.cpp30 char verbs[] = { local
38 for (size_t i = 0; i < sizeof(verbs); ++i) {
39 switch ((SkPath::Verb) verbs[i]) {
/external/skia/src/core/
H A DSkPathPriv.h63 auto verbs = path.fPathRef->verbs(); local
65 switch (verbs[~i]) { // verbs are stored backwards; we use [~i] to get the i'th verb
103 * Returns a C++11-iterable object that traverses a path's verbs in order. e.g:
113 void operator++() { --fVerb; } // verbs are laid out backwards in memory.
118 Iter begin() { return Iter{fPathRef->verbs() - 1}; }
119 Iter end() { return Iter{fPathRef->verbs() - fPathRef->countVerbs() - 1}; }
127 * Returns a pointer to the verb data. Note that the verbs are stored backwards in memory and
H A DSkPath.cpp119 Stores the verbs and points as they are given to us, with exceptions:
663 copy_verbs_reverse(dst, fPathRef->verbs(), count);
1182 const uint8_t* verbs = const_cast<const SkPathRef*>(fPathRef.get())->verbsMemBegin(); local
1184 if (*verbs == kLine_Verb ||
1185 *verbs == kQuad_Verb ||
1186 *verbs == kConic_Verb ||
1187 *verbs == kCubic_Verb) {
1190 ++verbs;
1578 const uint8_t* verbs = path.fPathRef->verbsMemBegin(); // points at the last verb
1579 if (!verbs) { // empt
1621 const uint8_t* verbs = src.fPathRef->verbsMemBegin(); // points at the last verb local
1819 const uint8_t* verbs = fVerbs; local
2552 const uint8_t* verbs = fCurrVerb; local
[all...]
/external/skia/src/pathops/
H A DSkOpBuilder.cpp18 uint8_t* verbs = (uint8_t*) allocator.makeArrayDefault<uint8_t>(verbCount); local
19 (void) path.getVerbs(verbs, verbCount);
21 if (verbs[index] == SkPath::kMove_Verb) {
H A DSkPathOpsDebug.cpp629 const char* verbs[] = { "", "line", "quad", "conic", "cubic" }; local
630 SkDebugf("%s: {{", verbs[verb]);
/external/skia/tools/
H A Dcreate_test_font.cpp131 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs,
144 *verbs->append() = verb;
165 *verbs->append() = SkPath::kDone_Verb;
225 SkTDArray<SkPath::Verb> verbs; local
229 output_path_data(paint, emSize, &ptsOut, &verbs, &charCodes, &widths);
239 int verbCount = verbs.count();
242 SkPath::Verb verb = verbs[index];
130 output_path_data(const SkPaint& paint, int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, SkTDArray<unsigned>* charCodes, SkTDArray<SkScalar>* widths) argument
/external/skia/include/private/
H A DSkPathRef.h25 * Holds the path verbs and points. It is versioned by a generation ID. None of its public methods
26 * modify the contents. To modify or append to the verbs/points wrap the SkPathRef in an
32 * The points and verbs are stored in a single allocation. The points are at the begining of the
33 * allocation while the verbs are stored at end of the allocation, in reverse order. Thus the points
34 * and verbs both grow into the middle of the allocation until the meet. To access verb i in the
35 * verb array use ref.verbs()[~i] (because verbs() returns a pointer just beyond the first
91 * Resets the path ref to a new verb and point count. The new verbs and points are
145 * Gets a path ref with no verbs or points.
240 * Rollsback a path ref to zero verbs an
254 const uint8_t* verbs() const { SkDEBUGCODE(this->validate();) return fVerbs; } function in class:final
[all...]
/external/skia/samplecode/
H A DSamplePathFuzz.cpp604 SkTDArray<uint8_t> verbs; local
605 verbs.setCount(verbCount);
606 SkDEBUGCODE(int getVerbResult = ) path.getVerbs(verbs.begin(), verbCount);
609 if (verbs[index] != SkPath::kMove_Verb) {
/external/pcre/dist2/src/
H A Dpcre2_compile.c376 /* Table of special "verbs" like (*PRUNE). This is a short table, so it is
399 static const verbitem verbs[] = { variable
411 static const int verbcount = sizeof(verbs)/sizeof(verbitem);
5880 /* Deal with various "verbs" that can be introduced by '*'. */
5942 if (namelen == verbs[i].len &&
5950 if (verbs[i].op == OP_ACCEPT)
5987 if (verbs[i].op < 0) /* Argument is mandatory */
5992 setverb = *code++ = verbs[i].op;
5997 if (verbs[i].op_arg < 0) /* Argument is forbidden */
6002 setverb = *code++ = verbs[
[all...]
/external/skia/tests/
H A DPathTest.cpp1725 path.lineTo(0, 0); // too many points/verbs
2560 // find where the counts and verbs are stored : from the impl in SkPathRef.cpp
2567 uint8_t* verbs = &buffer[28]; local
2589 // Check that we detect when the verbs indicate more or fewer pts/conics
2591 uint8_t save = verbs[0];
2593 verbs[0] = SkPath::kQuad_Verb;
2595 verbs[0] = save;
2597 save = verbs[1];
2599 verbs[1] = SkPath::kQuad_Verb;
2601 verbs[
2770 uint8_t verbs[32]; local
3928 uint8_t verbs[4]; local
3946 uint8_t verbs[7]; local
4585 uint8_t verbs[6]; local
4737 const SkPath::Verb verbs[] = { local
[all...]
/external/skia/tools/debugger/
H A DSkDrawCommand.cpp80 #define SKDEBUGCANVAS_ATTRIBUTE_VERBS "verbs"
600 Json::Value verbs(Json::arrayValue);
609 verbs.append(line);
618 verbs.append(quad);
628 verbs.append(cubic);
638 verbs.append(conic);
644 verbs.append(move);
648 verbs.append(Json::Value(SKDEBUGCANVAS_VERB_CLOSE));
654 result[SKDEBUGCANVAS_ATTRIBUTE_VERBS] = verbs;
1715 Json::Value verbs local
[all...]

Completed in 1225 milliseconds