Searched refs:kInsetFrac (Results 1 – 2 of 2) sorted by relevance
272 static const SkScalar kInsetFrac = 0.9f; // Leave a border around object in xlate_and_scale_to_bounds() local276 canvas->scale(SkDoubleToScalar((kInsetFrac * size.fWidth) / bounds.width()), in xlate_and_scale_to_bounds()277 SkDoubleToScalar((kInsetFrac * size.fHeight) / bounds.width())); in xlate_and_scale_to_bounds()279 canvas->scale(SkDoubleToScalar((kInsetFrac * size.fWidth) / bounds.height()), in xlate_and_scale_to_bounds()280 SkDoubleToScalar((kInsetFrac * size.fHeight) / bounds.height())); in xlate_and_scale_to_bounds()
269 static const SkScalar kInsetFrac = 0.9f; // Leave a border around object in xlate_and_scale_to_bounds() local273 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.width()), in xlate_and_scale_to_bounds()274 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.width())); in xlate_and_scale_to_bounds()276 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.height()), in xlate_and_scale_to_bounds()277 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.height())); in xlate_and_scale_to_bounds()