Lines Matching refs:Reporter
19 static void test_bitmap_equality(skiatest::Reporter* reporter, SkBitmap& bm1, SkBitmap& bm2) {
20 REPORTER_ASSERT(reporter, bm1.getSize() == bm2.getSize());
21 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.getSize()));
41 static void run_shader_test(skiatest::Reporter* reporter, SkSurface* sourceSurface,
66 test_bitmap_equality(reporter, bmOrig, bm);
91 REPORTER_ASSERT(reporter, 0xFFFF0000 == bmt.getColor(0, y));
94 REPORTER_ASSERT(reporter, 0xFFDEDEDE == bmt.getColor(x, y));
100 DEF_TEST(ImageNewShader, reporter) {
106 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
111 static void gpu_to_gpu(skiatest::Reporter* reporter, GrContext* context) {
117 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
120 static void gpu_to_raster(skiatest::Reporter* reporter, GrContext* context) {
126 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
129 static void raster_to_gpu(skiatest::Reporter* reporter, GrContext* context) {
135 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
138 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageNewShader_GPU, reporter, ctxInfo) {
140 gpu_to_gpu(reporter, ctxInfo.grContext());
143 gpu_to_raster(reporter, ctxInfo.grContext());
146 raster_to_gpu(reporter, ctxInfo.grContext());