Lines Matching defs:dimensions
43 // The resulting path will be centered at (0,0) and its size will match 'dimensions'
44 static SkPath make_gear(SkISize dimensions, int numTeeth) {
45 SkVector outerRad{ dimensions.fWidth / 2.0f, dimensions.fHeight / 2.0f };
46 SkVector innerRad{ dimensions.fWidth / 2.5f, dimensions.fHeight / 2.5f };
65 float fInnerRad = 0.1f * std::min(dimensions.fWidth, dimensions.fHeight);
74 SkBitmap render_level(SkISize dimensions, SkColor color, SkColorType colorType, bool opaque) {
75 SkPath path = make_gear(dimensions, 9);
77 SkImageInfo ii = SkImageInfo::Make(dimensions.width(), dimensions.height(),
91 c.translate(dimensions.width() / 2.0f, dimensions.height() / 2.0f);
102 const SkISize dimensions,
106 size_t totalSize = SkCompressedDataSize(compression, dimensions, nullptr, true);
111 int numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1;
126 SkISize levelDims = dimensions;
151 dimensions.width(),
152 dimensions.height(),
156 dimensions.width(),
157 dimensions.height(),
186 // These dimensions force the top two mip levels to be 1x3 and 1x1
190 // These dimensions force the top three mip levels to be 1x7, 1x3 and 1x1