drm_hwcomposer: move header files into source directory
... to improve navigation between source/header file. Unnecessary dependencies also removed. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Change-Id: I2c3bf993b8c5f356490433fd94e90011487a1276
This commit is contained in:
parent
fbf5c0ca45
commit
aa3cd54562
47 changed files with 105 additions and 129 deletions
10
Android.bp
10
Android.bp
|
|
@ -20,7 +20,10 @@ cc_library_static {
|
|||
|
||||
srcs: ["utils/worker.cpp"],
|
||||
|
||||
include_dirs: ["external/drm_hwcomposer/include"],
|
||||
include_dirs: [
|
||||
"external/drm_hwcomposer/include",
|
||||
"external/drm_hwcomposer",
|
||||
],
|
||||
|
||||
cflags: [
|
||||
"-Wall",
|
||||
|
|
@ -47,7 +50,10 @@ cc_defaults {
|
|||
"libutils",
|
||||
],
|
||||
|
||||
include_dirs: ["external/drm_hwcomposer/include"],
|
||||
include_dirs: [
|
||||
"external/drm_hwcomposer/include",
|
||||
"external/drm_hwcomposer",
|
||||
],
|
||||
|
||||
static_libs: ["libdrmhwc_utils"],
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include "backend.h"
|
||||
#include "backendmanager.h"
|
||||
#include "drmhwctwo.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include "backendclient.h"
|
||||
#include "backendmanager.h"
|
||||
#include "drmhwctwo.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@
|
|||
#define LOG_TAG "hwc-backend"
|
||||
|
||||
#include "backendmanager.h"
|
||||
#include "backend.h"
|
||||
#include "drmhwctwo.h"
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <log/log.h>
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@
|
|||
#ifndef ANDROID_BACKEND_MANAGER_H
|
||||
#define ANDROID_BACKEND_MANAGER_H
|
||||
|
||||
#include "backend.h"
|
||||
#include "drmhwctwo.h"
|
||||
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "backend.h"
|
||||
#include "drmhwctwo.h"
|
||||
|
||||
#define REGISTER_BACKEND(name_str_, backend_) \
|
||||
static int \
|
||||
backend = BackendManager::GetInstance() \
|
||||
|
|
@ -17,20 +17,18 @@
|
|||
#define LOG_TAG "hwc-drm-display-composition"
|
||||
|
||||
#include "drmdisplaycomposition.h"
|
||||
#include "drmcrtc.h"
|
||||
#include "drmdevice.h"
|
||||
#include "drmdisplaycompositor.h"
|
||||
#include "drmplane.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <log/log.h>
|
||||
#include <stdlib.h>
|
||||
#include <sync/sync.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <unordered_set>
|
||||
|
||||
#include <log/log.h>
|
||||
#include <sync/sync.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include "drm/drmdevice.h"
|
||||
#include "drmdisplaycompositor.h"
|
||||
#include "platform/platform.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,15 +17,15 @@
|
|||
#ifndef ANDROID_DRM_DISPLAY_COMPOSITION_H_
|
||||
#define ANDROID_DRM_DISPLAY_COMPOSITION_H_
|
||||
|
||||
#include "drmcrtc.h"
|
||||
#include "drmhwcomposer.h"
|
||||
#include "drmplane.h"
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer.h>
|
||||
#include "drm/drmcrtc.h"
|
||||
#include "drm/drmplane.h"
|
||||
#include "drmhwcomposer.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
@ -19,23 +19,23 @@
|
|||
|
||||
#include "drmdisplaycompositor.h"
|
||||
|
||||
#include <drm/drm_mode.h>
|
||||
#include <log/log.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <stdlib.h>
|
||||
#include <sync/sync.h>
|
||||
#include <time.h>
|
||||
#include <utils/Trace.h>
|
||||
|
||||
#include <array>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include <drm/drm_mode.h>
|
||||
#include <log/log.h>
|
||||
#include <sync/sync.h>
|
||||
#include <utils/Trace.h>
|
||||
|
||||
#include "autolock.h"
|
||||
#include "drmcrtc.h"
|
||||
#include "drmdevice.h"
|
||||
#include "drmplane.h"
|
||||
#include "drm/drmcrtc.h"
|
||||
#include "drm/drmdevice.h"
|
||||
#include "drm/drmplane.h"
|
||||
#include "utils/autolock.h"
|
||||
|
||||
static const uint32_t kWaitWritebackFence = 100; // ms
|
||||
|
||||
|
|
|
|||
|
|
@ -17,19 +17,19 @@
|
|||
#ifndef ANDROID_DRM_DISPLAY_COMPOSITOR_H_
|
||||
#define ANDROID_DRM_DISPLAY_COMPOSITOR_H_
|
||||
|
||||
#include "drmdisplaycomposition.h"
|
||||
#include "drmframebuffer.h"
|
||||
#include "drmhwcomposer.h"
|
||||
#include "resourcemanager.h"
|
||||
#include "vsyncworker.h"
|
||||
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
#include <tuple>
|
||||
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer.h>
|
||||
#include "drm/resourcemanager.h"
|
||||
#include "drm/vsyncworker.h"
|
||||
#include "drmdisplaycomposition.h"
|
||||
#include "drmframebuffer.h"
|
||||
#include "drmhwcomposer.h"
|
||||
|
||||
// One for the front, one for the back, and one for cases where we need to
|
||||
// squash a frame that the hw can't display with hw overlays.
|
||||
|
|
@ -17,15 +17,16 @@
|
|||
#ifndef ANDROID_DRM_CONNECTOR_H_
|
||||
#define ANDROID_DRM_CONNECTOR_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "drmencoder.h"
|
||||
#include "drmmode.h"
|
||||
#include "drmproperty.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace android {
|
||||
|
||||
class DrmDevice;
|
||||
|
|
@ -17,12 +17,12 @@
|
|||
#ifndef ANDROID_DRM_CRTC_H_
|
||||
#define ANDROID_DRM_CRTC_H_
|
||||
|
||||
#include "drmmode.h"
|
||||
#include "drmproperty.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include "drmmode.h"
|
||||
#include "drmproperty.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class DrmDevice;
|
||||
|
|
@ -17,11 +17,6 @@
|
|||
#define LOG_TAG "hwc-drm-device"
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "drmconnector.h"
|
||||
#include "drmcrtc.h"
|
||||
#include "drmencoder.h"
|
||||
#include "drmeventlistener.h"
|
||||
#include "drmplane.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
|||
|
|
@ -17,15 +17,16 @@
|
|||
#ifndef ANDROID_DRM_H_
|
||||
#define ANDROID_DRM_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <tuple>
|
||||
|
||||
#include "drmconnector.h"
|
||||
#include "drmcrtc.h"
|
||||
#include "drmencoder.h"
|
||||
#include "drmeventlistener.h"
|
||||
#include "drmplane.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <tuple>
|
||||
#include "platform/platform.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "drmencoder.h"
|
||||
#include "drmcrtc.h"
|
||||
#include "drmdevice.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
|
|
|||
|
|
@ -17,13 +17,14 @@
|
|||
#ifndef ANDROID_DRM_ENCODER_H_
|
||||
#define ANDROID_DRM_ENCODER_H_
|
||||
|
||||
#include "drmcrtc.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
#include "drmcrtc.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class DrmEncoder {
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
#define ANDROID_DRM_EVENT_LISTENER_H_
|
||||
|
||||
#include "autofd.h"
|
||||
#include "worker.h"
|
||||
#include "utils/worker.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
@ -17,10 +17,6 @@
|
|||
#include "drmmode.h"
|
||||
#include "drmdevice.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <string>
|
||||
|
||||
namespace android {
|
||||
|
||||
DrmMode::DrmMode(drmModeModeInfoPtr m)
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace android {
|
||||
|
|
@ -24,7 +24,6 @@
|
|||
#include <cinttypes>
|
||||
|
||||
#include <log/log.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,13 +17,14 @@
|
|||
#ifndef ANDROID_DRM_PLANE_H_
|
||||
#define ANDROID_DRM_PLANE_H_
|
||||
|
||||
#include "drmcrtc.h"
|
||||
#include "drmproperty.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "drmcrtc.h"
|
||||
#include "drmproperty.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class DrmDevice;
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -22,7 +22,6 @@
|
|||
#include <log/log.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@
|
|||
#ifndef RESOURCEMANAGER_H
|
||||
#define RESOURCEMANAGER_H
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform/platform.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class ResourceManager {
|
||||
|
|
@ -17,16 +17,12 @@
|
|||
#define LOG_TAG "hwc-vsync-worker"
|
||||
|
||||
#include "vsyncworker.h"
|
||||
#include "drmdevice.h"
|
||||
#include "worker.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <map>
|
||||
|
||||
#include <hardware/hardware.h>
|
||||
#include <log/log.h>
|
||||
|
||||
namespace android {
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@
|
|||
#ifndef ANDROID_EVENT_WORKER_H_
|
||||
#define ANDROID_EVENT_WORKER_H_
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "worker.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <map>
|
||||
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "utils/worker.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
|
|
@ -18,20 +18,18 @@
|
|||
#define LOG_TAG "hwc-drm-two"
|
||||
|
||||
#include "drmhwctwo.h"
|
||||
#include "backendmanager.h"
|
||||
#include "drmdisplaycomposition.h"
|
||||
#include "drmhwcomposer.h"
|
||||
#include "platform.h"
|
||||
#include "vsyncworker.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string>
|
||||
|
||||
#include <cutils/properties.h>
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer2.h>
|
||||
#include <inttypes.h>
|
||||
#include <log/log.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "backend/backendmanager.h"
|
||||
#include "compositor/drmdisplaycomposition.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class DrmVsyncCallback : public VsyncCallback {
|
||||
|
|
|
|||
|
|
@ -17,18 +17,18 @@
|
|||
#ifndef ANDROID_DRM_HWC_TWO_H_
|
||||
#define ANDROID_DRM_HWC_TWO_H_
|
||||
|
||||
#include "drmdisplaycompositor.h"
|
||||
#include "drmhwcomposer.h"
|
||||
#include "platform.h"
|
||||
#include "resourcemanager.h"
|
||||
#include "vsyncworker.h"
|
||||
|
||||
#include <hardware/hwcomposer2.h>
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include <array>
|
||||
#include <map>
|
||||
|
||||
#include "compositor/drmdisplaycompositor.h"
|
||||
#include "drm/resourcemanager.h"
|
||||
#include "drm/vsyncworker.h"
|
||||
#include "drmhwcomposer.h"
|
||||
#include "platform/platform.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class Backend;
|
||||
|
|
@ -17,10 +17,11 @@
|
|||
#define LOG_TAG "hwc-platform"
|
||||
|
||||
#include "platform.h"
|
||||
#include "drmdevice.h"
|
||||
|
||||
#include <log/log.h>
|
||||
|
||||
#include "drm/drmdevice.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
std::vector<DrmPlane *> Planner::GetUsablePlanes(
|
||||
|
|
|
|||
|
|
@ -17,15 +17,15 @@
|
|||
#ifndef ANDROID_DRM_PLATFORM_H_
|
||||
#define ANDROID_DRM_PLATFORM_H_
|
||||
|
||||
#include "drmdisplaycomposition.h"
|
||||
#include "drmhwcomposer.h"
|
||||
|
||||
#include <hardware/hardware.h>
|
||||
#include <hardware/hwcomposer.h>
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "compositor/drmdisplaycomposition.h"
|
||||
#include "drmhwcomposer.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
class DrmDevice;
|
||||
|
|
@ -17,8 +17,6 @@
|
|||
#define LOG_TAG "hwc-platform-drm-generic"
|
||||
|
||||
#include "platformdrmgeneric.h"
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
|
|
|||
|
|
@ -17,13 +17,13 @@
|
|||
#ifndef ANDROID_PLATFORM_DRM_GENERIC_H_
|
||||
#define ANDROID_PLATFORM_DRM_GENERIC_H_
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <drm/drm_fourcc.h>
|
||||
#include <hardware/gralloc.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <drm/drm_fourcc.h>
|
||||
#include "drm/drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#ifndef DRM_FORMAT_INVALID
|
||||
#define DRM_FORMAT_INVALID 0
|
||||
|
|
|
|||
|
|
@ -17,15 +17,11 @@
|
|||
#define LOG_TAG "hwc-platform-hisi"
|
||||
|
||||
#include "platformhisi.h"
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <stdatomic.h>
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <cinttypes>
|
||||
|
||||
#include <hardware/gralloc.h>
|
||||
#include <log/log.h>
|
||||
#include "gralloc_priv.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
#ifndef ANDROID_PLATFORM_HISI_H_
|
||||
#define ANDROID_PLATFORM_HISI_H_
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
#include "platformdrmgeneric.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#define LOG_TAG "hwc-platform-imagination"
|
||||
|
||||
#include "platformimagination.h"
|
||||
|
||||
#include <log/log.h>
|
||||
#include <xf86drm.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef PLATFORMIMAGINATION_H
|
||||
#define PLATFORMIMAGINATION_H
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
#include "platformdrmgeneric.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,15 +17,11 @@
|
|||
#define LOG_TAG "hwc-platform-meson"
|
||||
|
||||
#include "platformmeson.h"
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <stdatomic.h>
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
#include <cinttypes>
|
||||
|
||||
#include <hardware/gralloc.h>
|
||||
#include <log/log.h>
|
||||
#include "gralloc_priv.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
#ifndef ANDROID_PLATFORM_HISI_H_
|
||||
#define ANDROID_PLATFORM_HISI_H_
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
#include "platformdrmgeneric.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -17,13 +17,10 @@
|
|||
#define LOG_TAG "hwc-platform-drm-minigbm"
|
||||
|
||||
#include "platformminigbm.h"
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <xf86drm.h>
|
||||
#include <xf86drmMode.h>
|
||||
|
||||
#include <hardware/gralloc.h>
|
||||
#include <log/log.h>
|
||||
|
||||
#include "cros_gralloc_handle.h"
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
#ifndef ANDROID_PLATFORM_DRM_MINIGBM_H_
|
||||
#define ANDROID_PLATFORM_DRM_MINIGBM_H_
|
||||
|
||||
#include "drmdevice.h"
|
||||
#include "platform.h"
|
||||
#include "platformdrmgeneric.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,5 +9,8 @@ cc_test {
|
|||
header_libs: ["libhardware_headers"],
|
||||
static_libs: ["libdrmhwc_utils"],
|
||||
shared_libs: ["hwcomposer.drm"],
|
||||
include_dirs: ["external/drm_hwcomposer/include"],
|
||||
include_dirs: [
|
||||
"external/drm_hwcomposer/include",
|
||||
"external/drm_hwcomposer",
|
||||
],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#include "utils/worker.h"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <hardware/hardware.h>
|
||||
|
||||
#include <chrono>
|
||||
|
||||
#include "worker.h"
|
||||
|
||||
using android::Worker;
|
||||
|
||||
struct TestWorker : public Worker {
|
||||
|
|
|
|||
|
|
@ -17,12 +17,12 @@
|
|||
#define ATRACE_TAG ATRACE_TAG_GRAPHICS
|
||||
#define LOG_TAG "hwc-drm-utils"
|
||||
|
||||
#include "drmhwcomposer.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <log/log.h>
|
||||
#include <ui/GraphicBufferMapper.h>
|
||||
|
||||
#include "drmhwcomposer.h"
|
||||
#include "platform/platform.h"
|
||||
|
||||
#define UNUSED(x) (void)(x)
|
||||
|
||||
namespace android {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@
|
|||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
namespace android {
|
||||
Loading…
Add table
Add a link
Reference in a new issue