Searched refs:desiredScale (Results 1 – 9 of 9) sorted by relevance
142 SkISize getScaledDimensions(float desiredScale) const { in getScaledDimensions() argument144 SkASSERT(desiredScale > 0.0f); in getScaledDimensions()145 if (desiredScale <= 0.0f) { in getScaledDimensions()151 if (desiredScale >= 1.0f) { in getScaledDimensions()154 return this->onGetScaledDimensions(desiredScale); in getScaledDimensions()
769 SkISize SkRawCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()770 SkASSERT(desiredScale <= 1.f); in onGetScaledDimensions()781 if (desiredScale < 80.f / shortEdge) { in onGetScaledDimensions()782 desiredScale = 80.f / shortEdge; in onGetScaledDimensions()787 if (fDngImage->isXtransImage() && desiredScale > 1.f / 3.f && desiredScale < 1.f) { in onGetScaledDimensions()788 desiredScale = 1.f / 3.f; in onGetScaledDimensions()792 const float finalScale = std::floor(1.f/ desiredScale); in onGetScaledDimensions()
319 SkISize SkJpegCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()324 if (desiredScale >= 0.9375) { in onGetScaledDimensions()326 } else if (desiredScale >= 0.8125) { in onGetScaledDimensions()328 } else if (desiredScale >= 0.6875f) { in onGetScaledDimensions()330 } else if (desiredScale >= 0.5625f) { in onGetScaledDimensions()332 } else if (desiredScale >= 0.4375f) { in onGetScaledDimensions()334 } else if (desiredScale >= 0.3125f) { in onGetScaledDimensions()336 } else if (desiredScale >= 0.1875f) { in onGetScaledDimensions()
44 SkISize onGetScaledDimensions(float desiredScale) const override;
35 SkISize onGetScaledDimensions(float desiredScale) const override;
148 SkISize SkWebpCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()152 dim.fWidth = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions()153 dim.fHeight = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
42 SkISize onGetScaledDimensions(float desiredScale) const override;
204 SkISize SkIcoCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()210 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions()