summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-11-03 13:25:13 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-11-03 13:25:13 +0000
commit3b74ce2dbd16748917fd26175eb266889230a0be (patch)
treec8db77185e4969641c6aaca7bdd7458d9dec608d /legacy/evas/src/modules/engines/gl_common/evas_gl_context.c
parent34fee5ae825e48f13f539d5595a93c8af6d6cd28 (diff)
evas - clean the unused code.
SVN revision: 78882
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_common/evas_gl_context.c36
1 files changed, 17 insertions, 19 deletions
diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c
index 38115fc7f8..1b05c3db9e 100644
--- a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c
+++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c
@@ -1266,7 +1266,7 @@ evas_gl_common_context_line_push(Evas_Engine_GL_Context *gc,
1266 int clip, int cx, int cy, int cw, int ch, 1266 int clip, int cx, int cy, int cw, int ch,
1267 int r, int g, int b, int a) 1267 int r, int g, int b, int a)
1268{ 1268{
1269 int pnum, nv, nc, nu, nt, i; 1269 int pnum, nv, nc, i;
1270 Eina_Bool blend = 0; 1270 Eina_Bool blend = 0;
1271 GLuint prog = gc->shared->shader[SHADER_RECT].prog; 1271 GLuint prog = gc->shared->shader[SHADER_RECT].prog;
1272 int pn = 0; 1272 int pn = 0;
@@ -1295,7 +1295,7 @@ evas_gl_common_context_line_push(Evas_Engine_GL_Context *gc,
1295 gc->pipe[pn].array.use_texuv3 = 0; 1295 gc->pipe[pn].array.use_texuv3 = 0;
1296 1296
1297 pnum = gc->pipe[pn].array.num; 1297 pnum = gc->pipe[pn].array.num;
1298 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nt = pnum * 4; 1298 nv = pnum * 3; nc = pnum * 4;
1299 gc->pipe[pn].array.num += 2; 1299 gc->pipe[pn].array.num += 2;
1300 array_alloc(gc, pn); 1300 array_alloc(gc, pn);
1301 1301
@@ -1321,7 +1321,7 @@ evas_gl_common_context_rectangle_push(Evas_Engine_GL_Context *gc,
1321 int x, int y, int w, int h, 1321 int x, int y, int w, int h,
1322 int r, int g, int b, int a) 1322 int r, int g, int b, int a)
1323{ 1323{
1324 int pnum, nv, nc, nu, nt, i; 1324 int pnum, nv, nc, i;
1325 Eina_Bool blend = 0; 1325 Eina_Bool blend = 0;
1326 GLuint prog = gc->shared->shader[SHADER_RECT].prog; 1326 GLuint prog = gc->shared->shader[SHADER_RECT].prog;
1327 int pn = 0; 1327 int pn = 0;
@@ -1447,7 +1447,7 @@ again:
1447 pipe_region_expand(gc, pn, x, y, w, h); 1447 pipe_region_expand(gc, pn, x, y, w, h);
1448 1448
1449 pnum = gc->pipe[pn].array.num; 1449 pnum = gc->pipe[pn].array.num;
1450 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nt = pnum * 4; 1450 nv = pnum * 3; nc = pnum * 4;
1451 gc->pipe[pn].array.num += 6; 1451 gc->pipe[pn].array.num += 6;
1452 array_alloc(gc, pn); 1452 array_alloc(gc, pn);
1453 1453
@@ -1473,7 +1473,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
1473 int r, int g, int b, int a, 1473 int r, int g, int b, int a,
1474 Eina_Bool smooth, Eina_Bool tex_only) 1474 Eina_Bool smooth, Eina_Bool tex_only)
1475{ 1475{
1476 int pnum, nv, nc, nu, nu2, nt, i; 1476 int pnum, nv, nc, nu, i;
1477 GLfloat tx1, tx2, ty1, ty2; 1477 GLfloat tx1, tx2, ty1, ty2;
1478 Eina_Bool blend = 1; 1478 Eina_Bool blend = 1;
1479 GLuint prog = gc->shared->shader[SHADER_IMG].prog; 1479 GLuint prog = gc->shared->shader[SHADER_IMG].prog;
@@ -1543,8 +1543,7 @@ evas_gl_common_context_image_push(Evas_Engine_GL_Context *gc,
1543 pipe_region_expand(gc, pn, x, y, w, h); 1543 pipe_region_expand(gc, pn, x, y, w, h);
1544 1544
1545 pnum = gc->pipe[pn].array.num; 1545 pnum = gc->pipe[pn].array.num;
1546 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nu2 = pnum * 2; 1546 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
1547 nt = pnum * 4;
1548 gc->pipe[pn].array.num += 6; 1547 gc->pipe[pn].array.num += 6;
1549 array_alloc(gc, pn); 1548 array_alloc(gc, pn);
1550 1549
@@ -1596,7 +1595,7 @@ evas_gl_common_context_image_mask_push(Evas_Engine_GL_Context *gc,
1596 int r, int g, int b, int a, 1595 int r, int g, int b, int a,
1597 Eina_Bool smooth) 1596 Eina_Bool smooth)
1598{ 1597{
1599 int pnum, nv, nc, nu, nm, nt, i; 1598 int pnum, nv, nc, nu, nm, i;
1600 GLfloat tx1, tx2, ty1, ty2; 1599 GLfloat tx1, tx2, ty1, ty2;
1601 GLfloat txm1, txm2, tym1, tym2; 1600 GLfloat txm1, txm2, tym1, tym2;
1602 Eina_Bool blend = 1; 1601 Eina_Bool blend = 1;
@@ -1649,7 +1648,6 @@ evas_gl_common_context_image_mask_push(Evas_Engine_GL_Context *gc,
1649 1648
1650 pnum = gc->pipe[pn].array.num; 1649 pnum = gc->pipe[pn].array.num;
1651 nv = pnum * 3; nc = pnum * 4; nm = pnum * 2; nu = pnum * 2; 1650 nv = pnum * 3; nc = pnum * 4; nm = pnum * 2; nu = pnum * 2;
1652 nt = pnum * 4;
1653 gc->pipe[pn].array.num += 6; 1651 gc->pipe[pn].array.num += 6;
1654 array_alloc(gc, pn); 1652 array_alloc(gc, pn);
1655 1653
@@ -1721,7 +1719,7 @@ evas_gl_common_context_font_push(Evas_Engine_GL_Context *gc,
1721 int x, int y, int w, int h, 1719 int x, int y, int w, int h,
1722 int r, int g, int b, int a) 1720 int r, int g, int b, int a)
1723{ 1721{
1724 int pnum, nv, nc, nu, nt, i; 1722 int pnum, nv, nc, nu, i;
1725 GLfloat tx1, tx2, ty1, ty2; 1723 GLfloat tx1, tx2, ty1, ty2;
1726 GLuint prog = gc->shared->shader[SHADER_FONT].prog; 1724 GLuint prog = gc->shared->shader[SHADER_FONT].prog;
1727 int pn = 0; 1725 int pn = 0;
@@ -1755,7 +1753,7 @@ evas_gl_common_context_font_push(Evas_Engine_GL_Context *gc,
1755 pipe_region_expand(gc, pn, x, y, w, h); 1753 pipe_region_expand(gc, pn, x, y, w, h);
1756 1754
1757 pnum = gc->pipe[pn].array.num; 1755 pnum = gc->pipe[pn].array.num;
1758 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nt = pnum * 4; 1756 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
1759 gc->pipe[pn].array.num += 6; 1757 gc->pipe[pn].array.num += 6;
1760 array_alloc(gc, pn); 1758 array_alloc(gc, pn);
1761 1759
@@ -1804,7 +1802,7 @@ evas_gl_common_context_yuv_push(Evas_Engine_GL_Context *gc,
1804 int r, int g, int b, int a, 1802 int r, int g, int b, int a,
1805 Eina_Bool smooth) 1803 Eina_Bool smooth)
1806{ 1804{
1807 int pnum, nv, nc, nu, nu2, nu3, nt, i; 1805 int pnum, nv, nc, nu, nu2, nu3, i;
1808 GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2; 1806 GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
1809 Eina_Bool blend = 0; 1807 Eina_Bool blend = 0;
1810 GLuint prog; 1808 GLuint prog;
@@ -1847,7 +1845,7 @@ evas_gl_common_context_yuv_push(Evas_Engine_GL_Context *gc,
1847 1845
1848 pnum = gc->pipe[pn].array.num; 1846 pnum = gc->pipe[pn].array.num;
1849 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; 1847 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
1850 nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4; 1848 nu2 = pnum * 2; nu3 = pnum * 2;
1851 gc->pipe[pn].array.num += 6; 1849 gc->pipe[pn].array.num += 6;
1852 array_alloc(gc, pn); 1850 array_alloc(gc, pn);
1853 1851
@@ -1907,7 +1905,7 @@ evas_gl_common_context_yuy2_push(Evas_Engine_GL_Context *gc,
1907 int r, int g, int b, int a, 1905 int r, int g, int b, int a,
1908 Eina_Bool smooth) 1906 Eina_Bool smooth)
1909{ 1907{
1910 int pnum, nv, nc, nu, nu2, nu3, nt, i; 1908 int pnum, nv, nc, nu, nu2, i;
1911 GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2; 1909 GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
1912 Eina_Bool blend = 0; 1910 Eina_Bool blend = 0;
1913 GLuint prog; 1911 GLuint prog;
@@ -1949,7 +1947,7 @@ evas_gl_common_context_yuy2_push(Evas_Engine_GL_Context *gc,
1949 1947
1950 pnum = gc->pipe[pn].array.num; 1948 pnum = gc->pipe[pn].array.num;
1951 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; 1949 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
1952 nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4; 1950 nu2 = pnum * 2;
1953 gc->pipe[pn].array.num += 6; 1951 gc->pipe[pn].array.num += 6;
1954 array_alloc(gc, pn); 1952 array_alloc(gc, pn);
1955 1953
@@ -2001,7 +1999,7 @@ evas_gl_common_context_nv12_push(Evas_Engine_GL_Context *gc,
2001 int r, int g, int b, int a, 1999 int r, int g, int b, int a,
2002 Eina_Bool smooth) 2000 Eina_Bool smooth)
2003{ 2001{
2004 int pnum, nv, nc, nu, nu2, nu3, nt, i; 2002 int pnum, nv, nc, nu, nu2, i;
2005 GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2; 2003 GLfloat tx1, tx2, ty1, ty2, t2x1, t2x2, t2y1, t2y2;
2006 Eina_Bool blend = 0; 2004 Eina_Bool blend = 0;
2007 GLuint prog; 2005 GLuint prog;
@@ -2045,7 +2043,7 @@ evas_gl_common_context_nv12_push(Evas_Engine_GL_Context *gc,
2045 2043
2046 pnum = gc->pipe[pn].array.num; 2044 pnum = gc->pipe[pn].array.num;
2047 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; 2045 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2;
2048 nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4; 2046 nu2 = pnum * 2;
2049 gc->pipe[pn].array.num += 6; 2047 gc->pipe[pn].array.num += 6;
2050 array_alloc(gc, pn); 2048 array_alloc(gc, pn);
2051 2049
@@ -2099,7 +2097,7 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
2099 Eina_Bool smooth, Eina_Bool tex_only, 2097 Eina_Bool smooth, Eina_Bool tex_only,
2100 Evas_Colorspace cspace) 2098 Evas_Colorspace cspace)
2101{ 2099{
2102 int pnum, nv, nc, nu, nu2, nu3, nt, i; 2100 int pnum, nv, nc, nu, nu2, nu3, i;
2103 const int points[6] = { 0, 1, 2, 0, 2, 3 }; 2101 const int points[6] = { 0, 1, 2, 0, 2, 3 };
2104 int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0; 2102 int x = 0, y = 0, w = 0, h = 0, px = 0, py = 0;
2105 GLfloat tx[4], ty[4], t2x[4], t2y[4]; 2103 GLfloat tx[4], ty[4], t2x[4], t2y[4];
@@ -2287,7 +2285,7 @@ evas_gl_common_context_image_map_push(Evas_Engine_GL_Context *gc,
2287 2285
2288 pnum = gc->pipe[pn].array.num; 2286 pnum = gc->pipe[pn].array.num;
2289 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nu2 = pnum * 2; 2287 nv = pnum * 3; nc = pnum * 4; nu = pnum * 2; nu2 = pnum * 2;
2290 nu2 = pnum * 2; nu3 = pnum * 2; nt = pnum * 4; 2288 nu2 = pnum * 2; nu3 = pnum * 2;
2291 gc->pipe[pn].array.num += 6; 2289 gc->pipe[pn].array.num += 6;
2292 array_alloc(gc, pn); 2290 array_alloc(gc, pn);
2293 2291