Loading libs/hwui/Outline.h +8 −1 Original line number Diff line number Diff line Loading @@ -42,8 +42,15 @@ public: mBounds.set(left, top, right, bottom); mRadius = radius; // update mPath to reflect new outline // Reuse memory if previous outline was the same shape (rect or round rect). if ( mPath.countVerbs() > 10) { mPath.reset(); } else { mPath.rewind(); } // update mPath to reflect new outline if (MathUtils::isPositive(radius)) { mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), radius, radius); } else { Loading Loading
libs/hwui/Outline.h +8 −1 Original line number Diff line number Diff line Loading @@ -42,8 +42,15 @@ public: mBounds.set(left, top, right, bottom); mRadius = radius; // update mPath to reflect new outline // Reuse memory if previous outline was the same shape (rect or round rect). if ( mPath.countVerbs() > 10) { mPath.reset(); } else { mPath.rewind(); } // update mPath to reflect new outline if (MathUtils::isPositive(radius)) { mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), radius, radius); } else { Loading