1 /* 2 * Copyright 2023 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef GrAtlasManagerTools_DEFINED 9 #define GrAtlasManagerTools_DEFINED 10 11 #include "src/gpu/ganesh/GrDrawOpAtlas.h" 12 #include "src/gpu/ganesh/text/GrAtlasManager.h" 13 14 #include <cstddef> 15 16 class GrDirectContext; 17 18 class GrAtlasManagerTools { 19 public: 20 static void Dump(const GrAtlasManager*, GrDirectContext*); 21 static void SetAtlasDimensionsToMinimum(GrAtlasManager*); 22 static void SetMaxPages(GrAtlasManager*, uint32_t maxPages); 23 }; 24 25 class GrDrawOpAtlasTools { 26 public: 27 static int NumAllocated(const GrDrawOpAtlas*); 28 static void SetMaxPages(GrDrawOpAtlas*, uint32_t maxPages); 29 }; 30 31 #endif 32