Lines Matching defs:reporter

33 static void check_surface(skiatest::Reporter* reporter,
37 REPORTER_ASSERT(reporter, proxy->width() == width);
38 REPORTER_ASSERT(reporter, proxy->height() == height);
39 REPORTER_ASSERT(reporter, !proxy->uniqueID().isInvalid());
40 REPORTER_ASSERT(reporter, proxy->isBudgeted() == budgeted);
43 static void check_rendertarget(skiatest::Reporter* reporter,
50 REPORTER_ASSERT(reporter, rtProxy->maxWindowRectangles(caps) == expectedMaxWindowRects);
51 REPORTER_ASSERT(reporter, rtProxy->numSamples() == numSamples);
55 REPORTER_ASSERT(reporter, rtProxy->instantiate(provider));
58 REPORTER_ASSERT(reporter, rtProxy->uniqueID() == idBefore);
61 REPORTER_ASSERT(reporter, rtProxy->uniqueID().asUInt() == rt->uniqueID().asUInt());
63 REPORTER_ASSERT(reporter, rtProxy->uniqueID().asUInt() != rt->uniqueID().asUInt());
67 REPORTER_ASSERT(reporter, rt->dimensions() == rtProxy->dimensions());
69 REPORTER_ASSERT(reporter, rt->width() >= rtProxy->width());
70 REPORTER_ASSERT(reporter, rt->height() >= rtProxy->height());
72 REPORTER_ASSERT(reporter, rt->backendFormat() == rtProxy->backendFormat());
74 REPORTER_ASSERT(reporter, rt->numSamples() == rtProxy->numSamples());
75 REPORTER_ASSERT(reporter, rt->flags() == rtProxy->testingOnly_getFlags());
78 static void check_texture(skiatest::Reporter* reporter,
96 REPORTER_ASSERT(reporter, texProxy->instantiate(provider));
99 REPORTER_ASSERT(reporter, texProxy->uniqueID() == idBefore);
102 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt());
104 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt());
107 REPORTER_ASSERT(reporter, tex->dimensions() == expectedSize);
109 REPORTER_ASSERT(reporter, tex->backendFormat() == texProxy->backendFormat());
113 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
150 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
152 REPORTER_ASSERT(reporter, proxy->asRenderTargetProxy());
160 check_surface(reporter, proxy.get(), widthHeight, widthHeight,
164 check_rendertarget(reporter, caps, resourceProvider,
186 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
195 check_surface(reporter, proxy.get(), widthHeight, widthHeight,
197 check_texture(reporter, resourceProvider, proxy->asTextureProxy(),
210 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) {
232 check_surface(reporter, sProxy.get(), kWidthHeight, kWidthHeight, SkBudgeted::kNo);
234 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(),
260 check_surface(reporter, sProxy.get(), kWidthHeight, kWidthHeight, SkBudgeted::kNo);
261 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(),
275 ERRORF(reporter,
284 ERRORF(reporter, "wrapRenderableBackendTexture failed");
288 check_surface(reporter, sProxy.get(), kWidthHeight, kWidthHeight, SkBudgeted::kNo);
289 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(),
303 ERRORF(reporter,
312 ERRORF(reporter, "wrapBackendTexture failed");
316 check_surface(reporter, sProxy.get(), kWidthHeight, kWidthHeight, SkBudgeted::kNo);
317 check_texture(reporter, resourceProvider, sProxy->asTextureProxy(),
324 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ZeroSizedProxyTest, reporter, ctxInfo) {
344 REPORTER_ASSERT(reporter, !proxy);