• Home
  • Raw
  • Download

Lines Matching refs:reporter

51 static void create_layers(skiatest::Reporter* reporter,
66 REPORTER_ASSERT(reporter, layer);
69 REPORTER_ASSERT(reporter, temp == layer);
71 REPORTER_ASSERT(reporter, TestingAccess::NumLayers(cache) == idOffset + i + 1);
73 REPORTER_ASSERT(reporter, picture.uniqueID() == layer->pictureID());
74 REPORTER_ASSERT(reporter, layer->start() == idOffset + i + 1);
75 REPORTER_ASSERT(reporter, layer->stop() == idOffset + i + 2);
76 REPORTER_ASSERT(reporter, !layer->texture());
77 REPORTER_ASSERT(reporter, !layer->paint());
78 REPORTER_ASSERT(reporter, !layer->isAtlased());
82 static void lock_layer(skiatest::Reporter* reporter,
97 REPORTER_ASSERT(reporter, needsRerendering);
100 REPORTER_ASSERT(reporter, !needsRerendering);
102 REPORTER_ASSERT(reporter, layer->texture());
103 REPORTER_ASSERT(reporter, layer->locked());
107 REPORTER_ASSERT(reporter, 1 == TestingAccess::Uses(layer));
114 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GpuLayerCache, reporter, ctxInfo) {
137 create_layers(reporter, &cache, *picture, kInitialNumLayers, 0);
143 REPORTER_ASSERT(reporter, layer);
145 lock_layer(reporter, &cache, layer);
153 REPORTER_ASSERT(reporter, layer->isAtlased());
155 REPORTER_ASSERT(reporter, 1 == stats.fTotal);
159 REPORTER_ASSERT(reporter, !layer->isAtlased());
161 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
172 REPORTER_ASSERT(reporter, layer);
178 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
180 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
181 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
189 REPORTER_ASSERT(reporter, layer);
192 REPORTER_ASSERT(reporter, !layer->locked());
199 REPORTER_ASSERT(reporter, layer->texture());
200 REPORTER_ASSERT(reporter, layer->isAtlased());
204 REPORTER_ASSERT(reporter, !layer->texture());
205 REPORTER_ASSERT(reporter, !layer->isAtlased());
213 REPORTER_ASSERT(reporter, nullptr == TestingAccess::GetBackingTexture(&cache));
217 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
219 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);
224 REPORTER_ASSERT(reporter, TestingAccess::GetBackingTexture(&cache));
228 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
230 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
231 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
239 create_layers(reporter, &cache, *picture, 1, kInitialNumLayers);
242 REPORTER_ASSERT(reporter, layer);
244 lock_layer(reporter, &cache, layer);
256 REPORTER_ASSERT(reporter, layer);
257 REPORTER_ASSERT(reporter, !layer->locked());
258 REPORTER_ASSERT(reporter, layer->texture());
259 REPORTER_ASSERT(reporter, layer->isAtlased());
263 REPORTER_ASSERT(reporter, layer);
265 REPORTER_ASSERT(reporter, !layer->texture());
266 REPORTER_ASSERT(reporter, !layer->isAtlased());
270 REPORTER_ASSERT(reporter, nullptr == layer);
280 REPORTER_ASSERT(reporter, TestingAccess::NumLayers(&cache) == 0);
284 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
286 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
287 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
294 create_layers(reporter, &cache, *picture, kInitialNumLayers, 0);
299 REPORTER_ASSERT(reporter, TestingAccess::NumLayers(&cache) == 0);
301 REPORTER_ASSERT(reporter, nullptr == TestingAccess::GetBackingTexture(&cache));
305 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
306 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);
314 REPORTER_ASSERT(reporter, 0 == stats.fTotal);
319 REPORTER_ASSERT(reporter, nullptr == TestingAccess::GetBackingTexture(&cache));
324 create_layers(reporter, &cache, *picture, kInitialNumLayers, 0);
331 REPORTER_ASSERT(reporter, layer);
333 lock_layer(reporter, &cache, layer);
338 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
339 REPORTER_ASSERT(reporter, 2 == stats.fNumNonPurgeable);
348 REPORTER_ASSERT(reporter, layer);
355 REPORTER_ASSERT(reporter, TestingAccess::NumLayers(&cache) == 0);
359 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
360 REPORTER_ASSERT(reporter, 1 == stats.fNumPurgeable);
361 REPORTER_ASSERT(reporter, 1 == stats.fNumNonPurgeable);
368 REPORTER_ASSERT(reporter, 2 == stats.fTotal);
369 REPORTER_ASSERT(reporter, 2 == stats.fNumPurgeable);