Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkPictureShader.cpp178 SkSize scaledSize = SkSize::Make(SkScalarAbs(scale.x() * fTile.width()), in refBitmapShader() local
183 SkScalar tileArea = SkScalarMul(scaledSize.width(), scaledSize.height()); in refBitmapShader()
186 scaledSize.set(SkScalarMul(scaledSize.width(), clampScale), in refBitmapShader()
187 SkScalarMul(scaledSize.height(), clampScale)); in refBitmapShader()
192 if (scaledSize.width() > maxTextureSize || scaledSize.height() > maxTextureSize) { in refBitmapShader()
193 … SkScalar downScale = maxTextureSize / SkMaxScalar(scaledSize.width(), scaledSize.height()); in refBitmapShader()
194 scaledSize.set(SkScalarFloorToScalar(SkScalarMul(scaledSize.width(), downScale)), in refBitmapShader()
195 SkScalarFloorToScalar(SkScalarMul(scaledSize.height(), downScale))); in refBitmapShader()
200 SkISize tileSize = scaledSize.toRound(); in refBitmapShader()
DSkImageGenerator.cpp121 bool SkImageGenerator::generateScaledPixels(const SkISize& scaledSize, in generateScaledPixels() argument
124 if (scaledSize.width() <= 0 || scaledSize.height() <= 0) { in generateScaledPixels()
132 if (!SkIRect::MakeWH(scaledSize.width(), scaledSize.height()).contains(subset)) { in generateScaledPixels()
135 return this->onGenerateScaledPixels(scaledSize, subsetOrigin, subsetPixels); in generateScaledPixels()
DSkPictureImageGenerator.cpp99 bool SkPictureImageGenerator::onGenerateScaledPixels(const SkISize& scaledSize, in onGenerateScaledPixels() argument
102 int w = scaledSize.width(); in onGenerateScaledPixels()
103 int h = scaledSize.height(); in onGenerateScaledPixels()
/external/skia/src/android/
DSkBitmapRegionCodec.cpp50 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() local
55 SkImageInfo decodeInfo = SkImageInfo::Make(scaledSize.width(), scaledSize.height(), in decodeRegion()
81 int scaledOutWidth = scaledSize.width(); in decodeRegion()
82 int scaledOutHeight = scaledSize.height(); in decodeRegion()
/external/skia/bench/
DAndroidCodecBench.cpp33 SkISize scaledSize = codec->getSampledDimensions(fSampleSize); in onDelayedSetup() local
35 fInfo = codec->getInfo().makeWH(scaledSize.width(), scaledSize.height()) in onDelayedSetup()
/external/skia/src/codec/
DSkSampledCodec.cpp92 SkISize scaledSize = this->getSampledDimensions(sampleSize); in onGetAndroidPixels() local
93 if (!this->codec()->dimensionsSupported(scaledSize)) { in onGetAndroidPixels()
106 scaledSize.height()); in onGetAndroidPixels()
108 SkCodec::Result result = this->codec()->startScanlineDecode(info.makeWH(scaledSize.width(), in onGetAndroidPixels()
109 scaledSize.height()), &codecOptions, options.fColorPtr, options.fColorCount); in onGetAndroidPixels()
/external/deqp/framework/common/
DtcuTestLog.cpp294 IVec3 scaledSize = computeScaledSize(IVec3(width, height, depth), MAX_IMAGE_SIZE_3D); in writeImage() local
295 int w = scaledSize.x(); in writeImage()
296 int h = scaledSize.y(); in writeImage()
297 int d = scaledSize.z(); in writeImage()
/external/skia/include/core/
DSkImageGenerator.h203 bool generateScaledPixels(const SkISize& scaledSize, const SkIPoint& subsetOrigin,