diff options
Diffstat (limited to 'include/cru/platform/graphics/cairo/CairoPainter.h')
-rw-r--r-- | include/cru/platform/graphics/cairo/CairoPainter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cru/platform/graphics/cairo/CairoPainter.h b/include/cru/platform/graphics/cairo/CairoPainter.h index 83f0329b..477bd289 100644 --- a/include/cru/platform/graphics/cairo/CairoPainter.h +++ b/include/cru/platform/graphics/cairo/CairoPainter.h @@ -8,8 +8,8 @@ namespace cru::platform::graphics::cairo { class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource, public virtual IPainter { public: - CairoPainter(CairoGraphicsFactory* factory, cairo_t* cairo, - bool auto_release); + CairoPainter(CairoGraphicsFactory* factory, cairo_t* cairo, bool auto_release, + cairo_surface_t* cairo_surface = nullptr); ~CairoPainter(); public: @@ -53,6 +53,8 @@ class CRU_PLATFORM_GRAPHICS_CAIRO_API CairoPainter : public CairoResource, cairo_t* cairo_; bool auto_release_; + cairo_surface_t* cairo_surface_; + std::vector<Rect> layer_stack_; }; } // namespace cru::platform::graphics::cairo |