Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ba88775 authored by Mike Reed's avatar Mike Reed Committed by The Android Open Source Project
Browse files

AI 144018: change path to return its internal cached bounds, making it much...

AI 144018: change path to return its internal cached bounds, making it much lighter-weight to get the bounds.
  BUG=1748928

Automated import of CL 144018
parent 10b4043c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -75,9 +75,8 @@ public:
        return result;
    }
 
    static void computeBounds(JNIEnv* env, jobject clazz, SkPath* obj, jobject bounds, SkPath::BoundsType btype) {
        SkRect bounds_;
        obj->computeBounds(&bounds_, btype);
    static void computeBounds(JNIEnv* env, jobject clazz, SkPath* obj, jobject bounds, int boundstype) {
        const SkRect& bounds_ = obj->getBounds();
        GraphicsJNI::rect_to_jrectf(bounds_, env, bounds);
    }