mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
cogl: Remove unused CoglTextureDriver::prep_gl_for_pixels_upload
https://gitlab.gnome.org/GNOME/mutter/merge_requests/814
This commit is contained in:
parent
437f6b3d59
commit
0f51ae7cf0
@ -45,18 +45,6 @@ struct _CoglTextureDriver
|
||||
GLenum gl_target,
|
||||
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
|
||||
* handle (i.e a single CoglTexture slice)
|
||||
|
@ -132,14 +132,6 @@ prep_gl_for_pixels_upload_full (CoglContext *ctx,
|
||||
_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
|
||||
* a larger destination buffer */
|
||||
static void
|
||||
@ -430,7 +422,6 @@ const CoglTextureDriver
|
||||
_cogl_texture_driver_gl =
|
||||
{
|
||||
_cogl_texture_driver_gen,
|
||||
_cogl_texture_driver_prep_gl_for_pixels_upload,
|
||||
_cogl_texture_driver_upload_subregion_to_gl,
|
||||
_cogl_texture_driver_upload_to_gl,
|
||||
_cogl_texture_driver_prep_gl_for_pixels_download,
|
||||
|
@ -453,7 +453,6 @@ const CoglTextureDriver
|
||||
_cogl_texture_driver_gles =
|
||||
{
|
||||
_cogl_texture_driver_gen,
|
||||
_cogl_texture_driver_prep_gl_for_pixels_upload,
|
||||
_cogl_texture_driver_upload_subregion_to_gl,
|
||||
_cogl_texture_driver_upload_to_gl,
|
||||
_cogl_texture_driver_prep_gl_for_pixels_download,
|
||||
|
Loading…
Reference in New Issue
Block a user