Lines Matching defs:file
5 * found in the LICENSE file.
20 bool SkPathOpsDebug::gDumpOp; // set to true to write op to file before a crash
2918 static void dump_path(FILE* file, const SkPath& path, bool force, bool dumpAsHex) {
2922 fprintf(file, "%.*s\n", (int) data->size(), (char*) data->data());
2929 FILE* file = sk_fopen("op_dump.txt", kWrite_SkFILE_Flag);
2930 DumpOp(file, one, two, op, testName);
2933 void SkPathOpsDebug::DumpOp(FILE* file, const SkPath& one, const SkPath& two, SkPathOp op,
2936 fprintf(file,
2939 fprintf(file, " SkPath path;\n");
2940 fprintf(file, " path.setFillType((SkPath::FillType) %d);\n", one.getFillType());
2941 dump_path(file, one, false, true);
2942 fprintf(file, " SkPath path1(path);\n");
2943 fprintf(file, " path.reset();\n");
2944 fprintf(file, " path.setFillType((SkPath::FillType) %d);\n", two.getFillType());
2945 dump_path(file, two, false, true);
2946 fprintf(file, " SkPath path2(path);\n");
2947 fprintf(file, " testPathOp(reporter, path1, path2, (SkPathOp) %d, filename);\n", op);
2948 fprintf(file, "}\n\n");
2949 fclose(file);
2953 FILE* file = sk_fopen("simplify_dump.txt", kWrite_SkFILE_Flag);
2954 DumpSimplify(file, path, testName);
2957 void SkPathOpsDebug::DumpSimplify(FILE* file, const SkPath& path, const char* testName) {
2959 fprintf(file,
2962 fprintf(file, " SkPath path;\n");
2963 fprintf(file, " path.setFillType((SkPath::FillType) %d);\n", path.getFillType());
2964 dump_path(file, path, false, true);
2965 fprintf(file, " testSimplify(reporter, path, filename);\n");
2966 fprintf(file, "}\n\n");
2967 fclose(file);