aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* 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 -pict option to bench, which draws everything through a picture, and thenGravatar reed@android.com2009-03-31
| | | | | | | | compares the result to the original draws git-svn-id: http://skia.googlecode.com/svn/trunk@139 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
* make bitmap width/height 32bits, matching the APIGravatar reed@android.com2009-03-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@137 2bbb7eff-a529-9590-31e7-b0007b416f81
* rename drawable to drawing for now, so we don't collide with animatorGravatar reed@android.com2009-03-24
| | | | | | | | remove sk_throw in pixelref. a debug statement is enough. git-svn-id: http://skia.googlecode.com/svn/trunk@136 2bbb7eff-a529-9590-31e7-b0007b416f81
* use static_castGravatar reed@android.com2009-03-23
| | | | | | | | fix comments git-svn-id: http://skia.googlecode.com/svn/trunk@135 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
* check-point for drawables (experimental)Gravatar reed@android.com2009-03-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@133 2bbb7eff-a529-9590-31e7-b0007b416f81
* pull latest from androidGravatar reed@android.com2009-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@132 2bbb7eff-a529-9590-31e7-b0007b416f81
* check for NaN in path iterator (otherwise we have an infinite loop)Gravatar reed@android.com2009-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@131 2bbb7eff-a529-9590-31e7-b0007b416f81
* forgot to initialize fFactory in the unflatten constructorGravatar reed@android.com2009-03-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@130 2bbb7eff-a529-9590-31e7-b0007b416f81
* build with -WallGravatar reed@android.com2009-03-20
| | | | | | | | fix associated warnings (at least on gcc 4.0.1) git-svn-id: http://skia.googlecode.com/svn/trunk@129 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
* fix capitalization for system includesGravatar reed@android.com2009-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@127 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix heapsortGravatar reed@android.com2009-03-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@126 2bbb7eff-a529-9590-31e7-b0007b416f81
* Simplify font-chaining (fallbacks) to have fonthost just return the nextGravatar reed@android.com2009-03-17
| | | | | | | | | | logical fontID. Extend ImageRef to accept an imagedecoder factory, to replace calling the std one. git-svn-id: http://skia.googlecode.com/svn/trunk@125 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
* Add missing file.Gravatar turk@google.com2009-03-16
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@122 2bbb7eff-a529-9590-31e7-b0007b416f81
* see prev. checkin (missed these files). Change ownership rule for streams to theGravatar reed@android.com2009-03-16
| | | | | | | | | skia std. of receiver calls ref() if it needs to, but regardless, the caller always manages/balances its own ownership. git-svn-id: http://skia.googlecode.com/svn/trunk@121 2bbb7eff-a529-9590-31e7-b0007b416f81
* Initial implementation of polygon trianagulation. It seems to be robust and ↵Gravatar turk@google.com2009-03-13
| | | | | | | | | | | | passes the associated tests, but has some problems: (1) it generates T-vertices; (2) it only works with right-handed outer contours; (3) The sort and search are inefficient. git-svn-id: http://skia.googlecode.com/svn/trunk@119 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
* implement fontmetricsGravatar reed@android.com2009-03-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@116 2bbb7eff-a529-9590-31e7-b0007b416f81
* check-point (2) on mac fontsGravatar reed@android.com2009-03-09
| | | | | | | | - simplify typeface factories git-svn-id: http://skia.googlecode.com/svn/trunk@115 2bbb7eff-a529-9590-31e7-b0007b416f81
* minor check-point for switching to glyphsGravatar reed@android.com2009-03-09
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@114 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
* fix leak in DeserializeGravatar reed@android.com2009-03-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@112 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix ref() in CreateTypefaceGravatar reed@android.com2009-03-05
| | | | | | | | fix comment in SkDraw.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@111 2bbb7eff-a529-9590-31e7-b0007b416f81
* Significant cleanup in api, and more importantly in sementics, of SkFontHostGravatar reed@android.com2009-03-04
| | | | | | | | | | | | | | - FindTypeface is now CreateTypeface, and what it returns is always considered a new instance, even if it is from a cache (in which case it will have been ref()'d. The caller must always balance its ownership by calling unref() on the result when they are done. - CloseStream is gone, since the caller can/must call stream->unref() when they are done using it. - ResolveTypeface is now ValidFontID, and just returns a bool. git-svn-id: http://skia.googlecode.com/svn/trunk@109 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
* Move SkTSort.h back to private, and instead allow in the makefile for tests toGravatar reed@android.com2009-03-04
| | | | | | | | | see private headers. This also means the tests don't have to use ../.. to find the private header they want. git-svn-id: http://skia.googlecode.com/svn/trunk@107 2bbb7eff-a529-9590-31e7-b0007b416f81
* Format more consistently with the rest of Skia.Gravatar turk@google.com2009-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@106 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove unimplemented (and uncalled) SkTypeface::Hash()Gravatar reed@android.com2009-03-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@105 2bbb7eff-a529-9590-31e7-b0007b416f81
* change srcover (and dstover) to use the faster thought slightly less accurateGravatar reed@android.com2009-03-03
| | | | | | | | | | computation of the scale factor (+1 instead of SkAlpha255To256). This has the upside of guaranteeing that if the dst is opaque (alpha==255), it will always stay opaque. git-svn-id: http://skia.googlecode.com/svn/trunk@104 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unit test and bug fixes for cubic Bezier clipping.Gravatar turk@google.com2009-03-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@102 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add cubic clipping, similar to that of quad clipping. Both Newton-Raphson ↵Gravatar turk@google.com2009-03-02
| | | | | | and Bisection are implemented, because it is not clear which one will yield the highest performance on a given platform. Bisection is turned on as the default. git-svn-id: http://skia.googlecode.com/svn/trunk@101 2bbb7eff-a529-9590-31e7-b0007b416f81
* explicitly call "our" version of clipPath in the case when clipRect needs toGravatar reed@android.com2009-03-02
| | | | | | | | | turn itself into a path when the matrix rotates. This avoids infinite recursion when the canvas is subclassed (e.g. SkPicture's recording canvas). git-svn-id: http://skia.googlecode.com/svn/trunk@100 2bbb7eff-a529-9590-31e7-b0007b416f81
* add initial unittests for PathGravatar reed@android.com2009-03-02
| | | | | | | | | add operator== for paths still need to implement isRect! git-svn-id: http://skia.googlecode.com/svn/trunk@99 2bbb7eff-a529-9590-31e7-b0007b416f81
* add tests (unittests) to MakefileGravatar reed@android.com2009-02-28
| | | | | | | | move SkTSort.h into public includes git-svn-id: http://skia.googlecode.com/svn/trunk@98 2bbb7eff-a529-9590-31e7-b0007b416f81
* more tests (need more meat in there)Gravatar reed@android.com2009-02-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@97 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
* Oops, CreateTypeface takes over ownership of the stream, instead of just ref()Gravatar reed@android.com2009-02-20
| | | | | | | | | This should be changed, for until it is, fix CreateTypefaceFromFile to not call unref() if the typeface got created. git-svn-id: http://skia.googlecode.com/svn/trunk@94 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement CreateTypefaceFromFileGravatar reed@android.com2009-02-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@93 2bbb7eff-a529-9590-31e7-b0007b416f81
* add picture-record option to speedup complex clipsGravatar reed@android.com2009-02-13
| | | | | | | | remove hack that stopped picture-playback from culling on clipPath() result git-svn-id: http://skia.googlecode.com/svn/trunk@92 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove white-spaceGravatar reed@android.com2009-02-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@91 2bbb7eff-a529-9590-31e7-b0007b416f81
* handle failure when creating a scalercontextGravatar reed@android.com2009-02-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@90 2bbb7eff-a529-9590-31e7-b0007b416f81
* check for non-invertible matrices in getClipBounds()Gravatar reed@android.com2009-02-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@89 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
* explicitly define the gHead for the codec llistGravatar reed@android.com2009-01-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@85 2bbb7eff-a529-9590-31e7-b0007b416f81