Loading core/jni/android_view_GLES20Canvas.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -602,6 +602,7 @@ static void renderText(OpenGLRenderer* renderer, const jchar* text, int count, int bytesCount = glyphsCount * sizeof(jchar); const SkRect& r = value->getBounds(); android::uirenderer::Rect bounds(r.fLeft, r.fTop, r.fRight, r.fBottom); bounds.translate(x, y); renderer->drawText((const char*) glyphs, bytesCount, glyphsCount, x + xOffsetForTextAlign(paint, totalAdvance), y, positions, Loading Loading @@ -637,6 +638,7 @@ static void renderTextRun(OpenGLRenderer* renderer, const jchar* text, int bytesCount = glyphsCount * sizeof(jchar); const SkRect& r = value->getBounds(); android::uirenderer::Rect bounds(r.fLeft, r.fTop, r.fRight, r.fBottom); bounds.translate(x, y); renderer->drawText((const char*) glyphs, bytesCount, glyphsCount, x + xOffsetForTextAlign(paint, totalAdvance), y, positions, Loading libs/hwui/DisplayListOp.h +0 −1 Original line number Diff line number Diff line Loading @@ -1295,7 +1295,6 @@ public: const float* positions, SkPaint* paint, float totalAdvance, const Rect& bounds) : DrawBoundedOp(bounds, paint), mText(text), mBytesCount(bytesCount), mCount(count), mX(x), mY(y), mPositions(positions), mTotalAdvance(totalAdvance) { mLocalBounds.translate(x,y); memset(&mPrecacheTransform.data[0], 0xff, 16 * sizeof(float)); } Loading Loading
core/jni/android_view_GLES20Canvas.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -602,6 +602,7 @@ static void renderText(OpenGLRenderer* renderer, const jchar* text, int count, int bytesCount = glyphsCount * sizeof(jchar); const SkRect& r = value->getBounds(); android::uirenderer::Rect bounds(r.fLeft, r.fTop, r.fRight, r.fBottom); bounds.translate(x, y); renderer->drawText((const char*) glyphs, bytesCount, glyphsCount, x + xOffsetForTextAlign(paint, totalAdvance), y, positions, Loading Loading @@ -637,6 +638,7 @@ static void renderTextRun(OpenGLRenderer* renderer, const jchar* text, int bytesCount = glyphsCount * sizeof(jchar); const SkRect& r = value->getBounds(); android::uirenderer::Rect bounds(r.fLeft, r.fTop, r.fRight, r.fBottom); bounds.translate(x, y); renderer->drawText((const char*) glyphs, bytesCount, glyphsCount, x + xOffsetForTextAlign(paint, totalAdvance), y, positions, Loading
libs/hwui/DisplayListOp.h +0 −1 Original line number Diff line number Diff line Loading @@ -1295,7 +1295,6 @@ public: const float* positions, SkPaint* paint, float totalAdvance, const Rect& bounds) : DrawBoundedOp(bounds, paint), mText(text), mBytesCount(bytesCount), mCount(count), mX(x), mY(y), mPositions(positions), mTotalAdvance(totalAdvance) { mLocalBounds.translate(x,y); memset(&mPrecacheTransform.data[0], 0xff, 16 * sizeof(float)); } Loading