Lines Matching defs:reporter
17 static void test_bitmap_equality(skiatest::Reporter* reporter, SkBitmap& bm1, SkBitmap& bm2) {
18 REPORTER_ASSERT(reporter, bm1.computeByteSize() == bm2.computeByteSize());
19 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.computeByteSize()));
39 static void run_shader_test(skiatest::Reporter* reporter, SkSurface* sourceSurface,
63 test_bitmap_equality(reporter, bmOrig, bm);
88 REPORTER_ASSERT(reporter, 0xFFFF0000 == bmt.getColor(0, y));
91 REPORTER_ASSERT(reporter, 0xFFDEDEDE == bmt.getColor(x, y));
97 DEF_TEST(ImageNewShader, reporter) {
103 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
106 static void gpu_to_gpu(skiatest::Reporter* reporter, GrRecordingContext* rContext) {
112 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
115 static void raster_to_gpu(skiatest::Reporter* reporter, GrRecordingContext* rContext) {
121 run_shader_test(reporter, sourceSurface.get(), destinationSurface.get(), info);
124 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageNewShader_GPU, reporter, ctxInfo) {
128 gpu_to_gpu(reporter, dContext);
133 raster_to_gpu(reporter, dContext);