From 905b8a96963f78358abfd109c0c49758c6fe4e9d Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 28 Jul 2011 07:04:08 +0200 Subject: Per-item render cache. Cache some offscreen data to facilitate smoother navigation. (bzr r10347.1.20) --- src/display/drawing-context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/display/drawing-context.h') diff --git a/src/display/drawing-context.h b/src/display/drawing-context.h index c0ea81874..8d2e7d68a 100644 --- a/src/display/drawing-context.h +++ b/src/display/drawing-context.h @@ -38,6 +38,7 @@ public: DrawingContext *_ct; }; + DrawingContext(cairo_t *ct, Geom::Point const &origin); DrawingContext(cairo_surface_t *surface, Geom::Point const &origin); DrawingContext(DrawingSurface &s); ~DrawingContext(); @@ -103,6 +104,7 @@ private: cairo_t *_ct; DrawingSurface *_surface; bool _delete_surface; + bool _restore_context; friend class DrawingSurface; }; -- cgit v1.2.3