A renderer that can paint XPS compatible DOM into a Skia canvas using the Skia API.
More...
#include <skiarenderer.h>
|
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.
|
|
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 JAWSMAKO_API ISkiaRendererPtr | create (const IJawsMakoPtr &jawsMako) |
| Create a Skia Renderer Instance.
|
|
|
virtual | ~IRCObject () |
| Virtual destructor.
|
|
A renderer that can paint XPS compatible DOM into a Skia canvas using the Skia API.
◆ 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: