[mutter] clutter/x11: Remove video memory purge API
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/x11: Remove video memory purge API
- Date: Wed, 7 Feb 2018 03:06:45 +0000 (UTC)
commit 61bc1a7d6fa035a2f6d0d9468b020bbc851dc8bf
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Feb 2 14:35:12 2018 +0800
clutter/x11: Remove video memory purge API
Clutter doesn't handle it anyway, and mutter now creates the
CoglRenderer object itself so we don't need this API anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=739178
clutter/clutter/x11/clutter-backend-x11.c | 28 +---------------------------
clutter/clutter/x11/clutter-x11.h | 3 ---
2 files changed, 1 insertion(+), 30 deletions(-)
---
diff --git a/clutter/clutter/x11/clutter-backend-x11.c b/clutter/clutter/x11/clutter-backend-x11.c
index 50fe293c7..52e905d2d 100644
--- a/clutter/clutter/x11/clutter-backend-x11.c
+++ b/clutter/clutter/x11/clutter-backend-x11.c
@@ -109,7 +109,6 @@ static const gchar *atom_names[] = {
#define N_ATOM_NAMES G_N_ELEMENTS (atom_names)
/* various flags corresponding to pre init setup calls */
-static gboolean _want_reset_on_video_memory_purge = FALSE;
static gboolean _no_xevent_retrieval = FALSE;
static gboolean clutter_enable_xinput = TRUE;
static gboolean clutter_enable_argb = FALSE;
@@ -682,8 +681,7 @@ clutter_backend_x11_get_renderer (ClutterBackend *backend,
/* set the display object we're using */
cogl_xlib_renderer_set_foreign_display (renderer, xdisplay);
- cogl_xlib_renderer_request_reset_on_video_memory_purge (renderer,
- _want_reset_on_video_memory_purge);
+
return renderer;
}
@@ -1028,30 +1026,6 @@ clutter_x11_has_event_retrieval (void)
return !_no_xevent_retrieval;
}
-/**
- * clutter_x11_request_reset_on_video_memory_purge:
- *
- * If the GL driver supports the NV_robustness_video_memory_purge
- * extension, this call lets applications request that it gets
- * initialized, thus allowing cogl_get_graphics_reset_status() to
- * report memory purged errors if they happen. Checking for the
- * graphics reset status is the application's responsibility.
- *
- * This function can only be called before calling clutter_init().
- */
-void
-clutter_x11_request_reset_on_video_memory_purge (void)
-{
- if (_clutter_context_is_initialized ())
- {
- g_warning ("%s() can only be used before calling clutter_init()",
- G_STRFUNC);
- return;
- }
-
- _want_reset_on_video_memory_purge = TRUE;
-}
-
/**
* clutter_x11_get_default_screen:
*
diff --git a/clutter/clutter/x11/clutter-x11.h b/clutter/clutter/x11/clutter-x11.h
index bba7ec29d..e3204f393 100644
--- a/clutter/clutter/x11/clutter-x11.h
+++ b/clutter/clutter/x11/clutter-x11.h
@@ -161,9 +161,6 @@ gint clutter_x11_event_get_key_group (const ClutterEvent *event);
CLUTTER_AVAILABLE_IN_ALL
guint clutter_x11_event_sequence_get_touch_detail (const ClutterEventSequence *sequence);
-CLUTTER_AVAILABLE_IN_ALL
-void clutter_x11_request_reset_on_video_memory_purge (void);
-
G_END_DECLS
#endif /* __CLUTTER_X11_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]