diff options
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); |