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

Commit 65ba94f7 authored by Ben Cheng's avatar Ben Cheng
Browse files

Use default visibility for Snapshot::getLocalClip.

The method is in libhwui.so but used by libandroid_runtime.so
(via android_view_GLES20Canvas.cpp). If the compiler decides not to
inline this method, the linker won't be able to resolve the dependency
when it has hidden visibility.

The problem is found when testing GCC 4.9.

Change-Id: I3b4d096c7767f0bef0796886dfb2c5ba2ecff48c
parent 17b1b8fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -108,7 +108,7 @@ public:
     * Returns the current clip in local coordinates. The clip rect is
     * Returns the current clip in local coordinates. The clip rect is
     * transformed by the inverse transform matrix.
     * transformed by the inverse transform matrix.
     */
     */
    const Rect& getLocalClip();
    ANDROID_API const Rect& getLocalClip();


    /**
    /**
     * Resets the clip to the specified rect.
     * Resets the clip to the specified rect.