Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

19 static void test_bitmap_equality(skiatest::Reporter* reporter, SkBitmap& bm1, SkBitmap& bm2) {
23 REPORTER_ASSERT(reporter, bm1.getSize() == bm2.getSize());
24 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.getSize()));
44 static void run_shader_test(skiatest::Reporter* reporter, SkSurface* sourceSurface,
69 test_bitmap_equality(reporter, bmOrig, bm);
94 REPORTER_ASSERT(reporter, 0xFFFF0000 == bmt.getColor(0, y));
97 REPORTER_ASSERT(reporter, 0xFFDEDEDE == bmt.getColor(x, y));
103 DEF_TEST(ImageNewShader, reporter) {
109 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
114 static void gpu_to_gpu(skiatest::Reporter* reporter, GrContext* context) {
120 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
123 static void gpu_to_raster(skiatest::Reporter* reporter, GrContext* context) {
129 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
132 static void raster_to_gpu(skiatest::Reporter* reporter, GrContext* context) {
138 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
141 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageNewShader_GPU, reporter, ctxInfo) {
143 gpu_to_gpu(reporter, ctxInfo.grContext());
146 gpu_to_raster(reporter, ctxInfo.grContext());
149 raster_to_gpu(reporter, ctxInfo.grContext());