Loading libs/hwui/Line.h +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ public: mXDivs, mYDivs, mXDivsCount, mYDivsCount); tx = -gLineAABias; ty = lineWidth == 1.0f ? -gLineAABias : -half - gLineAABias; ty = lineWidth <= 1.0f ? -gLineAABias : -half - gLineAABias; } inline GLvoid* getVertices() const { Loading libs/hwui/OpenGLRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -633,7 +633,7 @@ void OpenGLRenderer::drawLines(float* points, int count, const SkPaint* paint) { mLine.update(points[i], points[i + 1], points[i + 2], points[i + 3], strokeWidth, tx, ty); } else { ty = -strokeWidth * 0.5f; ty = strokeWidth <= 1.0f ? 0.0f : -strokeWidth * 0.5f; } const float dx = points[i + 2] - points[i]; Loading Loading
libs/hwui/Line.h +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ public: mXDivs, mYDivs, mXDivsCount, mYDivsCount); tx = -gLineAABias; ty = lineWidth == 1.0f ? -gLineAABias : -half - gLineAABias; ty = lineWidth <= 1.0f ? -gLineAABias : -half - gLineAABias; } inline GLvoid* getVertices() const { Loading
libs/hwui/OpenGLRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -633,7 +633,7 @@ void OpenGLRenderer::drawLines(float* points, int count, const SkPaint* paint) { mLine.update(points[i], points[i + 1], points[i + 2], points[i + 3], strokeWidth, tx, ty); } else { ty = -strokeWidth * 0.5f; ty = strokeWidth <= 1.0f ? 0.0f : -strokeWidth * 0.5f; } const float dx = points[i + 2] - points[i]; Loading