diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-04-04 15:16:50 +0100 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-04-06 00:34:54 +0100 |
commit | c962bf8b8fa4d9a6400811296fb270f47db68cf4 (patch) | |
tree | f5e651935cbbf54e6d1488bbe19a6e2a4599a070 /libhwcomposer/hwc_copybit.h | |
parent | 7a8a513ac8a2b9a76b36cf1341d45b00d88ed45c (diff) | |
parent | 6445344dbaf08ec4d8fbf6aeeffdf29faed64e78 (diff) | |
download | android_hardware_qcom_display-cm-10.1.tar.gz android_hardware_qcom_display-cm-10.1.tar.bz2 android_hardware_qcom_display-cm-10.1.zip |
Merge remote-tracking branch 'aosp/jb-mr1.1-release' into cm-10.1cm-10.1.3-RC2cm-10.1.3-RC1cm-10.1.3cm-10.1.2cm-10.1.1cm-10.1.0-RC5cm-10.1.0-RC4cm-10.1.0-RC3cm-10.1.0-RC2cm-10.1.0-RC1cm-10.1.0cm-10.1-M3cm-10.1
Change-Id: I44a10eaa285d0521669781a4fafb7641df209186
Diffstat (limited to 'libhwcomposer/hwc_copybit.h')
-rw-r--r-- | libhwcomposer/hwc_copybit.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libhwcomposer/hwc_copybit.h b/libhwcomposer/hwc_copybit.h index f371abb49..ae82b6c13 100644 --- a/libhwcomposer/hwc_copybit.h +++ b/libhwcomposer/hwc_copybit.h @@ -30,6 +30,11 @@ #define UNLIKELY( exp ) (__builtin_expect( (exp) != 0, false )) namespace qhwc { +//Feature for using Copybit to display RGB layers. +typedef EGLClientBuffer (*functype_eglGetRenderBufferANDROID) ( + EGLDisplay dpy, + EGLSurface draw); +typedef EGLSurface (*functype_eglGetCurrentSurface)(EGLint readdraw); class CopyBit { public: @@ -67,8 +72,11 @@ private: static bool sIsLayerSkip; //Flags if this feature is on. static bool sIsModeOn; - // flag that indicates whether CopyBit is enabled or not - static bool sCopyBitDraw; + //handle for adreno lib + static void* egl_lib; + + static functype_eglGetRenderBufferANDROID LINK_eglGetRenderBufferANDROID; + static functype_eglGetCurrentSurface LINK_eglGetCurrentSurface; static unsigned int getRGBRenderingArea (const hwc_display_contents_1_t *list); |