Mako 7.5.0 API
Loading...
Searching...
No Matches
JawsMako::ISkiaRenderer Class Referenceabstract

A renderer that can paint XPS compatible DOM into a Skia canvas using the Skia API. More...

#include <skiarenderer.h>

Inheritance diagram for JawsMako::ISkiaRenderer:

Public Member Functions

virtual void drawNode (const IDOMNodePtr &node, SkCanvas *canvas)=0
 Render the given node into the Skia canvas.
 
virtual void flushCaches ()=0
 Flush all caches used by the renderer.
 
- Public Member Functions inherited from IRCObject
virtual void addRef () const =0
 Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
 
virtual bool decRef () const =0
 Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
 
virtual int32 getRefCount () const =0
 Retrieve the current reference count of the actual object pointed to.
 

Static Public Member Functions

static JAWSMAKO_API ISkiaRendererPtr create (const IJawsMakoPtr &jawsMako)
 Create a Skia Renderer Instance.
 

Additional Inherited Members

- Protected Member Functions inherited from IRCObject
virtual ~IRCObject ()
 Virtual destructor.
 

Detailed Description

A renderer that can paint XPS compatible DOM into a Skia canvas using the Skia API.

Member Function Documentation

◆ create()

static JAWSMAKO_API ISkiaRendererPtr JawsMako::ISkiaRenderer::create ( const IJawsMakoPtr & jawsMako)
static

Create a Skia Renderer Instance.

     As some data will be cached, it is best to reuse a single
     instance when repeatedly rendering the same content or
     content from the same document.

◆ drawNode()

virtual void JawsMako::ISkiaRenderer::drawNode ( const IDOMNodePtr & node,
SkCanvas * canvas )
pure virtual

Render the given node into the Skia canvas.

     It is safe for multiple threads to call this member at the
     same time, but care should be taken to ensure that the
     target canvas environment supports this.

◆ flushCaches()

virtual void JawsMako::ISkiaRenderer::flushCaches ( )
pure virtual

Flush all caches used by the renderer.

     This is required if the renderer has previously been used to
     paint content from a file that no longer exists as some of the
     cached results may point to content within such files. It is
     advisable to invoke this function if such a file is deleted or
     moved.

     Secondarily, this may provide temporary memory relief as
     cached objects are released.

The documentation for this class was generated from the following file: