#SET(HEADERS_common src/coregl_export.h src/coregl_fastpath.h src/coregl_fastpath_state.h src/coregl.h src/coregl_internal.h src/coregl_thread_pthread.h src/coregl_wrappath.h)
INCLUDE(FindPkgConfig)
-pkg_check_modules(pkg_common REQUIRED x11)
pkg_check_modules(dlog REQUIRED dlog)
+pkg_check_modules(libpng REQUIRED libpng)
INCLUDE_DIRECTORIES(${dlog_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${dlog_INCLUDEDIR})
%define BYPASS_COREGL 0
Name: coregl
-Summary: CoreGL FastPath Optimization
+Summary: CoreGL FastPath Optimization
Version: 0.1.10
Release: 02
ExclusiveArch: %arm
URL: http://www.tizen.org
Source: %{name}-%{version}.tar.gz
-%if "%{BYPASS_COREGL}" != "1"
-BuildRequires: pkgconfig(xfixes)
-BuildRequires: pkgconfig(x11)
BuildRequires: cmake
-%endif
BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(libpng)
%description
CoreGL provides the following capabilities:
return;
}
-#include "png.h"
+#include <png.h>
void *png_lib_handle = NULL;
if (!png_lib_handle)
{
- png_lib_handle = dlopen("libpng.so.3", RTLD_NOW);
+ png_lib_handle = dlopen("libpng16.so.16", RTLD_NOW);
dl_png_create_write_struct = dlsym(png_lib_handle, "png_create_write_struct");
dl_png_destroy_write_struct = dlsym(png_lib_handle, "png_destroy_write_struct");
tracepath_glBindTexture(GLenum target, GLuint texture)
{
_COREGL_TRACEPATH_FUNC_BEGIN();
+
+ _COREGL_TRACE_SURFACE(0, 1, "GLBINDTEXTURE");
_orig_tracepath_glBindTexture(target, texture);
goto finish;
tracepath_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
{
_COREGL_TRACEPATH_FUNC_BEGIN();
+ _COREGL_TRACE_SURFACE(0, 1, "TEXTURE2DOES");
_orig_tracepath_glEGLImageTargetTexture2DOES(target, image);
goto finish;