Searched refs:halfW (Results 1 – 7 of 7) sorted by relevance
/external/skqp/src/effects/ |
D | SkRRectsGaussianEdgeMaskFilter.cpp | 65 SkScalar halfW = 0.5f * rr.rect().width(); in compute_rrect_normalized_dist() local 75 return SkTPin(halfW * invRad - scaledDist, 0.0f, 1.0f); in compute_rrect_normalized_dist() 78 SkScalar xDist = (halfW - delta.fX) * invRad; in compute_rrect_normalized_dist() 93 SkScalar insetDist = SkTMin(SkTMax(rad, radii.fX), SkTMin(halfW, halfH)); in compute_rrect_normalized_dist() 99 SkVector coneBottom = { halfW - insetDist, halfH - insetDist }; in compute_rrect_normalized_dist() 102 SkVector cornerTop = { halfW - radii.fX - coneBottom.fX, halfH - coneBottom.fY }; in compute_rrect_normalized_dist() 103 SkVector cornerRight = { halfW - coneBottom.fX, halfH - radii.fY - coneBottom.fY }; in compute_rrect_normalized_dist() 110 SkScalar xDist = (halfW - delta.fX) * invRad; in compute_rrect_normalized_dist()
|
/external/skia/src/effects/ |
D | SkRRectsGaussianEdgeMaskFilter.cpp | 65 SkScalar halfW = 0.5f * rr.rect().width(); in compute_rrect_normalized_dist() local 75 return SkTPin(halfW * invRad - scaledDist, 0.0f, 1.0f); in compute_rrect_normalized_dist() 78 SkScalar xDist = (halfW - delta.fX) * invRad; in compute_rrect_normalized_dist() 93 SkScalar insetDist = SkTMin(SkTMax(rad, radii.fX), SkTMin(halfW, halfH)); in compute_rrect_normalized_dist() 99 SkVector coneBottom = { halfW - insetDist, halfH - insetDist }; in compute_rrect_normalized_dist() 102 SkVector cornerTop = { halfW - radii.fX - coneBottom.fX, halfH - coneBottom.fY }; in compute_rrect_normalized_dist() 103 SkVector cornerRight = { halfW - coneBottom.fX, halfH - radii.fY - coneBottom.fY }; in compute_rrect_normalized_dist() 110 SkScalar xDist = (halfW - delta.fX) * invRad; in compute_rrect_normalized_dist()
|
/external/skqp/gm/ |
D | xfermodes.cpp | 146 SkScalar halfW = SkIntToScalar(W) / 2; in draw_mode() local 149 SkRect r = SkRect::MakeXYWH(x + halfW, y, halfW, in draw_mode()
|
D | occludedrrectblur.cpp | 14 SkScalar halfW = 0.5f * src.width(); in offset_center_to() local 17 return SkRect::MakeLTRB(x - halfW, y - halfH, x + halfW, y + halfH); in offset_center_to()
|
/external/skia/gm/ |
D | xfermodes.cpp | 146 SkScalar halfW = SkIntToScalar(W) / 2; in draw_mode() local 149 SkRect r = SkRect::MakeXYWH(x + halfW, y, halfW, in draw_mode()
|
D | occludedrrectblur.cpp | 14 SkScalar halfW = 0.5f * src.width(); in offset_center_to() local 17 return SkRect::MakeLTRB(x - halfW, y - halfH, x + halfW, y + halfH); in offset_center_to()
|
/external/deqp/framework/referencerenderer/ |
D | rrRenderer.cpp | 821 const float halfW = (float)(viewport.width) / 2.0f; in transformVertexClipCoordsToWindowCoords() local 823 const float oX = (float)viewport.left + halfW; in transformVertexClipCoordsToWindowCoords() 828 packet.position = tcu::Vec4(packet.position.x()*halfW + oX, in transformVertexClipCoordsToWindowCoords()
|