Searched refs:desiredScale (Results 1 – 10 of 10) sorted by relevance
19 SkISize onGetScaledDimensions(float desiredScale) const override { in onGetScaledDimensions() argument23 dim.fWidth = std::max(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions()24 dim.fHeight = std::max(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
752 SkISize SkRawCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()753 SkASSERT(desiredScale <= 1.f); in onGetScaledDimensions()764 if (desiredScale < 80.f / shortEdge) { in onGetScaledDimensions()765 desiredScale = 80.f / shortEdge; in onGetScaledDimensions()770 if (fDngImage->isXtransImage() && desiredScale > 1.f / 3.f && desiredScale < 1.f) { in onGetScaledDimensions()771 desiredScale = 1.f / 3.f; in onGetScaledDimensions()775 const float finalScale = std::floor(1.f/ desiredScale); in onGetScaledDimensions()
244 SkISize SkIcoCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()252 float desiredSize = desiredScale * origWidth * desiredScale * origHeight; in onGetScaledDimensions()254 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions()
313 SkISize SkJpegCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()318 if (desiredScale >= 0.9375) { in onGetScaledDimensions()320 } else if (desiredScale >= 0.8125) { in onGetScaledDimensions()322 } else if (desiredScale >= 0.6875f) { in onGetScaledDimensions()324 } else if (desiredScale >= 0.5625f) { in onGetScaledDimensions()326 } else if (desiredScale >= 0.4375f) { in onGetScaledDimensions()328 } else if (desiredScale >= 0.3125f) { in onGetScaledDimensions()330 } else if (desiredScale >= 0.1875f) { in onGetScaledDimensions()
89 SkISize SkCodecImageGenerator::getScaledDimensions(float desiredScale) const { in getScaledDimensions()90 SkISize size = fCodec->getScaledDimensions(desiredScale); in getScaledDimensions()
44 SkISize onGetScaledDimensions(float desiredScale) const override;
33 SkISize getScaledDimensions(float desiredScale) const;
35 SkISize onGetScaledDimensions(float desiredScale) const override;
41 SkISize onGetScaledDimensions(float desiredScale) const override;
226 SkISize getScaledDimensions(float desiredScale) const { in getScaledDimensions() argument228 SkASSERT(desiredScale > 0.0f); in getScaledDimensions()229 if (desiredScale <= 0.0f) { in getScaledDimensions()235 if (desiredScale >= 1.0f) { in getScaledDimensions()238 return this->onGetScaledDimensions(desiredScale); in getScaledDimensions()