workaround to set the WM refresh rate to 48 Hz for tuna devices only
this is TEMPORARY until we can do this properly. Bug: 5572464 Change-Id: I6537706d636a83a4a50e2900d6b829dd89b6f245
This commit is contained in:
parent
60e2245b63
commit
385977f6d6
@ -30,6 +30,10 @@ ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
|
|||||||
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(findstring $(TARGET_DEVICE),tuna toro maguro))
|
||||||
|
LOCAL_CFLAGS += -DREFRESH_RATE=48
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
libcutils \
|
libcutils \
|
||||||
|
@ -141,6 +141,17 @@ void DisplayHardware::init(uint32_t dpy)
|
|||||||
mDpiY = mNativeWindow->ydpi;
|
mDpiY = mNativeWindow->ydpi;
|
||||||
mRefreshRate = fbDev->fps;
|
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 w, h, dummy;
|
||||||
EGLint numConfigs=0;
|
EGLint numConfigs=0;
|
||||||
EGLSurface surface;
|
EGLSurface surface;
|
||||||
|
Loading…
Reference in New Issue
Block a user