cogl: Remove unused CoglTextureDriver::prep_gl_for_pixels_upload

https://gitlab.gnome.org/GNOME/mutter/merge_requests/814
This commit is contained in:
Adam Jackson 2019-03-07 11:42:51 -05:00 committed by Georges Basile Stavracas Neto
parent 437f6b3d59
commit 0f51ae7cf0
3 changed files with 0 additions and 22 deletions

View File

@ -45,18 +45,6 @@ struct _CoglTextureDriver
GLenum gl_target, GLenum gl_target,
CoglPixelFormat internal_format); CoglPixelFormat internal_format);
/*
* This sets up the glPixelStore state for an upload to a destination with
* the same size, and with no offset.
*/
/* NB: GLES can't upload a sub region of pixel data from a larger source
* buffer which is why this interface is limited. The GL driver has a more
* flexible version of this function that is uses internally */
void
(* prep_gl_for_pixels_upload) (CoglContext *ctx,
int pixels_rowstride,
int pixels_bpp);
/* /*
* This uploads a sub-region from source_bmp to a single GL texture * This uploads a sub-region from source_bmp to a single GL texture
* handle (i.e a single CoglTexture slice) * handle (i.e a single CoglTexture slice)

View File

@ -132,14 +132,6 @@ prep_gl_for_pixels_upload_full (CoglContext *ctx,
_cogl_texture_gl_prep_alignment_for_pixels_upload (ctx, pixels_rowstride); _cogl_texture_gl_prep_alignment_for_pixels_upload (ctx, pixels_rowstride);
} }
static void
_cogl_texture_driver_prep_gl_for_pixels_upload (CoglContext *ctx,
int pixels_rowstride,
int pixels_bpp)
{
prep_gl_for_pixels_upload_full (ctx, pixels_rowstride, 0, 0, 0, pixels_bpp);
}
/* OpenGL - unlike GLES - can download pixel data into a sub region of /* OpenGL - unlike GLES - can download pixel data into a sub region of
* a larger destination buffer */ * a larger destination buffer */
static void static void
@ -430,7 +422,6 @@ const CoglTextureDriver
_cogl_texture_driver_gl = _cogl_texture_driver_gl =
{ {
_cogl_texture_driver_gen, _cogl_texture_driver_gen,
_cogl_texture_driver_prep_gl_for_pixels_upload,
_cogl_texture_driver_upload_subregion_to_gl, _cogl_texture_driver_upload_subregion_to_gl,
_cogl_texture_driver_upload_to_gl, _cogl_texture_driver_upload_to_gl,
_cogl_texture_driver_prep_gl_for_pixels_download, _cogl_texture_driver_prep_gl_for_pixels_download,

View File

@ -453,7 +453,6 @@ const CoglTextureDriver
_cogl_texture_driver_gles = _cogl_texture_driver_gles =
{ {
_cogl_texture_driver_gen, _cogl_texture_driver_gen,
_cogl_texture_driver_prep_gl_for_pixels_upload,
_cogl_texture_driver_upload_subregion_to_gl, _cogl_texture_driver_upload_subregion_to_gl,
_cogl_texture_driver_upload_to_gl, _cogl_texture_driver_upload_to_gl,
_cogl_texture_driver_prep_gl_for_pixels_download, _cogl_texture_driver_prep_gl_for_pixels_download,