summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2020-02-19 11:51:17 -0500
committerDerek Sollenberger <djsollen@google.com>2020-02-20 21:50:06 -0500
commitee538a3a8578e684b0d04743a3e5904d622960ba (patch)
treedad2dd129065697c69202dacdd9d9dfa1328b6c9 /native
parentc5882c4eb614179c8dad323cbbb115b62bb35f43 (diff)
Cleanup header and build targets for libhwui clients.
Targets that will also be contained within the UI module are allowed to access internal headers. All other targets that depend on libhwui are restricted to using the APEX headers. Bug: 137655431 Test: CtsUiRenderingTestCases Change-Id: Id92e9874dafb98bd79839d45ab8f22ab999689de
Diffstat (limited to 'native')
-rw-r--r--native/android/Android.bp2
-rw-r--r--native/graphics/jni/Android.bp2
-rw-r--r--native/webview/plat_support/Android.bp4
-rw-r--r--native/webview/plat_support/graphics_utils.cpp4
4 files changed, 8 insertions, 4 deletions
diff --git a/native/android/Android.bp b/native/android/Android.bp
index 257ae7332cc1..0a8ef38303a1 100644
--- a/native/android/Android.bp
+++ b/native/android/Android.bp
@@ -81,6 +81,8 @@ cc_library_shared {
"libarect",
],
+ header_libs: [ "libhwui_internal_headers" ],
+
whole_static_libs: ["libnativedisplay", "libnativewindow"],
export_static_lib_headers: ["libarect"],
diff --git a/native/graphics/jni/Android.bp b/native/graphics/jni/Android.bp
index 376ea77740c2..15b473c2a6ab 100644
--- a/native/graphics/jni/Android.bp
+++ b/native/graphics/jni/Android.bp
@@ -37,6 +37,8 @@ cc_library_shared {
"liblog",
],
+ header_libs: [ "libhwui_internal_headers" ],
+
static_libs: ["libarect"],
arch: {
diff --git a/native/webview/plat_support/Android.bp b/native/webview/plat_support/Android.bp
index 88decc86c387..1a3b36d046e1 100644
--- a/native/webview/plat_support/Android.bp
+++ b/native/webview/plat_support/Android.bp
@@ -30,12 +30,14 @@ cc_library_shared {
"graphic_buffer_impl.cpp",
],
+ header_libs: [ "libhwui_internal_headers" ],
+
shared_libs: [
"libandroidfw",
- "libandroid_runtime",
"libcutils",
"libhwui",
"liblog",
+ "libnativehelper",
"libui",
"libutils",
"libvulkan",
diff --git a/native/webview/plat_support/graphics_utils.cpp b/native/webview/plat_support/graphics_utils.cpp
index 56825cee4520..8d7a59e46e72 100644
--- a/native/webview/plat_support/graphics_utils.cpp
+++ b/native/webview/plat_support/graphics_utils.cpp
@@ -25,11 +25,9 @@
#include <cstdlib>
#include <jni.h>
#include <utils/Log.h>
-#include "android/graphics/GraphicsJNI.h"
+#include "GraphicsJNI.h"
#include "graphic_buffer_impl.h"
#include "SkCanvasStateUtils.h"
-#include "SkGraphics.h"
-#include "SkPicture.h"
#define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0])))