Lines Matching refs:size
184 SkSize size;
186 if (!m.decomposeScale(&size, nullptr)) {
187 size = {1, 1};
189 size.fWidth *= bounds.width();
190 size.fHeight *= bounds.height();
192 // Clamp the tile size to about 4M pixels
194 SkScalar tileArea = size.width() * size.height();
197 size.set(size.width() * clampScale, size.height() * clampScale);
200 // Scale down the tile size if larger than maxTextureSize for GPU Path
203 if (size.width() > maxTextureSize || size.height() > maxTextureSize) {
204 SkScalar downScale = maxTextureSize / std::max(size.width(),
205 size.height());
206 size.set(SkScalarFloorToScalar(size.width() * downScale),
207 SkScalarFloorToScalar(size.height() * downScale));
210 return size;