summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSung W. Park <dunamis.park@samsung.com>2013-10-30 10:47:52 +0900
committerSung W. Park <dunamis.park@samsung.com>2013-10-30 10:47:52 +0900
commit9bb4c4869199118d9d16c87edc5084e8d1d49fb7 (patch)
tree3d560b75cbeaa61dd141d69de6283260a46742cc /src/modules
parent1b802b0e3a62cabb03f41754596675c61938a682 (diff)
EvasGL: cleaning up unnecessary code.
Cleaning up unnecessary code.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core.c50
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core.h7
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_core_private.h1
3 files changed, 0 insertions, 58 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c b/src/modules/evas/engines/gl_common/evas_gl_core.c
index a065bd4652..e5009cd265 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -1869,38 +1869,6 @@ evgl_direct_info_clear()
1869 rsc->direct.enabled = EINA_FALSE; 1869 rsc->direct.enabled = EINA_FALSE;
1870} 1870}
1871 1871
1872/*
1873void
1874evgl_direct_img_obj_set(Evas_Object *img, int rot)
1875{
1876 EVGL_Resource *rsc;
1877
1878 if (!(rsc=_evgl_tls_resource_get())) return;
1879
1880 // Normally direct rendering isn't allowed if alpha is on and
1881 // rotation is not 0. BUT, if override is on, allow it.
1882 if (rot!=0)
1883 {
1884 if (evgl_engine->direct_override)
1885 rsc->direct.img = img;
1886 else
1887 rsc->direct.img = NULL;
1888 }
1889 else
1890 rsc->direct.img = img;
1891}
1892
1893Evas_Object *
1894evgl_direct_img_obj_get()
1895{
1896 EVGL_Resource *rsc;
1897
1898 if (!(rsc=_evgl_tls_resource_get())) return NULL;
1899
1900 return rsc->direct.img;
1901}
1902*/
1903
1904Evas_GL_API * 1872Evas_GL_API *
1905evgl_api_get() 1873evgl_api_get()
1906{ 1874{
@@ -1909,24 +1877,6 @@ evgl_api_get()
1909 return &gl_funcs; 1877 return &gl_funcs;
1910} 1878}
1911 1879
1912
1913/*
1914void
1915evgl_direct_img_clip_set(int c, int x, int y, int w, int h)
1916{
1917 EVGL_Resource *rsc;
1918
1919 if (!(rsc=_evgl_tls_resource_get())) return;
1920
1921 rsc->master_clip = c;
1922 rsc->clip[0] = x;
1923 rsc->clip[1] = y;
1924 rsc->clip[2] = w;
1925 rsc->clip[3] = h;
1926
1927}
1928*/
1929
1930void 1880void
1931evgl_direct_override_get(int *override, int *force_off) 1881evgl_direct_override_get(int *override, int *force_off)
1932{ 1882{
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.h b/src/modules/evas/engines/gl_common/evas_gl_core.h
index bbd5b24af9..587e8b0405 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.h
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.h
@@ -33,16 +33,9 @@ int evgl_native_surface_get(EVGL_Surface *sfc, Evas_Native_Surface *ns)
33Evas_GL_API *evgl_api_get(); 33Evas_GL_API *evgl_api_get();
34int evgl_direct_rendered(); 34int evgl_direct_rendered();
35 35
36
37/*
38extern void evgl_direct_img_obj_set(Evas_Object *img, int rot);
39extern Evas_Object *evgl_direct_img_obj_get();
40*/
41
42void evgl_direct_info_set(int win_w, int win_h, int rot, int img_x, int img_y, int img_w, int img_h, int clip_x, int clip_y, int clip_w, int clip_h); 36void evgl_direct_info_set(int win_w, int win_h, int rot, int img_x, int img_y, int img_w, int img_h, int clip_x, int clip_y, int clip_w, int clip_h);
43void evgl_direct_info_clear(); 37void evgl_direct_info_clear();
44 38
45//extern void evgl_direct_img_clip_set(int c, int x, int y, int w, int h);
46void evgl_direct_override_get(int *override, int *force_off); 39void evgl_direct_override_get(int *override, int *force_off);
47 40
48#endif //_EVAS_GL_CORE_H 41#endif //_EVAS_GL_CORE_H
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core_private.h b/src/modules/evas/engines/gl_common/evas_gl_core_private.h
index 37e8cc5127..254da65bf7 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core_private.h
+++ b/src/modules/evas/engines/gl_common/evas_gl_core_private.h
@@ -212,7 +212,6 @@ struct _EVGL_Resource
212 struct { 212 struct {
213 EVGLNative_Surface surface; 213 EVGLNative_Surface surface;
214 int rendered; 214 int rendered;
215 //Evas_Object *img;
216 215
217 int rot; 216 int rot;
218 int win_w; 217 int win_w;