Lines Matching refs:Reporter
51 static void TestSurfaceCopyOnWrite(skiatest::Reporter* reporter, SurfaceType surfaceType,
114 REPORTER_ASSERT(reporter, imageBefore != imageAfter); \
137 static void TestSurfaceWritableAfterSnapshotRelease(skiatest::Reporter* reporter,
151 static void Test_crbug263329(skiatest::Reporter* reporter,
176 REPORTER_ASSERT(reporter, image4->getTexture() != image3->getTexture());
178 REPORTER_ASSERT(reporter, image4->getTexture() != image2->getTexture());
179 REPORTER_ASSERT(reporter, image4->getTexture() != image1->getTexture());
180 REPORTER_ASSERT(reporter, image3->getTexture() != image2->getTexture());
181 REPORTER_ASSERT(reporter, image3->getTexture() != image1->getTexture());
182 REPORTER_ASSERT(reporter, image2->getTexture() != image1->getTexture());
185 static void TestGetTexture(skiatest::Reporter* reporter,
192 REPORTER_ASSERT(reporter, NULL != texture);
193 REPORTER_ASSERT(reporter, 0 != texture->getTextureHandle());
195 REPORTER_ASSERT(reporter, NULL == texture);
198 REPORTER_ASSERT(reporter, image->getTexture() == texture);
202 static void TestSurfaceNoCanvas(skiatest::Reporter* reporter,
229 REPORTER_ASSERT(reporter, image1 != image2);
234 static void TestSurface(skiatest::Reporter* reporter, GrContextFactory* factory) {
235 TestSurfaceCopyOnWrite(reporter, kRaster_SurfaceType, NULL);
236 TestSurfaceCopyOnWrite(reporter, kPicture_SurfaceType, NULL);
237 TestSurfaceWritableAfterSnapshotRelease(reporter, kRaster_SurfaceType, NULL);
238 TestSurfaceWritableAfterSnapshotRelease(reporter, kPicture_SurfaceType, NULL);
239 TestSurfaceNoCanvas(reporter, kRaster_SurfaceType, NULL, SkSurface::kDiscard_ContentChangeMode);
240 TestSurfaceNoCanvas(reporter, kRaster_SurfaceType, NULL, SkSurface::kRetain_ContentChangeMode);
242 TestGetTexture(reporter, kRaster_SurfaceType, NULL);
243 TestGetTexture(reporter, kPicture_SurfaceType, NULL);
247 Test_crbug263329(reporter, context);
248 TestSurfaceCopyOnWrite(reporter, kGpu_SurfaceType, context);
249 TestSurfaceWritableAfterSnapshotRelease(reporter, kGpu_SurfaceType, context);
250 TestSurfaceNoCanvas(reporter, kGpu_SurfaceType, context, SkSurface::kDiscard_ContentChangeMode);
251 TestSurfaceNoCanvas(reporter, kGpu_SurfaceType, context, SkSurface::kRetain_ContentChangeMode);
252 TestGetTexture(reporter, kGpu_SurfaceType, context);