Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48f18e56 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Steve Kondik
Browse files

ui: overlay: Allow the overlay HAL to always choose the display format

Always force automagic format selection from the overlay. Enable
with TARGET_OVERLAY_ALWAYS_DETERMINES_FORMAT in the board file

Change-Id: I868057ba0af43e2ccbe37fa9ce8ca3a00505457b
parent 891bdf85
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

ifeq ($(TARGET_OVERLAY_ALWAYS_DETERMINES_FORMAT),true)
    LOCAL_CFLAGS += -DOVERLAY_ALWAYS_DEFAULT
endif

LOCAL_SRC_FILES:= \
	ISurfaceComposer.cpp \
	ISurface.cpp \
+3 −0
Original line number Diff line number Diff line
@@ -132,6 +132,9 @@ public:
    virtual sp<OverlayRef> createOverlay(
             uint32_t w, uint32_t h, int32_t format, int32_t orientation)
    {
#ifdef OVERLAY_ALWAYS_DEFAULT
	format = OVERLAY_FORMAT_DEFAULT;
#endif
        Parcel data, reply;
        data.writeInterfaceToken(ISurface::getInterfaceDescriptor());
        data.writeInt32(w);