Lines Matching full:layer

8 // Disabling this test since it is for the layer hoister which is current disabled.
38 static int Uses(GrCachedLayer* layer) {
39 return layer->uses();
57 GrCachedLayer* layer = cache->findLayerOrCreate(picture.uniqueID(),
64 REPORTER_ASSERT(reporter, layer);
67 REPORTER_ASSERT(reporter, temp == layer);
71 REPORTER_ASSERT(reporter, picture.uniqueID() == layer->pictureID());
72 REPORTER_ASSERT(reporter, layer->start() == idOffset + i + 1);
73 REPORTER_ASSERT(reporter, layer->stop() == idOffset + i + 2);
74 REPORTER_ASSERT(reporter, !layer->texture());
75 REPORTER_ASSERT(reporter, !layer->paint());
76 REPORTER_ASSERT(reporter, !layer->isAtlased());
82 GrCachedLayer* layer) {
83 // Make each layer big enough to consume one whole plot in the atlas
91 bool inAtlas = cache->tryToAtlas(layer, desc, &needsRerendering);
93 cache->lock(layer, desc, &needsRerendering);
97 cache->lock(layer, desc, &needsRerendering);
100 REPORTER_ASSERT(reporter, layer->texture());
101 REPORTER_ASSERT(reporter, layer->locked());
103 cache->addUse(layer);
105 REPORTER_ASSERT(reporter, 1 == TestingAccess::Uses(layer));
113 // Add one more layer than can fit in the atlas
139 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
141 REPORTER_ASSERT(reporter, layer);
143 lock_layer(reporter, &cache, layer);
151 REPORTER_ASSERT(reporter, layer->isAtlased());
156 // The 5th layer couldn't fit in the atlas
157 REPORTER_ASSERT(reporter, !layer->isAtlased());
168 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
170 REPORTER_ASSERT(reporter, layer);
171 cache.removeUse(layer);
177 // The floating layer is purgeable the cache is not
185 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
187 REPORTER_ASSERT(reporter, layer);
190 REPORTER_ASSERT(reporter, !layer->locked());
197 REPORTER_ASSERT(reporter, layer->texture());
198 REPORTER_ASSERT(reporter, layer->isAtlased());
201 // The final layer should not be atlased.
202 REPORTER_ASSERT(reporter, !layer->texture());
203 REPORTER_ASSERT(reporter, !layer->isAtlased());
235 // Add an additional layer. Since all the layers are unlocked this
236 // will force out the first atlased layer
238 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
240 REPORTER_ASSERT(reporter, layer);
242 lock_layer(reporter, &cache, layer);
243 cache.removeUse(layer);
249 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
254 REPORTER_ASSERT(reporter, layer);
255 REPORTER_ASSERT(reporter, !layer->locked());
256 REPORTER_ASSERT(reporter, layer->texture());
257 REPORTER_ASSERT(reporter, layer->isAtlased());
261 REPORTER_ASSERT(reporter, layer);
263 REPORTER_ASSERT(reporter, !layer->texture());
264 REPORTER_ASSERT(reporter, !layer->isAtlased());
268 REPORTER_ASSERT(reporter, nullptr == layer);
327 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
329 REPORTER_ASSERT(reporter, layer);
331 lock_layer(reporter, &cache, layer);
344 GrCachedLayer* layer = TestingAccess::Find(&cache, picture->uniqueID(), SkMatrix::I(),
346 REPORTER_ASSERT(reporter, layer);
347 cache.removeUse(layer);