Lines Matching refs:gRec
455 static void setup_bitmap(const ConfigData& gRec, SkISize& size,
457 bitmap->setConfig(gRec.fConfig, size.width(), size.height());
536 static ErrorCombination generate_image(GM* gm, const ConfigData& gRec,
541 setup_bitmap(gRec, size, bitmap);
545 if (gRec.fBackend == kRaster_Backend) {
576 static void generate_image_from_picture(GM* gm, const ConfigData& gRec,
581 setup_bitmap(gRec, size, bitmap);
592 setup_bitmap(gRec, tileSize, &tileBM);
892 * @param gRec
898 GM* gm, const ConfigData& gRec, const char* configName,
910 } else if (!(gRec.fFlags & kWrite_ConfigFlag)) {
923 if (expectationsSource && (gRec.fFlags & kRead_ConfigFlag)) {
1038 ErrorCombination test_drawing(GM* gm, const ConfigData& gRec,
1047 if (gRec.fBackend == kRaster_Backend ||
1048 gRec.fBackend == kGPU_Backend) {
1050 errors.add(generate_image(gm, gRec, gpuTarget, bitmap, false));
1059 gm, gRec, gRec.fName, &bitmapAndDigest));
1061 if (writePath && (gRec.fFlags & kWrite_ConfigFlag)) {
1062 path = make_bitmap_filename(writePath, gm->shortName(), gRec.fName,
1066 } else if (gRec.fBackend == kPDF_Backend) {
1071 if (writePath && (gRec.fFlags & kWrite_ConfigFlag)) {
1072 path = make_filename(writePath, gm->shortName(), gRec.fName, "", "pdf");
1089 SkString configName(gRec.fName);
1095 gm, gRec, configName.c_str(), &bitmapAndDigest));
1097 if (writePath && (gRec.fFlags & kWrite_ConfigFlag)) {
1108 } else if (gRec.fBackend == kXPS_Backend) {
1113 gm, gRec, gRec.fName, NULL));
1115 if (writePath && (gRec.fFlags & kWrite_ConfigFlag)) {
1116 path = make_filename(writePath, gm->shortName(), gRec.fName, "", "xps");
1126 const ConfigData& gRec,
1129 if (gRec.fBackend == kRaster_Backend ||
1130 gRec.fBackend == kGPU_Backend) {
1135 ErrorCombination errors = generate_image(gm, gRec, gpuTarget, &bitmap, true);
1153 gm->shortName(), gRec.fName, renderModeDescriptor, bitmap, &referenceBitmap);
1158 ErrorCombination test_pipe_playback(GM* gm, const ConfigData& gRec,
1161 gRec.fName);
1176 setup_bitmap(gRec, size, &bitmap);
1192 gm->shortName(), gRec.fName, renderModeDescriptor.c_str(), bitmap,
1202 ErrorCombination test_tiled_pipe_playback(GM* gm, const ConfigData& gRec,
1205 gRec.fName);
1219 setup_bitmap(gRec, size, &bitmap);
1230 errors.add(compare_test_results_to_reference_bitmap(gm->shortName(), gRec.fName,
1277 static const ConfigData gRec[] = {
1330 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) {
1331 SkASSERT(gRec[i].fName != kDefaultsConfigStr);
1335 result.appendf("%s", gRec[i].fName);
1342 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) {
1343 if (gRec[i].fRunByDefault) {
1347 result.append(gRec[i].fName);
1349 firstDefault = gRec[i].fName;
1354 allButFirstDefaults.append(gRec[i].fName);
1357 nonDefault = gRec[i].fName;
1507 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); i++) {
1508 if (!strcmp(config, gRec[i].fName)) {
1551 ConfigData config = gRec[configs[i]];
1844 * @param configs configurations, as a list of indices into gRec
1854 total.append(gRec[configs[i]].fName);
1868 ConfigData config = gRec[configs[i]];
1913 for (size_t c = 0; c < SK_ARRAY_COUNT(gRec); ++c) {
1914 if (gRec[c].fRunByDefault) {
1936 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) {
1937 if (gRec[i].fRunByDefault) {
1956 if (kGPU_Backend == gRec[index].fBackend) {
1957 GrContext* ctx = grFactory->get(gRec[index].fGLContextType);
1960 " Config will be skipped.\n", gRec[index].fName);
1965 if (gRec[index].fSampleCnt > ctx->getMaxSampleCount()) {
1968 gRec[index].fSampleCnt, gRec[index].fName);
1985 configStr.appendf(" %s", gRec[(*outConfigs)[i]].fName);
1998 if (gRec[configs[i]].fBackend == kPDF_Backend) {
2357 ConfigData config = gRec[configs[i]];