summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/gtkmm2ext
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-08 04:23:44 +0100
committerRobin Gareus <robin@gareus.org>2020-01-08 04:24:51 +0100
commit563a8b15e0205d24af0c93a6c38df0965ea7e5cd (patch)
tree5ebf95721939328ee58130571b12f552307d7775 /libs/gtkmm2ext/gtkmm2ext
parentc59c46a70ab3458f8fd33e243b586e384a2fc114 (diff)
Revert to use an image surface for CairoWidgets
This partially reverts 2edbda252619 and is a follow up to 0b266a54f, to fix performance issues with MS Windows graphics performance.
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/cairo_widget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/cairo_widget.h b/libs/gtkmm2ext/gtkmm2ext/cairo_widget.h
index 7c7456eaa3..0dbd8fe8a0 100644
--- a/libs/gtkmm2ext/gtkmm2ext/cairo_widget.h
+++ b/libs/gtkmm2ext/gtkmm2ext/cairo_widget.h
@@ -40,7 +40,7 @@ public:
void set_canvas_widget ();
void use_nsglview ();
- void use_intermediate_surface (bool yn = true);
+ void use_image_surface (bool yn = true);
/* swizzle Gtk::Widget methods for Canvas::Widget */
void queue_draw ();
@@ -143,12 +143,13 @@ protected:
static sigc::slot<void,Gtk::Widget*> focus_handler;
private:
+ Cairo::RefPtr<Cairo::Surface> image_surface;
Glib::SignalProxyProperty _name_proxy;
sigc::connection _parent_style_change;
Widget * _current_parent;
bool _canvas_widget;
void* _nsglview;
- bool _use_intermediate_surface;
+ bool _use_image_surface;
Gdk::Rectangle _allocation;
};