[FIX] restore opengl probes 10/24810/5
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Tue, 22 Jul 2014 12:38:19 +0000 (16:38 +0400)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Fri, 25 Jul 2014 08:29:25 +0000 (01:29 -0700)
Change-Id: I4395a963d91c35f1170fa9e56bcbf5efa0942c68
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Makefile
probe_graphics/da_gles20.h
probe_graphics/da_gles20_tizen.cpp

index a319fb88c6633400cac1efad4083605127ee97fa..593e6f8eddc74e39dae8cc1d8e29faae6e64d36e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,9 +94,12 @@ CAPI_SRCS =  $(COMMON_SRCS)                  \
 #              ./probe_ui/capi_capture.c
 
 TIZEN_SRCS =   $(COMMON_SRCS) $(CAPI_SRCS)\
-               ./helper/addr-tizen.c                   \
-               ./helper/common_probe_init.cpp  \
-               ./probe_memory/libdanew.cpp
+               ./helper/addr-tizen.c                                   \
+               ./helper/common_probe_init.cpp                  \
+               ./probe_memory/libdanew.cpp                             \
+               ./probe_graphics/da_gles20_tizen.cpp    \
+               ./probe_graphics/da_gles20_native.cpp
+
 
 ASM_SRC = ./helper/da_call_original.S
 
index d378d1cde55ede0364cb7ccd332b963024a38228..dcdaa38d167cfba9a91d7d80277afde413462616 100644 (file)
 #ifndef DA_GLES20_H_
 #define DA_GLES20_H_
 
+/*
+ * TODO find this headers. need for EGL_Context and other
 #include <egl.h>
 #include <eglext.h>
 #include <gl2.h>
 #include <gl2ext.h>
+*/
+
+#include <Evas_GL.h>
+#include <Evas.h>
+
 #include <errno.h>
 #include "daprobe.h"
 #include "dahelper.h"
 
+/* TODO add egl header for next */
+#define EGLContext void *
+extern EGLContext eglGetCurrentContext(void);
+
 #define NO_RETURN_FORMAT "%s"
 #define NO_RETURN_VALUE 0
 #define APITYPE_INIT 0
index 9c701d555297bedd9d66ce528e4a93a0899a02f5..610950ca5da19c01fccbb3b05289727993c8aebf 100644 (file)
@@ -38,6 +38,9 @@ static char contextValue[MAX_GL_CONTEXT_VALUE_SIZE];
 static enum DaOptions _sopt = OPT_GLES;
 static __thread GLenum gl_error_external = GL_NO_ERROR;
 
+GLenum glGetError(void);
+void glGetIntegerv(GLenum pname, GLint * params);
+
 static void init_probe_gl(const char *func_name, void **func_pointer,
                   ORIGINAL_LIBRARY id, int blockresult, int32_t vAPI_ID)
 {