Reduce overhead by combining libskia and libhwui into a single library.

This is a multiproject change as we need to both the libraries
themselves as well as those that had dependencies on libskia.so

Bug: 31971097
Test: compile only
Change-Id: Ie6ff1f4682d03289205f4d6048cde9f95c61a90f
This commit is contained in:
Derek Sollenberger
2017-07-24 09:42:07 -04:00
parent 9c308e6a36
commit d938e5a2e2
9 changed files with 11 additions and 16 deletions

View File

@@ -77,7 +77,7 @@ LOCAL_SHARED_LIBRARIES := \
libutils \
libbinder \
libui \
libskia \
libhwui \
libEGL \
libGLESv1_CM \
libgui \

View File

@@ -8,7 +8,7 @@ LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libbinder \
libskia \
libhwui \
libui \
libgui

View File

@@ -238,7 +238,6 @@ cc_library_shared {
"libinput",
"libcamera_client",
"libcamera_metadata",
"libskia",
"libsqlite",
"libEGL",
"libGLESv1_CM",

View File

@@ -2,7 +2,7 @@ cc_defaults {
name: "hwui_defaults",
defaults: [
"hwui_static_deps",
"skia_deps"
//"hwui_bugreport_font_cache_usage",
//"hwui_compile_for_perf",
],
@@ -54,7 +54,6 @@ cc_defaults {
"libEGL",
"libGLESv2",
"libvulkan",
"libskia",
"libui",
"libgui",
"libprotobuf-cpp-lite",
@@ -113,6 +112,9 @@ cc_defaults {
cc_defaults {
name: "libhwui_defaults",
defaults: ["hwui_defaults"],
whole_static_libs: ["libskia"],
srcs: [
"hwui/Bitmap.cpp",
"font/CacheTexture.cpp",

View File

@@ -24,7 +24,7 @@ cc_library_shared {
"libcutils",
"liblog",
"libutils",
"libskia",
"libhwui",
"libgui",
"libui",
"libinput",

View File

@@ -38,7 +38,7 @@ cc_library_shared {
"libmediametrics",
"libmediadrm",
"libmidi",
"libskia",
"libhwui",
"libui",
"liblog",
"libcutils",

View File

@@ -20,14 +20,11 @@ LOCAL_SRC_FILES:= \
LOCAL_SHARED_LIBRARIES := \
libandroid_runtime \
libskia \
libui \
libandroidfw
LOCAL_C_INCLUDES += \
frameworks/base/native/include \
frameworks/base/core/jni/android/graphics \
frameworks/base/libs/hwui
frameworks/base/core/jni/android/graphics
LOCAL_MODULE:= libjnigraphics

View File

@@ -12,7 +12,7 @@ LOCAL_SHARED_LIBRARIES := \
libRS \
libcutils \
liblog \
libskia \
libhwui \
libutils \
libui \
libgui \
@@ -23,9 +23,7 @@ LOCAL_HEADER_LIBRARIES := \
LOCAL_C_INCLUDES += \
$(JNI_H_INCLUDE) \
frameworks/rs \
frameworks/base/core/jni \
frameworks/base/libs/hwui
frameworks/rs
LOCAL_CFLAGS += -Wno-unused-parameter
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code

View File

@@ -77,7 +77,6 @@ LOCAL_SHARED_LIBRARIES += \
libschedulerservicehidl \
libsensorservice \
libsensorservicehidl \
libskia \
libgui \
libusbhost \
libsuspend \