Home
last modified time | relevance | path

Searched refs:scaledSize (Results 1 – 16 of 16) sorted by relevance

/third_party/flutter/skia/src/shaders/
DSkPictureShader.cpp209 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader() local
214 SkScalar tileArea = scaledSize.width() * scaledSize.height(); in refBitmapShader()
217 scaledSize.set(scaledSize.width() * clampScale, in refBitmapShader()
218 scaledSize.height() * clampScale); in refBitmapShader()
223 if (scaledSize.width() > maxTextureSize || scaledSize.height() > maxTextureSize) { in refBitmapShader()
224 … SkScalar downScale = maxTextureSize / SkMaxScalar(scaledSize.width(), scaledSize.height()); in refBitmapShader()
225 scaledSize.set(SkScalarFloorToScalar(scaledSize.width() * downScale), in refBitmapShader()
226 SkScalarFloorToScalar(scaledSize.height() * downScale)); in refBitmapShader()
231 const SkISize tileSize = scaledSize.toCeil(); in refBitmapShader()
/third_party/flutter/skia/src/android/
DSkAnimatedImage.cpp22 SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess) { in Make() argument
26 auto info = codec->getInfo().makeWH(scaledSize.width(), scaledSize.height()); in Make()
36 auto scaledSize = requestedInfo.dimensions(); in Make() local
39 || scaledSize.width() >= decodeInfo.width() in Make()
40 || scaledSize.height() >= decodeInfo.height()) { in Make()
46 auto image = sk_sp<SkAnimatedImage>(new SkAnimatedImage(std::move(codec), scaledSize, in Make()
62 const auto scaledSize = decodeInfo.dimensions(); in Make() local
63 const auto cropRect = SkIRect::MakeSize(scaledSize); in Make()
64 auto image = sk_sp<SkAnimatedImage>(new SkAnimatedImage(std::move(codec), scaledSize, in Make()
76 SkAnimatedImage::SkAnimatedImage(std::unique_ptr<SkAndroidCodec> codec, SkISize scaledSize, in SkAnimatedImage() argument
[all …]
DSkBitmapRegionCodec.cpp49 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()
/third_party/skia/src/android/
DSkAnimatedImage.cpp68 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()
/third_party/skia/client_utils/android/
DBitmapRegionDecoder.cpp79 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()
/third_party/flutter/skia/bench/
DAndroidCodecBench.cpp33 SkISize scaledSize = codec->getSampledDimensions(fSampleSize); in onDelayedSetup() local
35 fInfo = codec->getInfo().makeWH(scaledSize.width(), scaledSize.height()) in onDelayedSetup()
/third_party/skia/gm/
Danimated_image_orientation.cpp110 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()
/third_party/flutter/skia/src/codec/
DSkSampledCodec.cpp92 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()
/third_party/skia/bench/
DAndroidCodecBench.cpp33 SkISize scaledSize = codec->getSampledDimensions(fSampleSize); in onDelayedSetup() local
35 fInfo = codec->getInfo().makeDimensions(scaledSize).makeColorType(kN32_SkColorType); in onDelayedSetup()
/third_party/flutter/skia/include/android/
DSkAnimatedImage.h49 SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess);
157 SkAnimatedImage(std::unique_ptr<SkAndroidCodec>, SkISize scaledSize,
/third_party/skia/src/codec/
DSkSampledCodec.cpp88 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()
/third_party/flutter/engine/flutter/shell/platform/darwin/macos/framework/Source/
DFlutterEngine.mm241 CGSize scaledSize = [view convertRectToBacking:view.bounds].size;
242 double pixelRatio = view.bounds.size.width == 0 ? 1 : scaledSize.width / view.bounds.size.width;
246 .width = static_cast<size_t>(scaledSize.width),
247 .height = static_cast<size_t>(scaledSize.height),
/third_party/vk-gl-cts/framework/common/
DtcuTestLog.cpp304 IVec3 scaledSize = computeScaledSize(IVec3(width, height, depth), MAX_IMAGE_SIZE_3D); in writeImage() local
305 int w = scaledSize.x(); in writeImage()
306 int h = scaledSize.y(); in writeImage()
307 int d = scaledSize.z(); in writeImage()
/third_party/skia/tests/
DAnimatedImageTest.cpp100 SkISize scaledSize; in DEF_TEST() member
139 auto image = SkAnimatedImage::Make(std::move(codec), info.makeDimensions(rec.scaledSize), in DEF_TEST()
/third_party/skia/src/shaders/
DSkPictureShader.cpp183 const SkSize scaledSize = [&]() { in Make() local
213 const SkISize tileSize = scaledSize.toCeil(); in Make()
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/transformations/
Dtransformations_demo_gesture_transformable.dart310 final Size scaledSize = widget.size / scale;
314 _boundaryRect.right - scaledSize.width,
315 _boundaryRect.bottom - scaledSize.height,