diff options
author | mh0310.choi <mh0310.choi@samsung.com> | 2015-07-28 10:46:57 +0900 |
---|---|---|
committer | mh0310.choi <mh0310.choi@samsung.com> | 2015-07-28 13:08:12 +0900 |
commit | 5e67a6f721eaedda61300baf0799199c7771ebd0 (patch) | |
tree | 6cd50b52498aab50e79b966cdccc2a137db316d9 /src/cairo-gl-gradient-private.h | |
parent | d3aeffba37161d2b76b29c4ea13369bd67a47a8e (diff) | |
download | cairo-5e67a6f721eaedda61300baf0799199c7771ebd0.tar.gz cairo-5e67a6f721eaedda61300baf0799199c7771ebd0.tar.bz2 cairo-5e67a6f721eaedda61300baf0799199c7771ebd0.zip |
Cairo version Upgrade for Tizen3.0submit/tizen_tv/20150728.091927submit/tizen_mobile/20150728.091912submit/tizen_common/20150728.091859accepted/tizen/tv/20150729.011254accepted/tizen/mobile/20150729.011230
- from 1.12.14 to 1.14.2
Change-Id: I3b62d212041b337bbb926d579f9ce74f42a45c3b
Diffstat (limited to 'src/cairo-gl-gradient-private.h')
-rw-r--r--[-rwxr-xr-x] | src/cairo-gl-gradient-private.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/src/cairo-gl-gradient-private.h b/src/cairo-gl-gradient-private.h index 024549e5d..d66f3dc3b 100755..100644 --- a/src/cairo-gl-gradient-private.h +++ b/src/cairo-gl-gradient-private.h @@ -3,6 +3,7 @@ * Copyright © 2009 Eric Anholt * Copyright © 2009 Chris Wilson * Copyright © 2005,2010 Red Hat, Inc + * Copyright © 2011,2015 Samsung Research America, Inc - Silicon Valley * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public @@ -36,6 +37,7 @@ * Carl Worth <cworth@cworth.org> * Chris Wilson <chris@chris-wilson.co.uk> * Eric Anholt <eric@anholt.net> + * Henry Songt <hsong@sisa.samsung.com> */ #ifndef CAIRO_GL_GRADIENT_PRIVATE_H @@ -51,21 +53,26 @@ #include "cairo-gl.h" -#if 0 #if CAIRO_HAS_EVASGL_SURFACE -#include <Evas_GL.h> + #include <Evas_GL.h> #else - #if CAIRO_HAS_GL_SURFACE - #include <GL/gl.h> - #include <GL/glext.h> - #elif CAIRO_HAS_GLESV2_SURFACE - #include <GLES2/gl2.h> - #include <GLES2/gl2ext.h> - #elif CAIRO_HAS_GLESV3_SURFACE - #include <GLES3/gl3.h> - #include <GLES3/gl3ext.h> - #endif -#endif + #if CAIRO_HAS_GL_SURFACE + #if CAIRO_HAS_CGL_FUNCTIONS + #include <OpenGL/gl.h> + #include <OpenGL/glext.h> + #else + #include <GL/gl.h> + #include <GL/glext.h> + #endif + #elif CAIRO_HAS_GLESV2_SURFACE + #include <GLES2/gl2.h> + #include <GLES2/gl2ext.h> + #elif CAIRO_HAS_GLESV3_SURFACE + #include <GLES3/gl3.h> + #include <GLES3/gl3ext.h> + #elif CAIRO_HAS_EVASGL_SURFACE + #include <Evas_GL.h> + #endif #endif #define CAIRO_GL_GRADIENT_CACHE_SIZE 4096 @@ -77,7 +84,7 @@ typedef struct _cairo_gl_gradient { cairo_cache_entry_t cache_entry; cairo_reference_count_t ref_count; cairo_device_t *device; /* NB: we don't hold a reference */ - unsigned int tex; + GLuint tex; unsigned int n_stops; const cairo_gradient_stop_t *stops; cairo_gradient_stop_t stops_embedded[1]; |