Loading libs/hwui/OpenGLRenderer.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -1179,6 +1179,10 @@ void OpenGLRenderer::clearLayerRegions() { delete bounds; } // We must clear the list of dirty rects before we // call setupDraw() to prevent stencil setup to do // the same thing again mLayers.clear(); setupDraw(false); setupDrawColor(0.0f, 0.0f, 0.0f, 1.0f); Loading @@ -1195,10 +1199,9 @@ void OpenGLRenderer::clearLayerRegions() { for (uint32_t i = 0; i < count; i++) { delete mLayers.itemAt(i); } } mLayers.clear(); } } /////////////////////////////////////////////////////////////////////////////// // Transforms Loading libs/hwui/font/Font.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,10 @@ void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset += glyph->mBitmapTop + height; SkPoint destination[4]; measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); if (!ok) { ALOGW("The path for drawTextOnPath is empty or null"); } // Move along the tangent and offset by the normal destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, Loading Loading
libs/hwui/OpenGLRenderer.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -1179,6 +1179,10 @@ void OpenGLRenderer::clearLayerRegions() { delete bounds; } // We must clear the list of dirty rects before we // call setupDraw() to prevent stencil setup to do // the same thing again mLayers.clear(); setupDraw(false); setupDrawColor(0.0f, 0.0f, 0.0f, 1.0f); Loading @@ -1195,10 +1199,9 @@ void OpenGLRenderer::clearLayerRegions() { for (uint32_t i = 0; i < count; i++) { delete mLayers.itemAt(i); } } mLayers.clear(); } } /////////////////////////////////////////////////////////////////////////////// // Transforms Loading
libs/hwui/font/Font.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,10 @@ void Font::drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset += glyph->mBitmapTop + height; SkPoint destination[4]; measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent); if (!ok) { ALOGW("The path for drawTextOnPath is empty or null"); } // Move along the tangent and offset by the normal destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset, Loading