summaryrefslogtreecommitdiff
path: root/poppler/CairoOutputDev.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-06-28 03:44:12 +0000
committerKristian Høgsberg <krh@redhat.com>2005-06-28 03:44:12 +0000
commit61e9bc76eb2fcb0b4b899ebfad1cc71c59fc8274 (patch)
tree4c9bf3ed5632cee5d513f025060cb105f9ad29c9 /poppler/CairoOutputDev.h
parent8079dce3f0ed91dd531465f45c6d3c568ab4ecd1 (diff)
2005-06-27 Kristian Høgsberg <krh@redhat.com>
* poppler/CairoOutputDev.cc: * poppler/CairoOutputDev.h: Change CairoOutputDev to render to a given surface and let the user create that surface. * glib/poppler-document.cc: * glib/poppler-page.cc: * glib/poppler-private.h: Create the cairo image surface here instead and pass it to the CairoOutputDev for rendering. * poppler/CairoOutputDevImage.cc: * poppler/CairoOutputDevImage.h: * poppler/CairoOutputDevX.cc: * poppler/CairoOutputDevX.h: * poppler/Makefile.am: Remove specialized cairo output devices.
Diffstat (limited to 'poppler/CairoOutputDev.h')
-rw-r--r--poppler/CairoOutputDev.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/poppler/CairoOutputDev.h b/poppler/CairoOutputDev.h
index a455b570..622b232e 100644
--- a/poppler/CairoOutputDev.h
+++ b/poppler/CairoOutputDev.h
@@ -36,7 +36,7 @@ class CairoOutputDev: public OutputDev {
public:
// Constructor.
- CairoOutputDev(void);
+ CairoOutputDev();
// Destructor.
virtual ~CairoOutputDev();
@@ -130,8 +130,9 @@ public:
GBool isReverseVideo() { return gFalse; }
+ void setSurface (cairo_surface_t *surface);
+
protected:
- virtual void createCairo(GfxState *state) = 0;
void doPath(GfxState *state, GfxPath *path, GBool snapToGrid);
GfxRGB fill_color;
@@ -144,10 +145,9 @@ protected:
FT_Library ft_lib;
CairoFontEngine *fontEngine;
- unsigned char *pixels;
- int pixels_w, pixels_h;
cairo_t *cairo;
GBool needFontUpdate; // set when the font needs to be updated
+ cairo_surface_t *surface;
cairo_glyph_t *glyphs;
int glyphCount;
};