• Home
  • Raw
  • Download

Lines Matching refs:atlas

81 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas,  in check()  argument
83 REPORTER_ASSERT(r, expectedActive == atlas->numActivePages()); in check()
84 REPORTER_ASSERT(r, expectedMax == atlas->maxPages()); in check()
85 REPORTER_ASSERT(r, expectedAlloced == atlas->numAllocated_TestingOnly()); in check()
113 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot() argument
125 code = atlas->addToAtlas(resourceProvider, target, kPlotSize, kPlotSize, in fill_plot()
149 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
158 check(reporter, atlas.get(), 0, 4, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
164 atlas.get(), resourceProvider, &uploadTarget, &atlasLocators[i], i * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
166 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
169 atlas->instantiate(&onFlushResourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
170 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
174 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasLocator, 4 * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
176 check(reporter, atlas.get(), 2, 4, 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
180 atlas->setLastUseToken(atlasLocators[0], uploadTarget.tokenTracker()->nextDrawToken()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
183 atlas->compact(uploadTarget.tokenTracker()->nextTokenToFlush()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
186 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()