summaryrefslogtreecommitdiffstats
path: root/libhwcomposer/hwc_copybit.h
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-04-04 15:16:50 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-04-06 00:34:54 +0100
commitc962bf8b8fa4d9a6400811296fb270f47db68cf4 (patch)
treef5e651935cbbf54e6d1488bbe19a6e2a4599a070 /libhwcomposer/hwc_copybit.h
parent7a8a513ac8a2b9a76b36cf1341d45b00d88ed45c (diff)
parent6445344dbaf08ec4d8fbf6aeeffdf29faed64e78 (diff)
downloadandroid_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
Change-Id: I44a10eaa285d0521669781a4fafb7641df209186
Diffstat (limited to 'libhwcomposer/hwc_copybit.h')
-rw-r--r--libhwcomposer/hwc_copybit.h12
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);