aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
Commit message (Collapse)AuthorAge
* fix gradients with alpha to convert to premul *after* the intermediate colorGravatar reed@android.com2009-07-02
| | | | | | | | | has been computed, othewise we can't distinguish 0x00000000 from 0x00FF0000 Add fast case for index blit where we read 4 src pixels at a time git-svn-id: http://skia.googlecode.com/svn/trunk@248 2bbb7eff-a529-9590-31e7-b0007b416f81
* use sk_bzero instead of bzero, since it isn't always available.Gravatar reed@android.com2009-06-29
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@244 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shape flatten so they work properly in picturesGravatar reed@android.com2009-06-29
| | | | | | | | add flatten/unflatten to matrix git-svn-id: http://skia.googlecode.com/svn/trunk@242 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shape recording to pictuures (sans serialization)Gravatar reed@android.com2009-06-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@240 2bbb7eff-a529-9590-31e7-b0007b416f81
* detect nearly translate-only matrices when drawing bitmaps (for speed)Gravatar reed@android.com2009-06-24
| | | | | | | | | rename setXfermode(Mode) to setXfermodeMode(Mode) for sanity fix memory leak in setXfermode(Mode) git-svn-id: http://skia.googlecode.com/svn/trunk@239 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove remaining references to porterduffGravatar reed@android.com2009-06-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@236 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove deprecated use of porterduff enumGravatar reed@android.com2009-06-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@235 2bbb7eff-a529-9590-31e7-b0007b416f81
* move xfermode modes from porterduff into xfermode itselfGravatar reed@android.com2009-06-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@232 2bbb7eff-a529-9590-31e7-b0007b416f81
* add sample for mipmapsGravatar reed@android.com2009-06-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@218 2bbb7eff-a529-9590-31e7-b0007b416f81
* add optional Format* parameter to decoder helper functions.Gravatar reed@android.com2009-06-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@215 2bbb7eff-a529-9590-31e7-b0007b416f81
* add shader flag kConstInY_FlagGravatar reed@android.com2009-06-12
| | | | | | | | | | | this signals blitters that the shader will return the same results for a given x value, independent of y. Useful inside blitRect(), where it can cache the first call to shadeSpan() and reuse it on all subsequent scans. Works with (non-rotated) linear-gradients, and Nx1 bitmaps. git-svn-id: http://skia.googlecode.com/svn/trunk@214 2bbb7eff-a529-9590-31e7-b0007b416f81
* Some Linux / 64-bit compile fixes.Gravatar deanm@chromium.org2009-06-11
| | | | | | | Review URL: http://codereview.appspot.com/63189 git-svn-id: http://skia.googlecode.com/svn/trunk@209 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkParsePath to go to/from SVG strings (e.g. "M0,0 L10,20")Gravatar reed@android.com2009-06-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@203 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix dumpcanvas to recurse on pictures and shapesGravatar reed@android.com2009-06-05
| | | | | | | | add cached bitmap for gradients to avoid thrashing textures in gl git-svn-id: http://skia.googlecode.com/svn/trunk@201 2bbb7eff-a529-9590-31e7-b0007b416f81
* add isConvex() hit to SkPath, to be used to speed up fills and openglGravatar reed@android.com2009-06-03
| | | | | | | | | | set linewidth in gldevice for hair rects remove some cruft from samples add more gl-unimpl messages git-svn-id: http://skia.googlecode.com/svn/trunk@199 2bbb7eff-a529-9590-31e7-b0007b416f81
* update includes for android for gl backendGravatar reed@android.com2009-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@194 2bbb7eff-a529-9590-31e7-b0007b416f81
* call notifyPixelsChanged() when the pages are flipped in pageflippixelrefGravatar reed@android.com2009-05-30
| | | | | | | | update samples git-svn-id: http://skia.googlecode.com/svn/trunk@192 2bbb7eff-a529-9590-31e7-b0007b416f81
* animate matrixref in sample shapesGravatar reed@android.com2009-05-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@189 2bbb7eff-a529-9590-31e7-b0007b416f81
* move shapes subclasses into effectsGravatar reed@android.com2009-05-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@188 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SDL supportGravatar reed@android.com2009-05-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@182 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSafeRef / SkSafeUnref as inline static functions, to use in place of ourGravatar reed@android.com2009-05-22
| | | | | | | | | | | existing obj->safeRef(), which is unsafe since it can its 'if (this)' can be optimized away by some compilers. fix some overflows in mimpmap generation git-svn-id: http://skia.googlecode.com/svn/trunk@181 2bbb7eff-a529-9590-31e7-b0007b416f81
* add sample effectsGravatar reed@android.com2009-05-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@180 2bbb7eff-a529-9590-31e7-b0007b416f81
* shapes checkpoint: move matrix into groupshape and out of shapeGravatar reed@android.com2009-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@178 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkSize for dimensionsGravatar reed@android.com2009-05-13
| | | | | | | | | add SkShape baseclass, in the hopes of having SkPicture inherit from that, and also using shapes as the extension mechanism for things like animated-gif git-svn-id: http://skia.googlecode.com/svn/trunk@174 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix copyTo to only copy the minimum pixels per row, and to lock the src beforeGravatar reed@android.com2009-05-05
| | | | | | | | | trying to access its colorTable. Update unittest for copyTo. Add sample for using a mask to clip a layer. git-svn-id: http://skia.googlecode.com/svn/trunk@168 2bbb7eff-a529-9590-31e7-b0007b416f81
* add sample for gradientsGravatar reed@android.com2009-04-02
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@144 2bbb7eff-a529-9590-31e7-b0007b416f81
* API change: SkPath computeBounds -> getBoundsGravatar reed@android.com2009-04-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@140 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkChunkAlloc::unalloc() to undo the last allocation, useful if the ↵Gravatar reed@android.com2009-03-30
| | | | | | | | | | | caller wants to treat the allocats like temp memory (see PictureRecord) Call unalloc if a paint (or other cached object) is already in our list for picture recording Use correct CompareType macro in SkCanvas::quickReject git-svn-id: http://skia.googlecode.com/svn/trunk@138 2bbb7eff-a529-9590-31e7-b0007b416f81
* add check/hack to avoid drawing outside of the clip for hairlinesGravatar reed@android.com2009-03-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@134 2bbb7eff-a529-9590-31e7-b0007b416f81
* promote SkMask's rowBytes to 32bits, since its bounds is a 32bit rectGravatar reed@android.com2009-03-19
| | | | | | | | be sure a rect is sorted before using it as the path's bounds cache git-svn-id: http://skia.googlecode.com/svn/trunk@128 2bbb7eff-a529-9590-31e7-b0007b416f81
* disable cubic test for now (currently broken)Gravatar reed@android.com2009-03-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@124 2bbb7eff-a529-9590-31e7-b0007b416f81
* add sanity checks to handles extremely large coordinates or filter margins.Gravatar reed@android.com2009-03-16
| | | | | | | | | Should not hurt features (we hope), but is an easy way to survive malicious values on a small-memory machine like a handset. git-svn-id: http://skia.googlecode.com/svn/trunk@123 2bbb7eff-a529-9590-31e7-b0007b416f81
* Change (correct) SkImageRef's ownership rule for streams to the skia standardGravatar reed@android.com2009-03-16
| | | | | | | | | | pattern: the receiver will call ref() if it chooses when passed to a constructor or setter, so the caller must balance its ownership itself. This matches how all other refcnt objects are handled. git-svn-id: http://skia.googlecode.com/svn/trunk@120 2bbb7eff-a529-9590-31e7-b0007b416f81
* remember to specify the bloody font tag in the constructor!Gravatar reed@android.com2009-03-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@118 2bbb7eff-a529-9590-31e7-b0007b416f81
* mac fonts sort of work nowGravatar reed@android.com2009-03-09
| | | | | | | | | - haven't tested rotation yet - spacing/bounds still look bad git-svn-id: http://skia.googlecode.com/svn/trunk@117 2bbb7eff-a529-9590-31e7-b0007b416f81
* migrate more legacy unittests into tests/Gravatar reed@android.com2009-03-07
| | | | | | | | SkParse yet to be cleaned up git-svn-id: http://skia.googlecode.com/svn/trunk@113 2bbb7eff-a529-9590-31e7-b0007b416f81
* patch SkMath.h to build in ARMv4Gravatar reed@android.com2009-03-05
| | | | | | | | test code for mac fonts (disabled) git-svn-id: http://skia.googlecode.com/svn/trunk@110 2bbb7eff-a529-9590-31e7-b0007b416f81
* API cleanup: rename typeface Create to CreateFromName, and remove default argGravatar reed@android.com2009-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@108 2bbb7eff-a529-9590-31e7-b0007b416f81
* add initial unittest framework (tests)Gravatar reed@android.com2009-02-27
| | | | | | | | move some previous unittests out of core classes and into tests git-svn-id: http://skia.googlecode.com/svn/trunk@96 2bbb7eff-a529-9590-31e7-b0007b416f81
* Handle kA8 bitmaps drawing through a matrix (was infinitely recursive)Gravatar reed@android.com2009-02-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@95 2bbb7eff-a529-9590-31e7-b0007b416f81
* Chop quads exactly on the clip bounds, so we don't spend CPU cycles walking themGravatar reed@android.com2009-02-06
| | | | | | | | | | | | when we're above or below the clip. Still to do: - chop in X to avoid 16.16. overflow in the edgelist - apply the same logic for cubics (tho much harder math) git-svn-id: http://skia.googlecode.com/svn/trunk@88 2bbb7eff-a529-9590-31e7-b0007b416f81
* separate image encode and decodeGravatar reed@android.com2009-01-06
| | | | | | | | remove obsolete build-flag for encode git-svn-id: http://skia.googlecode.com/svn/trunk@56 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove old test that assumed fBM had been decodedGravatar reed@android.com2008-12-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@49 2bbb7eff-a529-9590-31e7-b0007b416f81
* update more sample code to new compose shader headerGravatar reed@android.com2008-12-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@48 2bbb7eff-a529-9590-31e7-b0007b416f81
* add mac image-encodingGravatar reed@android.com2008-12-23
| | | | | | | | add 'f' to sampleapp, which writes a png file for the currnet screen git-svn-id: http://skia.googlecode.com/svn/trunk@47 2bbb7eff-a529-9590-31e7-b0007b416f81
* add CG imagedecoder (still needs encoding)Gravatar reed@android.com2008-12-23
| | | | | | | | update some sample files to not use obsolete SkShaderExtras.h git-svn-id: http://skia.googlecode.com/svn/trunk@46 2bbb7eff-a529-9590-31e7-b0007b416f81
* add sampeapp projGravatar reed@android.com2008-12-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@38 2bbb7eff-a529-9590-31e7-b0007b416f81
* first cut at event-based test appGravatar reed@android.com2008-12-19
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@37 2bbb7eff-a529-9590-31e7-b0007b416f81
* grab from latest androidGravatar reed@android.com2008-12-17
git-svn-id: http://skia.googlecode.com/svn/trunk@27 2bbb7eff-a529-9590-31e7-b0007b416f81