Searched refs:gScratchBuffer (Results 1 – 2 of 2) sorted by relevance
45 static GdkPixmap* gScratchBuffer = 0; variable48 if (gScratchBuffer) in purgeScratchBuffer()49 g_object_unref(gScratchBuffer); in purgeScratchBuffer()50 gScratchBuffer = 0; in purgeScratchBuffer()97 if (gScratchBuffer) in WidgetRenderingContext()98 gdk_pixmap_get_size(gScratchBuffer, &scratchWidth, &scratchHeight); in WidgetRenderingContext()101 if (!gScratchBuffer || scratchWidth < width || scratchHeight < height) { in WidgetRenderingContext()107 …gScratchBuffer = gdk_pixmap_new(0, width, height, gdk_colormap_get_visual(theme->m_colormap)->dept… in WidgetRenderingContext()108 gdk_drawable_set_colormap(gScratchBuffer, theme->m_colormap); in WidgetRenderingContext()110 m_target = gScratchBuffer; in WidgetRenderingContext()[all …]
45 static RefPtr<cairo_surface_t> gScratchBuffer; variable48 gScratchBuffer.clear(); in purgeScratchBuffer()70 … int scratchWidth = gScratchBuffer.get() ? cairo_image_surface_get_width(gScratchBuffer.get()) : 0; in getScratchBuffer()71 …int scratchHeight = gScratchBuffer.get() ? cairo_image_surface_get_height(gScratchBuffer.get()) : … in getScratchBuffer()74 if (gScratchBuffer.get() && scratchWidth >= width && scratchHeight >= height) in getScratchBuffer()75 return gScratchBuffer.get(); in getScratchBuffer()82 gScratchBuffer = adoptRef(cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height)); in getScratchBuffer()83 return gScratchBuffer.get(); in getScratchBuffer()