Home
last modified time | relevance | path

Searched refs:shrinkAmount (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/libs/gui/
DGLConsumerUtils.cpp70 float shrinkAmount = 0.0f; in computeTransformMatrix() local
88 shrinkAmount = 0.5; in computeTransformMatrix()
94 shrinkAmount = 1.0; in computeTransformMatrix()
101 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix()
102 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / in computeTransformMatrix()
106 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / in computeTransformMatrix()
108 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / in computeTransformMatrix()
/frameworks/base/libs/hwui/pipeline/skia/
DLayerDrawable.cpp84 float shrinkAmount = 0.0f; in adjustCropForYUV() local
90 shrinkAmount = 0.5f; in adjustCropForYUV()
98 cropRect->inset(shrinkAmount, 0); in adjustCropForYUV()
102 cropRect->inset(0, shrinkAmount); in adjustCropForYUV()
/frameworks/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp300 float shrinkAmount = 0.0f; in computeTransformMatrix() local
318 shrinkAmount = 0.5; in computeTransformMatrix()
324 shrinkAmount = 1.0; in computeTransformMatrix()
331 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; in computeTransformMatrix()
332 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / bufferWidth; in computeTransformMatrix()
335 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / bufferHeight; in computeTransformMatrix()
336 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / bufferHeight; in computeTransformMatrix()
/frameworks/base/libs/hwui/
DReadback.cpp134 float shrinkAmount = 0.0f; in copySurfaceInto() local
140 shrinkAmount = 0.5f; in copySurfaceInto()
148 imageSrcRect = imageSrcRect.makeInset(shrinkAmount, 0); in copySurfaceInto()
151 imageSrcRect = imageSrcRect.makeInset(0, shrinkAmount); in copySurfaceInto()