Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

20 static void check_surface(skiatest::Reporter* reporter,
27 REPORTER_ASSERT(reporter, proxy->origin() == origin);
28 REPORTER_ASSERT(reporter, proxy->width() == width);
29 REPORTER_ASSERT(reporter, proxy->height() == height);
30 REPORTER_ASSERT(reporter, proxy->config() == config);
32 REPORTER_ASSERT(reporter, proxy->uniqueID().asUInt() == uniqueID.asUInt());
34 REPORTER_ASSERT(reporter, !proxy->uniqueID().isInvalid());
36 REPORTER_ASSERT(reporter, proxy->isBudgeted() == budgeted);
39 static void check_rendertarget(skiatest::Reporter* reporter,
47 REPORTER_ASSERT(reporter, rtProxy->maxWindowRectangles(caps) == expectedMaxWindowRects);
48 REPORTER_ASSERT(reporter, rtProxy->numStencilSamples() == numSamples);
52 REPORTER_ASSERT(reporter, rt);
54 REPORTER_ASSERT(reporter, rtProxy->uniqueID() == idBefore);
57 REPORTER_ASSERT(reporter, rtProxy->uniqueID().asUInt() == rt->uniqueID().asUInt());
60 REPORTER_ASSERT(reporter, rtProxy->uniqueID().asUInt() != rt->uniqueID().asUInt());
63 REPORTER_ASSERT(reporter, rt->origin() == rtProxy->origin());
65 REPORTER_ASSERT(reporter, rt->width() == rtProxy->width());
66 REPORTER_ASSERT(reporter, rt->height() == rtProxy->height());
68 REPORTER_ASSERT(reporter, rt->width() >= rtProxy->width());
69 REPORTER_ASSERT(reporter, rt->height() >= rtProxy->height());
71 REPORTER_ASSERT(reporter, rt->config() == rtProxy->config());
73 REPORTER_ASSERT(reporter, rt->isUnifiedMultisampled() == rtProxy->isUnifiedMultisampled());
74 REPORTER_ASSERT(reporter, rt->isStencilBufferMultisampled() ==
76 REPORTER_ASSERT(reporter, rt->numColorSamples() == rtProxy->numColorSamples());
77 REPORTER_ASSERT(reporter, rt->numStencilSamples() == rtProxy->numStencilSamples());
78 REPORTER_ASSERT(reporter, rt->isMixedSampled() == rtProxy->isMixedSampled());
79 REPORTER_ASSERT(reporter, rt->renderTargetPriv().flags() == rtProxy->testingOnly_getFlags());
82 static void check_texture(skiatest::Reporter* reporter,
89 REPORTER_ASSERT(reporter, tex);
91 REPORTER_ASSERT(reporter, texProxy->uniqueID() == idBefore);
94 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt());
97 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt());
100 REPORTER_ASSERT(reporter, tex->origin() == texProxy->origin());
102 REPORTER_ASSERT(reporter, tex->width() == texProxy->width());
103 REPORTER_ASSERT(reporter, tex->height() == texProxy->height());
105 REPORTER_ASSERT(reporter, tex->width() >= texProxy->width());
106 REPORTER_ASSERT(reporter, tex->height() >= texProxy->height());
108 REPORTER_ASSERT(reporter, tex->config() == texProxy->config());
112 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredProxyTest, reporter, ctxInfo) {
146 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
148 REPORTER_ASSERT(reporter, proxy->asRenderTargetProxy());
156 check_surface(reporter, proxy.get(), origin,
159 check_rendertarget(reporter, caps, provider,
180 REPORTER_ASSERT(reporter, SkToBool(tex) == SkToBool(proxy));
189 check_surface(reporter, proxy.get(), origin,
192 check_texture(reporter, provider, proxy->asTextureProxy(),
206 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(),