Searched refs:desiredScale (Results 1 – 9 of 9) sorted by relevance
108 SkISize getScaledDimensions(float desiredScale) const { in getScaledDimensions() argument110 SkASSERT(desiredScale > 0.0f); in getScaledDimensions()111 if (desiredScale <= 0.0f) { in getScaledDimensions()117 if (desiredScale >= 1.0f) { in getScaledDimensions()120 return this->onGetScaledDimensions(desiredScale); in getScaledDimensions()
116 SkISize SkJpegCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()121 if (desiredScale >= 0.9375) { in onGetScaledDimensions()123 } else if (desiredScale >= 0.8125) { in onGetScaledDimensions()125 } else if (desiredScale >= 0.6875f) { in onGetScaledDimensions()127 } else if (desiredScale >= 0.5625f) { in onGetScaledDimensions()129 } else if (desiredScale >= 0.4375f) { in onGetScaledDimensions()131 } else if (desiredScale >= 0.3125f) { in onGetScaledDimensions()133 } else if (desiredScale >= 0.1875f) { in onGetScaledDimensions()
723 SkISize SkRawCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()724 SkASSERT(desiredScale <= 1.f); in onGetScaledDimensions()735 if (desiredScale < 80.f / shortEdge) { in onGetScaledDimensions()736 desiredScale = 80.f / shortEdge; in onGetScaledDimensions()741 if (fDngImage->isXtransImage() && desiredScale > 1.f / 3.f && desiredScale < 1.f) { in onGetScaledDimensions()742 desiredScale = 1.f / 3.f; in onGetScaledDimensions()746 const float finalScale = std::floor(1.f/ desiredScale); in onGetScaledDimensions()
108 SkISize SkWebpCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()112 dim.fWidth = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions()113 dim.fHeight = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
30 SkISize onGetScaledDimensions(float desiredScale) const override;
43 SkISize onGetScaledDimensions(float desiredScale) const override;
32 SkISize onGetScaledDimensions(float desiredScale) const override;
192 SkISize SkIcoCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()198 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions()
40 SkISize onGetScaledDimensions(float desiredScale) const override;