mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
28a898a22f
CoglFrameInfo is a frame info container associated with a single onscreen framebuffer. The clutter stage will eventually support drawing a stage frame with multiple onscreen framebuffers, thus needs its own frame info container. This patch introduces a new stage signal 'presented' and a accompaning ClutterFrameInfo and adapts the stage windows and past onscreen frame callbacks users to use the signal and new info container. https://bugzilla.gnome.org/show_bug.cgi?id=768976
66 lines
2.1 KiB
C
66 lines
2.1 KiB
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef META_COMPOSITOR_PRIVATE_H
|
|
#define META_COMPOSITOR_PRIVATE_H
|
|
|
|
#include <X11/extensions/Xfixes.h>
|
|
|
|
#include <meta/compositor.h>
|
|
#include <meta/display.h>
|
|
#include "meta-plugin-manager.h"
|
|
#include "meta-window-actor-private.h"
|
|
#include <clutter/clutter.h>
|
|
|
|
struct _MetaCompositor
|
|
{
|
|
MetaDisplay *display;
|
|
|
|
guint pre_paint_func_id;
|
|
guint post_paint_func_id;
|
|
|
|
gint64 server_time_query_time;
|
|
gint64 server_time_offset;
|
|
|
|
guint server_time_is_monotonic_time : 1;
|
|
guint no_mipmaps : 1;
|
|
|
|
ClutterActor *stage, *window_group, *top_window_group, *feedback_group;
|
|
ClutterActor *background_actor;
|
|
GList *windows;
|
|
Window output;
|
|
|
|
CoglContext *context;
|
|
|
|
/* Used for unredirecting fullscreen windows */
|
|
guint disable_unredirect_count;
|
|
MetaWindow *unredirected_window;
|
|
|
|
gint switch_workspace_in_progress;
|
|
|
|
MetaPluginManager *plugin_mgr;
|
|
|
|
gboolean frame_has_updated_xsurfaces;
|
|
gboolean have_x11_sync_object;
|
|
};
|
|
|
|
/* Wait 2ms after vblank before starting to draw next frame */
|
|
#define META_SYNC_DELAY 2
|
|
|
|
void meta_switch_workspace_completed (MetaCompositor *compositor);
|
|
|
|
gboolean meta_begin_modal_for_plugin (MetaCompositor *compositor,
|
|
MetaPlugin *plugin,
|
|
MetaModalOptions options,
|
|
guint32 timestamp);
|
|
void meta_end_modal_for_plugin (MetaCompositor *compositor,
|
|
MetaPlugin *plugin,
|
|
guint32 timestamp);
|
|
|
|
gint64 meta_compositor_monotonic_time_to_server_time (MetaDisplay *display,
|
|
gint64 monotonic_time);
|
|
|
|
void meta_compositor_flash_window (MetaCompositor *compositor,
|
|
MetaWindow *window);
|
|
|
|
#endif /* META_COMPOSITOR_PRIVATE_H */
|