Home
last modified time | relevance | path

Searched refs:nPenX (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/font/
DFont.cpp145 int nPenX = x + glyph->mBitmapLeft; in measureCachedGlyph() local
151 if (bounds->left > nPenX) { in measureCachedGlyph()
152 bounds->left = nPenX; in measureCachedGlyph()
154 if (bounds->right < nPenX + width) { in measureCachedGlyph()
155 bounds->right = nPenX + width; in measureCachedGlyph()
167 float nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph() local
175 mState->appendMeshQuad(nPenX, nPenY, u1, v2, in drawCachedGlyph()
176 nPenX + width, nPenY, u2, v2, in drawCachedGlyph()
177 nPenX + width, nPenY - height, u2, v1, in drawCachedGlyph()
178 nPenX, nPenY - height, u1, v1, glyph->mCacheTexture); in drawCachedGlyph()
/frameworks/rs/
DrsFont.cpp96 int32_t nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph() local
107 state->appendMeshQuad(nPenX, nPenY, 0, u1, v2, in drawCachedGlyph()
108 nPenX + width, nPenY, 0, u2, v2, in drawCachedGlyph()
109 nPenX + width, nPenY - height, 0, u2, v1, in drawCachedGlyph()
110 nPenX, nPenY - height, 0, u1, v1); in drawCachedGlyph()
115 int32_t nPenX = x + glyph->mBitmapLeft; in drawCachedGlyph() local
127 for (cacheX = glyph->mBitmapMinX, bX = nPenX; cacheX < endX; cacheX++, bX++) { in drawCachedGlyph()
140 int32_t nPenX = x + glyph->mBitmapLeft; in measureCachedGlyph() local
150 if (bounds->left > nPenX) { in measureCachedGlyph()
151 bounds->left = nPenX; in measureCachedGlyph()
[all …]