From 65ba94f79d6e737c3e66c09032221999b2eb50d7 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Wed, 2 Apr 2014 12:45:57 -0700 Subject: 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 --- libs/hwui/Snapshot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hwui/Snapshot.h b/libs/hwui/Snapshot.h index cc6d0cda003e..5bdb18abf873 100644 --- a/libs/hwui/Snapshot.h +++ b/libs/hwui/Snapshot.h @@ -108,7 +108,7 @@ public: * Returns the current clip in local coordinates. The clip rect is * transformed by the inverse transform matrix. */ - const Rect& getLocalClip(); + ANDROID_API const Rect& getLocalClip(); /** * Resets the clip to the specified rect. -- cgit v1.2.3-59-g8ed1b