Lines Matching refs:surface
34 if (mSize && surface.data) in ~EGLTextureObject()
35 free(surface.data); in ~EGLTextureObject()
43 memset(&surface, 0, sizeof(surface)); in init()
44 surface.version = sizeof(surface); in init()
74 if (!surface.data) in allocateMipmaps()
77 int w = surface.width; in allocateMipmaps()
78 int h = surface.height; in allocateMipmaps()
109 return surface; in mip()
122 if (mSize && surface.data) { in setSurface()
123 free(surface.data); in setSurface()
125 surface = *s; in setSurface()
167 if (size!=mSize || !surface.data) { in reallocate()
168 if (mSize && surface.data) { in reallocate()
169 free(surface.data); in reallocate()
171 surface.data = (GGLubyte*)malloc(size); in reallocate()
172 if (!surface.data) { in reallocate()
179 surface.version = sizeof(GGLSurface); in reallocate()
180 surface.width = w; in reallocate()
181 surface.height = h; in reallocate()
182 surface.stride = s; in reallocate()
183 surface.format = format; in reallocate()
184 surface.compressedFormat = compressedFormat; in reallocate()
220 const GGLSurface* prev = &surface; in reallocate()
223 if (curr->format != surface.format) { in reallocate()