/external/skqp/src/core/ |
H A D | SkPathPriv.h | 69 auto verbs = path.fPathRef->verbs(); local 71 switch (verbs[~i]) { // verbs are stored backwards; we use [~i] to get the i'th verb 109 * Returns a C++11-iterable object that traverses a path's verbs in order. e.g: 119 void operator++() { --fVerb; } // verbs are laid out backwards in memory. 124 Iter begin() { return Iter{fPathRef->verbs() - 1}; } 125 Iter end() { return Iter{fPathRef->verbs() - fPathRef->countVerbs() - 1}; } 133 * Returns a pointer to the verb data. Note that the verbs are stored backwards in memory and
|
H A D | SkPath.cpp | 122 Stores the verbs and points as they are given to us, with exceptions: 674 copy_verbs_reverse(dst, fPathRef->verbs(), count); 1189 const uint8_t* verbs = const_cast<const SkPathRef*>(fPathRef.get())->verbsMemBegin(); local 1191 if (*verbs == kLine_Verb || 1192 *verbs == kQuad_Verb || 1193 *verbs == kConic_Verb || 1194 *verbs == kCubic_Verb) { 1197 ++verbs; 1611 const uint8_t* verbs = path.fPathRef->verbsMemBegin(); // points at the last verb 1612 if (!verbs) { // empt 1654 const uint8_t* verbs = src.fPathRef->verbsMemBegin(); // points at the last verb local 1852 const uint8_t* verbs = fVerbs; local 2672 const uint8_t* verbs = fCurrVerb; local [all...] |
/external/skia/tools/lua/ |
H A D | bbh_filter.lua | 24 verbs = {}, 67 currentInfo.verbs[t.verb] = (currentInfo.verbs[t.verb] or 0) + 1 102 function calculate_weight(verbs) 104 for name, count in pairs(verbs) do 124 for verb,count in pairs(globalInfo[t.fileName].verbs) do 138 function(a, b) return calculate_weight(a.verbs) > calculate_weight(b.verbs); end,
|
H A D | count_dashes.lua | 34 local verbs = fillpath:getVerbs() 35 for _, verb in ipairs(verbs) do
|
/external/skqp/tools/lua/ |
H A D | bbh_filter.lua | 24 verbs = {}, 67 currentInfo.verbs[t.verb] = (currentInfo.verbs[t.verb] or 0) + 1 102 function calculate_weight(verbs) 104 for name, count in pairs(verbs) do 124 for verb,count in pairs(globalInfo[t.fileName].verbs) do 138 function(a, b) return calculate_weight(a.verbs) > calculate_weight(b.verbs); end,
|
H A D | count_dashes.lua | 34 local verbs = fillpath:getVerbs() 35 for _, verb in ipairs(verbs) do
|
/external/skia/src/core/ |
H A D | SkPathPriv.h | 69 auto verbs = path.fPathRef->verbs(); local 71 switch (verbs[~i]) { // verbs are stored backwards; we use [~i] to get the i'th verb 115 * Returns a C++11-iterable object that traverses a path's verbs in order. e.g: 125 void operator++() { --fVerb; } // verbs are laid out backwards in memory. 130 Iter begin() { return Iter{fPathRef->verbs() - 1}; } 131 Iter end() { return Iter{fPathRef->verbs() - fPathRef->countVerbs() - 1}; } 139 * Returns a pointer to the verb data. Note that the verbs are stored backwards in memory and
|
H A D | SkPathRef.cpp | 202 static bool validate_verb_sequence(const uint8_t verbs[], int vCount) { 203 // verbs are stored backwards, but we need to visit them in logical order to determine if 210 switch (verbs[i]) { 232 static bool deduce_pts_conics(const uint8_t verbs[], int vCount, int* ptCountPtr, 235 if (0 < vCount && verbs[vCount-1] != SkPath::kMove_Verb) { 243 switch (verbs[i]) { 322 // Check that the verbs are valid, and imply the correct number of pts and conics 341 // call this after validate_verb_sequence, since it relies on valid verbs 478 const uint8_t* verbs = this->verbsMemBegin(); 481 switch (verbs[ [all...] |
H A D | SkPath.cpp | 123 Stores the verbs and points as they are given to us, with exceptions: 683 copy_verbs_reverse(dst, fPathRef->verbs(), count); 1198 const uint8_t* verbs = const_cast<const SkPathRef*>(fPathRef.get())->verbsMemBegin(); local 1200 if (*verbs == kLine_Verb || 1201 *verbs == kQuad_Verb || 1202 *verbs == kConic_Verb || 1203 *verbs == kCubic_Verb) { 1206 ++verbs; 1639 const uint8_t* verbs = path.fPathRef->verbsMemBegin(); // points at the last verb 1640 if (!verbs) { // empt 1682 const uint8_t* verbs = src.fPathRef->verbsMemBegin(); // points at the last verb local 1880 const uint8_t* verbs = fVerbs; local 2556 const uint8_t* verbs = fCurrVerb; local [all...] |
/external/skia/gm/ |
H A D | aarectmodes.cpp | 30 char verbs[] = { local 38 for (size_t i = 0; i < sizeof(verbs); ++i) { 39 switch ((SkPath::Verb) verbs[i]) {
|
/external/skqp/gm/ |
H A D | aarectmodes.cpp | 30 char verbs[] = { local 38 for (size_t i = 0; i < sizeof(verbs); ++i) { 39 switch ((SkPath::Verb) verbs[i]) {
|
/external/skia/tools/fonts/ |
H A D | create_test_font.cpp | 141 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, 154 *verbs->append() = verb; 175 *verbs->append() = SkPath::kDone_Verb; 235 SkTDArray<SkPath::Verb> verbs; local 239 output_path_data(paint, emSize, &ptsOut, &verbs, &charCodes, &widths); 249 int verbCount = verbs.count(); 252 SkPath::Verb verb = verbs[index]; 140 output_path_data(const SkPaint& paint, int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, SkTDArray<unsigned>* charCodes, SkTDArray<SkScalar>* widths) argument
|
H A D | SkTestScalerContext.h | 37 void init(const SkScalar* pts, const unsigned char* verbs);
|
/external/skqp/tools/ |
H A D | create_test_font.cpp | 140 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, 153 *verbs->append() = verb; 174 *verbs->append() = SkPath::kDone_Verb; 234 SkTDArray<SkPath::Verb> verbs; local 238 output_path_data(paint, emSize, &ptsOut, &verbs, &charCodes, &widths); 248 int verbCount = verbs.count(); 251 SkPath::Verb verb = verbs[index]; 139 output_path_data(const SkPaint& paint, int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, SkTDArray<unsigned>* charCodes, SkTDArray<SkScalar>* widths) argument
|
H A D | SkTestScalerContext.h | 37 void init(const SkScalar* pts, const unsigned char* verbs);
|
/external/skia/src/pathops/ |
H A D | SkOpBuilder.cpp | 18 uint8_t* verbs = (uint8_t*) allocator.makeArrayDefault<uint8_t>(verbCount); local 19 (void) path.getVerbs(verbs, verbCount); 21 if (verbs[index] == SkPath::kMove_Verb) {
|
/external/skqp/src/pathops/ |
H A D | SkOpBuilder.cpp | 18 uint8_t* verbs = (uint8_t*) allocator.makeArrayDefault<uint8_t>(verbCount); local 19 (void) path.getVerbs(verbs, verbCount); 21 if (verbs[index] == SkPath::kMove_Verb) {
|
/external/skia/include/private/ |
H A D | SkPathRef.h | 25 * 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 147 * Gets a path ref with no verbs or points. 242 * Rollsback a path ref to zero verbs an 256 const uint8_t* verbs() const { return fVerbs; } function in class:final [all...] |
/external/skqp/include/private/ |
H A D | SkPathRef.h | 25 * 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 147 * Gets a path ref with no verbs or points. 242 * Rollsback a path ref to zero verbs an 256 const uint8_t* verbs() const { return fVerbs; } function in class:final [all...] |
/external/skia/src/gpu/ccpr/ |
H A D | GrCCPathParser.cpp | 108 fCurrPathVerbsIdx = fGeometry.verbs().count(); 168 int numVerbs = fGeometry.verbs().count() - fCurrPathVerbsIdx - 1; 175 const SkTArray<GrCCGeometry::Verb, true>& verbs = fGeometry.verbs(); local 184 SkASSERT(GrCCGeometry::Verb::kBeginPath == verbs[fCurrPathVerbsIdx]); 185 for (int i = fCurrPathVerbsIdx + 1; i < fGeometry.verbs().count(); ++i) { 186 switch (verbs[i]) { 406 // Expand the ccpr verbs into GPU instance buffers. 407 for (GrCCGeometry::Verb verb : fGeometry.verbs()) {
|
H A D | GrCCGeometry.h | 25 // These are the verbs that CCPR knows how to draw. If a path has any segments that don't map to 51 : fPoints(numSkPoints * 3) // Reserve for a 3x expansion in points and verbs. 55 const SkTArray<Verb, true>& verbs() const { SkASSERT(!fBuildingContour); return fVerbs; } function in class:GrCCGeometry
|
/external/skqp/tests/ |
H A D | PathTest.cpp | 1701 path.lineTo(0, 0); // too many points/verbs 2546 // find where the counts and verbs are stored : from the impl in SkPathRef.cpp 2553 uint8_t* verbs = &buffer[28]; local 2575 // Check that we detect when the verbs indicate more or fewer pts/conics 2577 uint8_t save = verbs[0]; 2579 verbs[0] = SkPath::kQuad_Verb; 2581 verbs[0] = save; 2583 save = verbs[1]; 2585 verbs[1] = SkPath::kQuad_Verb; 2587 verbs[ 2781 uint8_t verbs[32]; local 3942 uint8_t verbs[4]; local 3960 uint8_t verbs[7]; local 4486 SkPath::Verb verbs[] = {kMove, kLine, kLine, kLine, kLine, kLine, kLine, kLine, kClose, local 4658 uint8_t verbs[6]; local 4810 const SkPath::Verb verbs[] = { local 4911 int verbs = 0; local [all...] |
/external/skia/samplecode/ |
H A D | SamplePathFuzz.cpp | 605 SkTDArray<uint8_t> verbs; local 606 verbs.setCount(verbCount); 607 SkDEBUGCODE(int getVerbResult = ) path.getVerbs(verbs.begin(), verbCount); 610 if (verbs[index] != SkPath::kMove_Verb) {
|
/external/skqp/samplecode/ |
H A D | SamplePathFuzz.cpp | 605 SkTDArray<uint8_t> verbs; local 606 verbs.setCount(verbCount); 607 SkDEBUGCODE(int getVerbResult = ) path.getVerbs(verbs.begin(), verbCount); 610 if (verbs[index] != SkPath::kMove_Verb) {
|
/external/skqp/src/gpu/ccpr/ |
H A D | GrCCGeometry.h | 25 // These are the verbs that CCPR knows how to draw. If a path has any segments that don't map to 50 : fPoints(numSkPoints * 3) // Reserve for a 3x expansion in points and verbs. 54 const SkTArray<Verb, true>& verbs() const { SkASSERT(!fBuildingContour); return fVerbs; } function in class:GrCCGeometry
|