Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SKIA library instead of Android Canvas

While I am researching about 2D rendering pipeline of android, I came to know a graphic library SKIA written in C++.

But I am not sure it can be used instead of android Canvas.

Can it be used as a replacement of the Canvas?

Thanks in advance for your help.

like image 679
user1985973 Avatar asked May 23 '13 10:05

user1985973


People also ask

Does Android use Skia?

Skia is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms. It serves as the graphics engine for Google Chrome and ChromeOS, Android, Flutter, and many other products.

What is Skia canvas?

Skia Canvas is a browser-less implementation of the HTML Canvas drawing API for Node. js. It is based on Google's Skia graphics engine and, accordingly, produces very similar results to Chrome's <canvas> element.

Is Skia cross a platform?

SkiaSharp is a cross-platform 2D graphics API for . NET platforms based on Google's Skia Graphics Library (skia.org). It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.

Is Skia open source?

The Skia Graphics Engine or Skia is an open-source 2D graphics library written in C++.


2 Answers

You can find information here: Using Skia in Android NDK

All UI animation performed by Android are implementing using SKIA, but is very inefficient for huge graphical stuff since it does not use the graphic hardware available on the phone.

like image 191
Jachu Avatar answered Oct 04 '22 20:10

Jachu


The Skia library is the Canvas, by and large. See: How do the pieces of Android's (2D) Canvas drawing pipeline fit together?

like image 31
CommonsWare Avatar answered Oct 04 '22 20:10

CommonsWare