Questions tagged [skia]

Skia is a complete C++ 2D graphics library for drawing text, geometries, and images.

Skia is a key part of several shipping products, including chromium, and as such will continue to track those projects' needs and priorities. However, Skia is also a general purpose graphics engine.

Features include:

  • 3x3 matrices w/ perspective
  • antialiasing, transparency, filters
  • shaders, xfermodes, maskfilters, patheffects
  • subpixel text

Device backends for Skia currently include:

  • Raster
  • OpenGL
  • PDF
  • XPS
  • Picture (for recording and then playing back into another Canvas)

Ports include:

  • Android
  • Windows
  • Macintosh
  • Linux

More information available at

  1. http://code.google.com/p/skia/
  2. http://en.wikipedia.org/wiki/Skia_Graphics_Engine
319 questions
0
votes
1 answer

skia is missing xcode project files

I downloaded Skia project from git repository. I searched the .xcodeproj files but couldn't find them... How will I use the project in Xcode? I am using mac os x 10.8 with xcode 4.6.
Abuzettin.H
  • 113
  • 2
0
votes
0 answers

Bitmap fast operation in Android

Here is what i am doing... Convert image from camera feed which in YUV_ byte array Rotate image at angle (angle is dynamic. it`s value will be 1-180) Scale image Save image to sd-card All above thing are going well.But above whole process take…
Arfan Mirza
  • 668
  • 1
  • 14
  • 24
0
votes
2 answers

Guidance regarding skia library

I am trying to build the SKIA library with Linux: https://code.google.com/p/skia/ I have successfully run ./gyp_skia followed by the make command. You often run make install after make. However, the SKIA library does not seem to have a make…
user3358147
  • 69
  • 5
  • 12
0
votes
0 answers

Why is texture uploading so slow on android?

I have a piece of code where I am drawing a string of length around 20 characters into Skia Bitmap of size 1000x100 pixels. Then load that into a texture and draw it on screen. I found that it is taking around 29-30ms just to upload the SkBitmap…
videoguy
  • 1,732
  • 2
  • 24
  • 49
0
votes
1 answer

Strange Linker error

I am using cl compiler and LINK to link the code. I am getting very strange linker in the following sample code. //main.cpp int main () { Test(); } void Test () { } //test.cpp void Test3 (); void Test2 () { Test3 (); } When I compile…
doptimusprime
  • 9,115
  • 6
  • 52
  • 90
0
votes
1 answer

Android: GraphicBuffer data format

As far as I know, there're 2 graphics engines in Android: OpenGL ES and Skia. Both of them provide a set of drawing API and output graphics data to the underlying GraphicBuffer. My question is what's the data format for GraphicBuffer? Is it a…
Dagang
  • 24,586
  • 26
  • 88
  • 133
0
votes
0 answers

Memory leak in SkCanvas::drawText

I am using Skia for rendering. I am getting memory leak in following code on Mac OS X. Xcode Instrument shows a memory leak here. //mytext is text in UTF-16 encoding. //skpaint is a SkPaint * //canvas is SkCanvas * which is…
doptimusprime
  • 9,115
  • 6
  • 52
  • 90
0
votes
1 answer

skia project run in Android.4.2, Does there exists difference define in Android 4.2 and Android 2.2?

I try to display YUV video on the Andorid In Android 2.2 version, it is OK however in Android 4.2 the screen is total black In the project, I use JAVA to display the content of image and use jni to read YUV and return the YUV data back to JAVA The…
0
votes
1 answer

BitmapRegionDecode.decodeRegion, skia error when trying to create tile from bitmap

Hi i get a error skia: --- decoder->decodeRegion returned false when I try to decode a second region with BitmapRegionDeocde.decodeRegion. I manage to get the first region bitmap, but if get null for the second region. How can I manage to get the…
Kowlown
  • 920
  • 10
  • 26
0
votes
1 answer

Android JB skia api/operation list

I noticed the following explanation in Android developer official website, " we anticipate Skia to be slowly phased out without adverse effects to developers. Skia is currently deprecated and in maintenance mode but will be neccessary for a while…
Sam
  • 4,521
  • 13
  • 46
  • 81
0
votes
1 answer

Skia How to create Typeface from assets using SkTypeface* CreateFromFile(const char path[]);

I'm new to Android, and I am wondering how to create Typeface from assets I have my .ttf file in my Android application in the assets folder. I'm using native code to create typeface: class Test { public: Test(){}; Test(const char* path); …
Ihor Bykov
  • 1,843
  • 3
  • 15
  • 22
0
votes
1 answer

Problems when build Skia on linux

Please help me about problems when i try build Skia by this guide It said that: /usr/bin/ld: cannot find -lfreetype /usr/bin/ld: cannot find -lfontconfig /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -lGLU /usr/bin/ld: cannot find…
Ankal
  • 21
  • 3
0
votes
1 answer

Not getting UI display with Skia library tests on ubuntu

I followed the steps from skia site for compiling skia r1236 on my Ubuntu 12.04 64 bit machine. When i run the tests , no window comes up to show the graphical result.The output on console is : [1/33] PDFPrimitives... ................... [33/33]…
Manik Mahajan
  • 1,566
  • 2
  • 13
  • 19
0
votes
1 answer

How to enable skia with GPU backend on JB

I heard Skia GPU acc was added in Android 3.0 but seems it was default disabled since Android 4.0 probably because of the shift to HWUI (openGL implementation of Canvas). How could I enable that again just for benchmark purpose.
pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
0
votes
1 answer

Why does SKIA not use a custom FilterInputStream?

I'm trying to decode a bitmap from an extended FilterInputStream. I have to perform on-the-fly byte manipulation to the image data to provide a decodable image to SKIA, however it seems like SKIA ignores my custom InputStream and initializes one of…
Xiphirx
  • 1
  • 1
1 2 3
21
22