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

Commit d192bba3 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 3f24589e: Merge "workaround to set the WM refresh rate to 48 Hz for tuna...

am 3f24589e: Merge "workaround to set the WM refresh rate to 48 Hz for tuna devices only" into ics-mr1

* commit '3f24589edd860618ccf65d6653b002d13810e78b':
  workaround to set the WM refresh rate to 48 Hz for tuna devices only
parents c17f56fd 2b0b7a92
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@ ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
	LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
endif

ifneq (,$(findstring $(TARGET_DEVICE),tuna toro maguro))
	LOCAL_CFLAGS += -DREFRESH_RATE=48
endif


LOCAL_SHARED_LIBRARIES := \
	libcutils \
+11 −0
Original line number Diff line number Diff line
@@ -141,6 +141,17 @@ void DisplayHardware::init(uint32_t dpy)
    mDpiY = mNativeWindow->ydpi;
    mRefreshRate = fbDev->fps;


/* FIXME: this is a temporary HACK until we are able to report the refresh rate
 * properly from the HAL. The WindowManagerService now relies on this value.
 */
#ifndef REFRESH_RATE
    mRefreshRate = fbDev->fps;
#else
    mRefreshRate = REFRESH_RATE;
#warning "refresh rate set via makefile to REFRESH_RATE"
#endif

    EGLint w, h, dummy;
    EGLint numConfigs=0;
    EGLSurface surface;