Lines Matching refs:TestHelper

105 class TestHelper {
116 TestHelper(GrDirectContext* dContext,
136 ~TestHelper() {
172 typedef void (TestHelper::*addAccessFP)(SkCanvas*, int wh, int id,
174 typedef bool (TestHelper::*checkFP)(SkCanvas*, int wh,
421 static GrOp::Owner Make(GrRecordingContext* rContext, TestHelper::Stats* stats,
434 GrThreadSafeVertexTestOp(GrRecordingContext* rContext, TestHelper::Stats* stats, int wh, int id,
599 TestHelper::Stats* fStats;
611 void TestHelper::addVertAccess(SkCanvas* canvas,
629 GrSurfaceProxyView TestHelper::CreateViewOnCpu(GrRecordingContext* rContext,
648 bool TestHelper::FillInViewOnGpu(GrDirectContext* dContext, int wh, Stats* stats,
671 GrSurfaceProxyView TestHelper::AccessCachedView(GrRecordingContext* rContext,
740 TestHelper::addAccessFP addAccess,
741 TestHelper::checkFP check) {
743 TestHelper helper(dContext);
763 test_1(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
767 test_1(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
773 TestHelper::addAccessFP addAccess,
774 TestHelper::checkFP check) {
776 TestHelper helper(dContext);
801 test_2(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
805 test_2(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
810 TestHelper::addAccessFP addAccess,
811 TestHelper::checkFP check) {
813 TestHelper helper(dContext);
833 test_3(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
837 test_3(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
843 TestHelper::addAccessFP addAccess,
844 TestHelper::checkFP check) {
846 TestHelper helper(dContext);
867 test_4(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
871 test_4(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
877 TestHelper::addAccessFP addAccess,
878 TestHelper::checkFP check) {
880 TestHelper helper(dContext);
907 &TestHelper::addViewAccess, &TestHelper::checkView);
912 &TestHelper::addVertAccess, &TestHelper::checkVert);
918 TestHelper::addAccessFP addAccess,
919 TestHelper::checkFP check) {
921 TestHelper helper(dContext);
947 &TestHelper::addViewAccess, &TestHelper::checkView);
952 &TestHelper::addVertAccess, &TestHelper::checkVert);
957 TestHelper::addAccessFP addAccess,
958 TestHelper::checkFP check) {
960 TestHelper helper(dContext);
985 test_5(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
989 test_5(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
995 TestHelper::addAccessFP addAccess,
996 TestHelper::checkFP check) {
998 TestHelper helper(dContext);
1028 test_6(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1032 test_6(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1038 TestHelper::addAccessFP addAccess,
1039 TestHelper::checkFP check) {
1041 TestHelper helper(dContext);
1072 test_7(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1076 test_7(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1083 TestHelper::addAccessFP addAccess,
1084 TestHelper::checkFP check) {
1086 TestHelper helper(dContext);
1117 test_8(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1121 test_8(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1128 TestHelper::addAccessFP addAccess,
1129 TestHelper::checkFP check) {
1131 TestHelper helper(dContext);
1162 test_9(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1166 test_9(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1173 TestHelper::addAccessFP addAccess,
1174 TestHelper::checkFP check) {
1182 TestHelper helper(dContext);
1236 test_10(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1243 // test_10(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1250 TestHelper::addAccessFP addAccess,
1251 TestHelper::checkFP check) {
1253 TestHelper helper(dContext);
1283 test_11(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1287 test_11(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1294 TestHelper::addAccessFP addAccess,
1295 TestHelper::checkFP check) {
1297 TestHelper helper(dContext);
1333 test_12(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1337 test_12(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1342 TestHelper::addAccessFP addAccess,
1343 TestHelper::checkFP check) {
1345 TestHelper helper(dContext);
1378 test_13(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView);
1382 test_13(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert);
1391 TestHelper helper(ctxInfo.directContext());
1423 TestHelper::addAccessFP addAccess,
1424 TestHelper::checkFP check,
1427 TestHelper helper(dContext);
1461 test_15(ctxInfo.directContext(), reporter, &TestHelper::addViewAccess, &TestHelper::checkView,
1466 test_15(ctxInfo.directContext(), reporter, &TestHelper::addVertAccess, &TestHelper::checkVert,
1484 TestHelper helper(ctxInfo.directContext(), newer_is_always_better);