Home
last modified time | relevance | path

Searched refs:fMaxAtlasSize (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/src/gpu/
DGrDynamicAtlas.cpp78 , fMaxAtlasSize(maxAtlasSize) in GrDynamicAtlas()
80 SkASSERT(fMaxAtlasSize <= caps.maxTextureSize()); in GrDynamicAtlas()
89 fWidth = std::min(SkNextPow2(initialSize.width()), fMaxAtlasSize); in reset()
90 fHeight = std::min(SkNextPow2(initialSize.height()), fMaxAtlasSize); in reset()
145 if (std::max(h, w) > fMaxAtlasSize) { in internalPlaceRect()
155 fWidth = std::min(SkNextPow2(w), fMaxAtlasSize); in internalPlaceRect()
158 fHeight = std::min(SkNextPow2(h), fMaxAtlasSize); in internalPlaceRect()
171 if (fWidth >= fMaxAtlasSize && fHeight >= fMaxAtlasSize) { in internalPlaceRect()
176 fHeight = std::min(fHeight * 2, fMaxAtlasSize); in internalPlaceRect()
180 fWidth = std::min(fWidth * 2, fMaxAtlasSize); in internalPlaceRect()
[all …]
DGrDynamicAtlas.h58 int maxAtlasSize() const { return fMaxAtlasSize; } in maxAtlasSize()
85 const int fMaxAtlasSize; variable
/third_party/skia/gm/
Dmanypathatlases.cpp26 ManyPathAtlasesGM(int maxAtlasSize) : fMaxAtlasSize(maxAtlasSize) {} in ManyPathAtlasesGM()
28 SkString onShortName() override { return SkStringPrintf("manypathatlases_%i", fMaxAtlasSize); } in onShortName()
33 ctxOptions->fMaxTextureAtlasSize = fMaxAtlasSize; in modifyGrContextOptions()
68 const int fMaxAtlasSize; member in skiagm::ManyPathAtlasesGM