Home | History | Annotate | Download | only in SimpleCocoaApp

Lines Matching full:path

11 static void make_filepath(SkString* path, const char* dir, const SkString& name) {
13 path->set(dir);
15 path->append("/");
17 path->append(name);
20 static SkPicture* LoadPicture(const char path[]) {
24 if (SkImageDecoder::DecodeFile(path, &bm)) {
31 SkFILEStream stream(path);
42 SkString path2(path);
69 SkPath path;
70 path.moveTo(0, 0);
71 path.lineTo(1, 1);
72 path.lineTo(1, 8);
73 path.lineTo(0, 9);
74 SkASSERT(path.hasRectangularInterior(&result));
76 path.reset();
77 path.addRect(10, 10, 100, 100, SkPath::kCW_Direction);
78 path.addRect(20, 20, 50, 50, SkPath::kCW_Direction);
79 path.addRect(50, 50, 90, 90, SkPath::kCCW_Direction);
81 canvas->drawPath(path, p);
82 SkASSERT(!path.hasRectangularInterior(NULL));
83 path.reset();
84 path.addRect(10, 10, 100, 100, SkPath::kCW_Direction);
85 path.addRect(20, 20, 80, 80, SkPath::kCW_Direction);
87 SkASSERT(path.hasRectangularInterior(&result));
110 SkDebugf("path.moveTo(%1.9g, %1.9g);\n", pts[0].fX, pts[0].fY);
113 SkDebugf("path.lineTo(%1.9g, %1.9g);\n", pts[1].fX, pts[1].fY);
116 SkDebugf("path.quadTo(%1.9g, %1.9g, %1.9g, %1.9g);\n",
120 SkDebugf("path.cubicTo(%1.9g, %1.9g, %1.9g, %1.9g, %1.9g, %1.9g);\n",
126 SkDebugf("path.close();\n");
138 virtual void drawPath(const SkPath& path, const SkPaint& paint) {
143 SkPath::Iter iter(path, true);
145 SkASSERT(path.getFillType() < SkPath::kInverseWinding_FillType);
146 SkDebugf("path.setFillType(SkPath::k%s_FillType);\n",
147 path.getFillType() == SkPath::kWinding_FillType ? "Winding" : "EvenOdd");
151 bool hasOne = path.hasRectangularInterior(&r);
152 bool expected = (path.getFillType() == SkPath::kWinding_FillType && contours == 1)
153 || (path.getFillType() == SkPath::kEvenOdd_FillType && contours == 2);
157 int verbs = path.countVerbs();
158 int points = path.countPoints();
172 SkDebugf("path.addRect(%1.9g, %1.9g, %1.9g, %1.9g);\n",
189 path.hasRectangularInterior(&copy);
244 SkString path;
246 make_filepath(&path, pictDir, filename);
248 SkPicture* pic = LoadPicture(path.c_str());
259 SkString path;
260 make_filepath(&path, pictDir, filename);
262 SkPicture* pic = LoadPicture(path.c_str());