Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

23 static void check_surface(skiatest::Reporter* reporter,
30 REPORTER_ASSERT(reporter, proxy->origin() == origin);
31 REPORTER_ASSERT(reporter, proxy->width() == width);
32 REPORTER_ASSERT(reporter, proxy->height() == height);
33 REPORTER_ASSERT(reporter, proxy->config() == config);
35 REPORTER_ASSERT(reporter, proxy->uniqueID().asUInt() == uniqueID.asUInt());
37 REPORTER_ASSERT(reporter, !proxy->uniqueID().isInvalid());
39 REPORTER_ASSERT(reporter, proxy->isBudgeted() == budgeted);
42 static void check_rendertarget(skiatest::Reporter* reporter,
50 REPORTER_ASSERT(reporter, rtProxy->maxWindowRectangles(caps) == expectedMaxWindowRects);
51 REPORTER_ASSERT(reporter, rtProxy->numStencilSamples() == numSamples);
54 REPORTER_ASSERT(reporter, rtProxy->instantiate(provider));
57 REPORTER_ASSERT(reporter, rtProxy->uniqueID() == idBefore);
60 REPORTER_ASSERT(reporter, rtProxy->uniqueID().asUInt() == rt->uniqueID().asUInt());
63 REPORTER_ASSERT(reporter, rtProxy->uniqueID().asUInt() != rt->uniqueID().asUInt());
66 REPORTER_ASSERT(reporter, rt->origin() == rtProxy->origin());
68 REPORTER_ASSERT(reporter, rt->width() == rtProxy->width());
69 REPORTER_ASSERT(reporter, rt->height() == rtProxy->height());
71 REPORTER_ASSERT(reporter, rt->width() >= rtProxy->width());
72 REPORTER_ASSERT(reporter, rt->height() >= rtProxy->height());
74 REPORTER_ASSERT(reporter, rt->config() == rtProxy->config());
76 REPORTER_ASSERT(reporter, rt->fsaaType() == rtProxy->fsaaType());
77 REPORTER_ASSERT(reporter, rt->numColorSamples() == rtProxy->numColorSamples());
78 REPORTER_ASSERT(reporter, rt->numStencilSamples() == rtProxy->numStencilSamples());
79 REPORTER_ASSERT(reporter, rt->renderTargetPriv().flags() == rtProxy->testingOnly_getFlags());
82 static void check_texture(skiatest::Reporter* reporter,
89 REPORTER_ASSERT(reporter, texProxy->instantiate(provider));
92 REPORTER_ASSERT(reporter, texProxy->uniqueID() == idBefore);
95 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt());
98 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt());
101 REPORTER_ASSERT(reporter, tex->origin() == texProxy->origin());
103 REPORTER_ASSERT(reporter, tex->width() == texProxy->width());
104 REPORTER_ASSERT(reporter, tex->height() == texProxy->height());
106 REPORTER_ASSERT(reporter, tex->width() >= texProxy->width());
107 REPORTER_ASSERT(reporter, tex->height() >= texProxy->height());
109 REPORTER_ASSERT(reporter, tex->config() == texProxy->config());
113 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
147 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
149 REPORTER_ASSERT(reporter, proxy->asRenderTargetProxy());
157 check_surface(reporter, proxy.get(), origin,
161 check_rendertarget(reporter, caps, provider,
182 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
191 check_surface(reporter, proxy.get(), origin,
194 check_texture(reporter, provider, proxy->asTextureProxy(),
208 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) {
240 check_surface(reporter, sProxy.get(), origin,
243 check_rendertarget(reporter, caps, provider, sProxy->asRenderTargetProxy(),
256 check_surface(reporter, sProxy.get(), origin,
259 check_rendertarget(reporter, caps, provider, sProxy->asRenderTargetProxy(),
271 check_surface(reporter, sProxy.get(), origin,
273 check_texture(reporter, provider, sProxy->asTextureProxy(),
281 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ZeroSizedProxyTest, reporter, ctxInfo) {
304 REPORTER_ASSERT(reporter, !proxy);