Lines Matching defs:atlas
81 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas,
83 REPORTER_ASSERT(r, expectedActive == atlas->numActivePages());
84 REPORTER_ASSERT(r, expectedMax == atlas->maxPages());
85 REPORTER_ASSERT(r, expectedAlloced == atlas->numAllocated_TestingOnly());
113 static bool fill_plot(GrDrawOpAtlas* atlas,
125 code = atlas->addToAtlas(resourceProvider, target, kPlotSize, kPlotSize,
149 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make(
161 check(reporter, atlas.get(), 0, 4, 0);
167 atlas.get(), resourceProvider, &uploadTarget, &atlasLocators[i], i * 32);
169 check(reporter, atlas.get(), 1, 4, 1);
172 atlas->instantiate(&onFlushResourceProvider);
173 check(reporter, atlas.get(), 1, 4, 1);
177 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasLocator, 4 * 32);
179 check(reporter, atlas.get(), 2, 4, 2);
183 atlas->setLastUseToken(atlasLocators[0], uploadTarget.tokenTracker()->nextDrawToken());
186 atlas->compact(uploadTarget.tokenTracker()->nextTokenToFlush());
189 check(reporter, atlas.get(), 1, 4, 1);
196 // when allocating an atlas page.
240 // Modify the atlas manager so it can't allocate any pages. This will force a failure