OSDN Git Service

Move PublicFormat definition to libui
authorJooyung Han <jooyung@google.com>
Mon, 4 Mar 2019 07:24:35 +0000 (16:24 +0900)
committerJooyung Han <jooyung@google.com>
Mon, 4 Mar 2019 07:24:35 +0000 (16:24 +0900)
commitdda2335e3263ee05e9542cd8b5390dcadfd211f4
tree4e8a66a336d4c948f1eaeb113ecc696ac97983ed
parent3649374e17f1f50957e011220dcef3d87a11c2e5
Move PublicFormat definition to libui

PublicFormat is defined in android_view_Surface.
However this and related functions are also used in libmediandk
which is both NDK and LL-NDK. As a LL-NDK it should run without
libandroid_runtime.

By moving PublicFormat definition and its utility functions
into libui, LL-NDK can use it without cost of libandroid_runtime.

This is a part cutting dependency from libmediandk to
libandroid_runtime.

Bug: 124268753
Test: m -j
Change-Id: I49eea4325cde244a7168c6954027ee5c9a8459da
Merged-In: I49eea4325cde244a7168c6954027ee5c9a8459da
core/jni/android_view_Surface.cpp
core/jni/include/android_runtime/android_view_Surface.h