Home
last modified time | relevance | path

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

/external/skia/src/gpu/effects/
DGrTextureDomain.h64 SkScalar wInv = SK_Scalar1 / texture->width(); in MakeTexelDomain() local
67 texelRect.fLeft * wInv, in MakeTexelDomain()
69 texelRect.fRight * wInv, in MakeTexelDomain()
77 SkScalar wInv = SK_Scalar1 / texture->width(); in MakeTexelDomainForMode() local
81 (texelRect.fLeft + inset) * wInv, in MakeTexelDomainForMode()
83 (texelRect.fRight - inset) * wInv, in MakeTexelDomainForMode()
/external/skia/src/gpu/batches/
DGrAAHairLinePathRenderer.cpp432 SkScalar wInv = SkScalarMul(normA.fX, normB.fY) - in intersect_lines() local
434 wInv = SkScalarInvert(wInv); in intersect_lines()
437 result->fX = SkScalarMul(result->fX, wInv); in intersect_lines()
440 result->fY = SkScalarMul(result->fY, wInv); in intersect_lines()
/external/mesa3d/src/mesa/main/
Dlight.c988 GLfloat wInv = (GLfloat)1.0 / light->_Position[3]; in compute_light_positions() local
989 light->_Position[0] *= wInv; in compute_light_positions()
990 light->_Position[1] *= wInv; in compute_light_positions()
991 light->_Position[2] *= wInv; in compute_light_positions()
/external/skia/src/gpu/
DSkGpuDevice.cpp1108 SkScalar wInv = SkScalarInvert(SkIntToScalar(texture->width())); in internalDrawBitmap() local
1110 paintRect.setLTRB(SkScalarMul(srcRect.fLeft, wInv), in internalDrawBitmap()
1112 SkScalarMul(srcRect.fRight, wInv), in internalDrawBitmap()
1122 texMatrix.setScale(wInv, hInv); in internalDrawBitmap()