Hardware Rendering through Skia interface

40 views
Skip to first unread message

deepak garg

unread,
Sep 22, 2009, 5:23:08 AM9/22/09
to skia-discuss, subrhma...@gmail.com
Hi,
I know that skia a Software rendering library, but i was wondering
is it possible to route skia rendering calls through a GPU, it is possible?
if then how to go about it?

regards
deepak

Mike Reed

unread,
Sep 22, 2009, 8:20:42 AM9/22/09
to skia-d...@googlegroups.com, subrhma...@gmail.com
There is an opengl backend for skia. Look at SkGLCanvas.h. This canvas
subclass will redirect all drawing to the current opengl context.

There is no openvg backend yet, but since its API is similarly
structured, it might also fit into this pattern if you're interested.

deepak garg

unread,
Sep 22, 2009, 8:54:23 AM9/22/09
to skia-d...@googlegroups.com
Mike what i could get is, using SKGLCanvas.h we can bind glcontext to skia,
and use skia rendering engine to draw over it. is it correct?
regards

Mike Reed

unread,
Sep 22, 2009, 11:17:13 AM9/22/09
to skia-d...@googlegroups.com
Correct. SkGLCanvas just issues GL calls (by converting the in-comming
skia calls like drawRect).
Reply all
Reply to author
Forward
0 new messages