/external/skqp/src/shaders/ |
D | SkPictureShader.cpp | 184 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader() local 189 SkScalar tileArea = scaledSize.width() * scaledSize.height(); in refBitmapShader() 192 scaledSize.set(scaledSize.width() * clampScale, in refBitmapShader() 193 scaledSize.height() * clampScale); in refBitmapShader() 198 if (scaledSize.width() > maxTextureSize || scaledSize.height() > maxTextureSize) { in refBitmapShader() 199 … SkScalar downScale = maxTextureSize / SkMaxScalar(scaledSize.width(), scaledSize.height()); in refBitmapShader() 200 scaledSize.set(SkScalarFloorToScalar(scaledSize.width() * downScale), in refBitmapShader() 201 SkScalarFloorToScalar(scaledSize.height() * downScale)); in refBitmapShader() 206 const SkISize tileSize = scaledSize.toCeil(); in refBitmapShader()
|
/external/skqp/src/android/ |
D | SkAnimatedImage.cpp | 21 SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess) { in Make() argument 26 SkISize decodeSize = scaledSize; in Make() 29 && scaledSize.width() < decodeInfo.width() in Make() 30 && scaledSize.height() < decodeInfo.height()) { in Make() 35 auto image = sk_sp<SkAnimatedImage>(new SkAnimatedImage(std::move(codec), scaledSize, in Make() 51 const auto scaledSize = decodeInfo.dimensions(); in Make() local 52 const auto cropRect = SkIRect::MakeSize(scaledSize); in Make() 53 auto image = sk_sp<SkAnimatedImage>(new SkAnimatedImage(std::move(codec), scaledSize, in Make() 65 SkAnimatedImage::SkAnimatedImage(std::unique_ptr<SkAndroidCodec> codec, SkISize scaledSize, in SkAnimatedImage() argument 68 , fScaledSize(scaledSize) in SkAnimatedImage()
|
D | SkBitmapRegionCodec.cpp | 49 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() local 53 SkImageInfo decodeInfo = SkImageInfo::Make(scaledSize.width(), scaledSize.height(), in decodeRegion() 59 int scaledOutWidth = scaledSize.width(); in decodeRegion() 60 int scaledOutHeight = scaledSize.height(); in decodeRegion()
|
/external/skia/src/android/ |
D | SkAnimatedImage.cpp | 68 auto scaledSize = requestedInfo.dimensions(); in SkAnimatedImage() local 78 fMatrix = SkEncodedOriginToMatrix(origin, scaledSize.width(), scaledSize.height()); in SkAnimatedImage() 84 scaledSize = { scaledSize.height(), scaledSize.width() }; in SkAnimatedImage() 88 auto decodeSize = scaledSize; in SkAnimatedImage() 96 if (scaledSize != fDecodeInfo.dimensions()) { in SkAnimatedImage() 97 float scaleX = (float) scaledSize.width() / fDecodeInfo.width(); in SkAnimatedImage() 98 float scaleY = (float) scaledSize.height() / fDecodeInfo.height(); in SkAnimatedImage()
|
/external/skqp/bench/ |
D | AndroidCodecBench.cpp | 33 SkISize scaledSize = codec->getSampledDimensions(fSampleSize); in onDelayedSetup() local 35 fInfo = codec->getInfo().makeWH(scaledSize.width(), scaledSize.height()) in onDelayedSetup()
|
/external/skia/client_utils/android/ |
D | BitmapRegionDecoder.cpp | 79 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() local 84 SkImageInfo::Make(scaledSize, dstColorType, dstAlphaType, dstColorSpace); in decodeRegion() 89 int scaledOutWidth = scaledSize.width(); in decodeRegion() 90 int scaledOutHeight = scaledSize.height(); in decodeRegion()
|
/external/skia/gm/ |
D | animated_image_orientation.cpp | 110 SkISize scaledSize = { SkScalarFloorToInt(unscaledSize.width() * scale) , in onDraw() local 112 info = info.makeDimensions(scaledSize); in onDraw() 114 auto cropRect = SkIRect::MakeSize(scaledSize); in onDraw() 117 SkRect::Make(scaledSize)); in onDraw()
|
/external/skia/bench/ |
D | AndroidCodecBench.cpp | 33 SkISize scaledSize = codec->getSampledDimensions(fSampleSize); in onDelayedSetup() local 35 fInfo = codec->getInfo().makeDimensions(scaledSize).makeColorType(kN32_SkColorType); in onDelayedSetup()
|
/external/skqp/src/codec/ |
D | SkSampledCodec.cpp | 92 SkISize scaledSize = this->getSampledDimensions(sampleSize); in onGetAndroidPixels() local 93 if (!this->codec()->dimensionsSupported(scaledSize)) { in onGetAndroidPixels() 104 const SkImageInfo scaledInfo = info.makeWH(scaledSize.width(), scaledSize.height()); in onGetAndroidPixels() 137 scaledSize.height()); in onGetAndroidPixels()
|
/external/skqp/include/android/ |
D | SkAnimatedImage.h | 36 SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess); 144 SkAnimatedImage(std::unique_ptr<SkAndroidCodec>, SkISize scaledSize,
|
/external/skia/src/codec/ |
D | SkSampledCodec.cpp | 88 SkISize scaledSize = this->getSampledDimensions(sampleSize); in onGetAndroidPixels() local 89 if (!this->codec()->dimensionsSupported(scaledSize)) { in onGetAndroidPixels() 100 const SkImageInfo scaledInfo = info.makeDimensions(scaledSize); in onGetAndroidPixels() 135 scaledSize.height()); in onGetAndroidPixels()
|
/external/deqp/framework/common/ |
D | tcuTestLog.cpp | 300 IVec3 scaledSize = computeScaledSize(IVec3(width, height, depth), MAX_IMAGE_SIZE_3D); in writeImage() local 301 int w = scaledSize.x(); in writeImage() 302 int h = scaledSize.y(); in writeImage() 303 int d = scaledSize.z(); in writeImage()
|
/external/skia/tests/ |
D | AnimatedImageTest.cpp | 100 SkISize scaledSize; in DEF_TEST() member 139 auto image = SkAnimatedImage::Make(std::move(codec), info.makeDimensions(rec.scaledSize), in DEF_TEST()
|
/external/skia/src/shaders/ |
D | SkPictureShader.cpp | 183 const SkSize scaledSize = [&]() { in Make() local 213 const SkISize tileSize = scaledSize.toCeil(); in Make()
|