clutter/pick-context: Remove clutter_pick_context_get_framebuffer()
It is not used anymore. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1509
This commit is contained in:
parent
54db1b2fa2
commit
ce6f13357a
@ -17,6 +17,7 @@
|
||||
|
||||
#include "clutter-build-config.h"
|
||||
|
||||
#include "clutter-backend.h"
|
||||
#include "clutter-pick-context-private.h"
|
||||
|
||||
struct _ClutterPickContext
|
||||
@ -24,7 +25,6 @@ struct _ClutterPickContext
|
||||
grefcount ref_count;
|
||||
|
||||
ClutterPickMode mode;
|
||||
CoglFramebuffer *framebuffer;
|
||||
ClutterPickStack *pick_stack;
|
||||
};
|
||||
|
||||
@ -42,10 +42,8 @@ clutter_pick_context_new_for_view (ClutterStageView *view,
|
||||
pick_context = g_new0 (ClutterPickContext, 1);
|
||||
g_ref_count_init (&pick_context->ref_count);
|
||||
pick_context->mode = mode;
|
||||
pick_context->framebuffer =
|
||||
g_object_ref (clutter_stage_view_get_framebuffer (view));
|
||||
|
||||
context = cogl_framebuffer_get_context (pick_context->framebuffer);
|
||||
context = clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||
pick_context->pick_stack = clutter_pick_stack_new (context);
|
||||
|
||||
return pick_context;
|
||||
@ -62,7 +60,6 @@ static void
|
||||
clutter_pick_context_dispose (ClutterPickContext *pick_context)
|
||||
{
|
||||
g_clear_pointer (&pick_context->pick_stack, clutter_pick_stack_unref);
|
||||
g_clear_object (&pick_context->framebuffer);
|
||||
}
|
||||
|
||||
void
|
||||
@ -82,15 +79,6 @@ clutter_pick_context_destroy (ClutterPickContext *pick_context)
|
||||
clutter_pick_context_unref (pick_context);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_pick_context_get_framebuffer: (skip)
|
||||
*/
|
||||
CoglFramebuffer *
|
||||
clutter_pick_context_get_framebuffer (ClutterPickContext *pick_context)
|
||||
{
|
||||
return pick_context->framebuffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_pick_context_get_mode: (skip)
|
||||
*/
|
||||
|
@ -43,9 +43,6 @@ void clutter_pick_context_unref (ClutterPickContext *pick_context);
|
||||
CLUTTER_EXPORT
|
||||
void clutter_pick_context_destroy (ClutterPickContext *pick_context);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
CoglFramebuffer * clutter_pick_context_get_framebuffer (ClutterPickContext *pick_context);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
ClutterPickMode clutter_pick_context_get_mode (ClutterPickContext *pick_context);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user