Lines Matching defs:reporter

40 static sk_sp<GrTextureProxy> deferred_tex(skiatest::Reporter* reporter,
52 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
56 static sk_sp<GrTextureProxy> deferred_texRT(skiatest::Reporter* reporter,
68 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
72 static sk_sp<GrTextureProxy> wrapped(skiatest::Reporter* reporter, GrRecordingContext*,
77 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
81 static sk_sp<GrTextureProxy> wrapped_with_key(skiatest::Reporter* reporter, GrRecordingContext*,
96 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid());
123 skiatest::Reporter* reporter,
142 REPORTER_ASSERT(reporter, !proxyProvider->numUniqueKeyProxies_TestOnly());
146 REPORTER_ASSERT(reporter, 1 == proxyProvider->numUniqueKeyProxies_TestOnly());
147 REPORTER_ASSERT(reporter, startCacheCount == cache->getResourceCount());
150 REPORTER_ASSERT(reporter, key == proxy->getUniqueKey());
153 REPORTER_ASSERT(reporter, proxyProvider->findOrCreateProxyByUniqueKey(key));
154 REPORTER_ASSERT(reporter, 1 == proxyProvider->numUniqueKeyProxies_TestOnly());
161 REPORTER_ASSERT(reporter, texKey.isValid());
162 REPORTER_ASSERT(reporter, key == texKey);
180 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
181 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
185 REPORTER_ASSERT(reporter, proxy);
186 REPORTER_ASSERT(reporter, 1 == proxyProvider->numUniqueKeyProxies_TestOnly());
187 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
195 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
200 REPORTER_ASSERT(reporter, expectResourceToOutliveProxy ? (bool)proxy : !proxy);
201 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
210 REPORTER_ASSERT(reporter, !proxy);
211 REPORTER_ASSERT(reporter, expectedCacheCount == cache->getResourceCount());
220 skiatest::Reporter* reporter,
225 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
236 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
237 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
251 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
252 REPORTER_ASSERT(reporter, cacheEntriesPerProxy + bufferResources == cache->getResourceCount());
260 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
261 REPORTER_ASSERT(reporter, cacheEntriesPerProxy + bufferResources == cache->getResourceCount());
281 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
282 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
287 skiatest::Reporter* reporter,
292 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
301 sk_sp<GrTextureProxy> proxy = deferred_tex(reporter, dContext, proxyProvider,
309 REPORTER_ASSERT(reporter, 1 == proxyProvider->numUniqueKeyProxies_TestOnly());
310 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
316 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid());
317 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid());
318 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
319 REPORTER_ASSERT(reporter, cacheEntriesPerProxy == cache->getResourceCount());
324 REPORTER_ASSERT(reporter, 0 == proxyProvider->numUniqueKeyProxies_TestOnly());
325 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
328 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TextureProxyTest, reporter, ctxInfo) {
333 REPORTER_ASSERT(reporter, !proxyProvider->numUniqueKeyProxies_TestOnly());
334 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
349 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
350 basic_test(direct, reporter, create(reporter, direct, proxyProvider, fit),
354 REPORTER_ASSERT(reporter, 0 == cache->getResourceCount());
358 basic_test(direct, reporter, create_wrapped_backend(direct), cacheEntriesPerProxy);
360 invalidation_test(direct, reporter, cacheEntriesPerProxy);
361 invalidation_and_instantiation_test(direct, reporter, cacheEntriesPerProxy);