• Home
  • Raw
  • Download

Lines Matching refs:atlas

79 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas,  in check()  argument
81 REPORTER_ASSERT(r, expectedActive == atlas->numActivePages()); in check()
82 REPORTER_ASSERT(r, expectedMax == atlas->maxPages()); in check()
83 REPORTER_ASSERT(r, expectedAlloced == atlas->numAllocated_TestingOnly()); in check()
111 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot() argument
124 code = atlas->addToAtlas(resourceProvider, atlasID, target, kPlotSize, kPlotSize, in fill_plot()
145 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
153 check(reporter, atlas.get(), 0, 4, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
158 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasIDs[i], i*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
160 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 atlas->instantiate(&onFlushResourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
164 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
168 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasID, 4*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
170 check(reporter, atlas.get(), 2, 4, 2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
174 atlas->setLastUseToken(atlasIDs[0], uploadTarget.tokenTracker()->nextDrawToken()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
177 atlas->compact(uploadTarget.tokenTracker()->nextTokenToFlush()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
180 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()