platform/upstream/libSkiaSharp.git
15 years agoextend gradients to handle (by clamping) the first and last color position if
reed@android.com [Fri, 3 Apr 2009 13:33:51 +0000 (13:33 +0000)]
extend gradients to handle (by clamping) the first and last color position if
it is not at 0 or 1.

git-svn-id: http://skia.googlecode.com/svn/trunk@146 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoreplace floorf() with sk_float_floor(), so it builds on platforms w/o floorf
reed@android.com [Thu, 2 Apr 2009 21:11:14 +0000 (21:11 +0000)]
replace floorf() with sk_float_floor(), so it builds on platforms w/o floorf

git-svn-id: http://skia.googlecode.com/svn/trunk@145 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd sample for gradients
reed@android.com [Thu, 2 Apr 2009 20:49:39 +0000 (20:49 +0000)]
add sample for gradients

git-svn-id: http://skia.googlecode.com/svn/trunk@144 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agocleanup formating (e.g. no trailing spaces)
reed@android.com [Thu, 2 Apr 2009 16:59:40 +0000 (16:59 +0000)]
cleanup formating (e.g. no trailing spaces)

git-svn-id: http://skia.googlecode.com/svn/trunk@143 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agorename tests/main to testmain.cpp
reed@android.com [Wed, 1 Apr 2009 20:26:42 +0000 (20:26 +0000)]
rename tests/main to testmain.cpp
add ANDROID specific work-around for double-cinit bug

git-svn-id: http://skia.googlecode.com/svn/trunk@142 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agorename bench's main to benchmain.cpp, to avoid multiple files with same name
reed@android.com [Wed, 1 Apr 2009 18:38:43 +0000 (18:38 +0000)]
rename bench's main to benchmain.cpp, to avoid multiple files with same name

git-svn-id: http://skia.googlecode.com/svn/trunk@141 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoAPI change: SkPath computeBounds -> getBounds
reed@android.com [Wed, 1 Apr 2009 18:31:44 +0000 (18:31 +0000)]
API change: SkPath computeBounds -> getBounds

git-svn-id: http://skia.googlecode.com/svn/trunk@140 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd -pict option to bench, which draws everything through a picture, and then
reed@android.com [Tue, 31 Mar 2009 03:48:49 +0000 (03:48 +0000)]
add -pict option to bench, which draws everything through a picture, and then
compares the result to the original draws

git-svn-id: http://skia.googlecode.com/svn/trunk@139 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoAdd SkChunkAlloc::unalloc() to undo the last allocation, useful if the caller wants...
reed@android.com [Mon, 30 Mar 2009 21:02:14 +0000 (21:02 +0000)]
Add SkChunkAlloc::unalloc() to undo the last allocation, useful if the 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

15 years agomake bitmap width/height 32bits, matching the API
reed@android.com [Fri, 27 Mar 2009 12:33:50 +0000 (12:33 +0000)]
make bitmap width/height 32bits, matching the API

git-svn-id: http://skia.googlecode.com/svn/trunk@137 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agorename drawable to drawing for now, so we don't collide with animator
reed@android.com [Tue, 24 Mar 2009 18:47:35 +0000 (18:47 +0000)]
rename drawable to drawing for now, so we don't collide with animator
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

15 years agouse static_cast
reed@android.com [Mon, 23 Mar 2009 20:11:11 +0000 (20:11 +0000)]
use static_cast
fix comments

git-svn-id: http://skia.googlecode.com/svn/trunk@135 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd check/hack to avoid drawing outside of the clip for hairlines
reed@android.com [Mon, 23 Mar 2009 16:05:19 +0000 (16:05 +0000)]
add check/hack to avoid drawing outside of the clip for hairlines

git-svn-id: http://skia.googlecode.com/svn/trunk@134 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agocheck-point for drawables (experimental)
reed@android.com [Mon, 23 Mar 2009 03:27:38 +0000 (03:27 +0000)]
check-point for drawables (experimental)

git-svn-id: http://skia.googlecode.com/svn/trunk@133 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agopull latest from android
reed@android.com [Fri, 20 Mar 2009 12:23:07 +0000 (12:23 +0000)]
pull latest from android

git-svn-id: http://skia.googlecode.com/svn/trunk@132 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agocheck for NaN in path iterator (otherwise we have an infinite loop)
reed@android.com [Fri, 20 Mar 2009 12:16:09 +0000 (12:16 +0000)]
check for NaN in path iterator (otherwise we have an infinite loop)

git-svn-id: http://skia.googlecode.com/svn/trunk@131 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoforgot to initialize fFactory in the unflatten constructor
reed@android.com [Fri, 20 Mar 2009 12:08:57 +0000 (12:08 +0000)]
forgot to initialize fFactory in the unflatten constructor

git-svn-id: http://skia.googlecode.com/svn/trunk@130 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agobuild with -Wall
reed@android.com [Fri, 20 Mar 2009 04:59:37 +0000 (04:59 +0000)]
build with -Wall
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

15 years agopromote SkMask's rowBytes to 32bits, since its bounds is a 32bit rect
reed@android.com [Thu, 19 Mar 2009 21:52:42 +0000 (21:52 +0000)]
promote SkMask's rowBytes to 32bits, since its bounds is a 32bit rect
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

15 years agofix capitalization for system includes
reed@android.com [Wed, 18 Mar 2009 19:10:34 +0000 (19:10 +0000)]
fix capitalization for system includes

git-svn-id: http://skia.googlecode.com/svn/trunk@127 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofix heapsort
reed@android.com [Wed, 18 Mar 2009 03:08:15 +0000 (03:08 +0000)]
fix heapsort

git-svn-id: http://skia.googlecode.com/svn/trunk@126 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoSimplify font-chaining (fallbacks) to have fonthost just return the next
reed@android.com [Tue, 17 Mar 2009 17:59:53 +0000 (17:59 +0000)]
Simplify font-chaining (fallbacks) to have fonthost just return the next
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

15 years agodisable cubic test for now (currently broken)
reed@android.com [Mon, 16 Mar 2009 18:47:55 +0000 (18:47 +0000)]
disable cubic test for now (currently broken)

git-svn-id: http://skia.googlecode.com/svn/trunk@124 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd sanity checks to handles extremely large coordinates or filter margins.
reed@android.com [Mon, 16 Mar 2009 18:46:55 +0000 (18:46 +0000)]
add sanity checks to handles extremely large coordinates or filter margins.
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

15 years agoAdd missing file.
turk@google.com [Mon, 16 Mar 2009 17:34:27 +0000 (17:34 +0000)]
Add missing file.

git-svn-id: http://skia.googlecode.com/svn/trunk@122 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agosee prev. checkin (missed these files). Change ownership rule for streams to the
reed@android.com [Mon, 16 Mar 2009 13:56:10 +0000 (13:56 +0000)]
see prev. checkin (missed these files). Change ownership rule for streams to the
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

15 years agoChange (correct) SkImageRef's ownership rule for streams to the skia standard
reed@android.com [Mon, 16 Mar 2009 13:53:11 +0000 (13:53 +0000)]
Change (correct) SkImageRef's ownership rule for streams to the skia standard
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

15 years agoInitial implementation of polygon trianagulation. It seems to be robust and passes...
turk@google.com [Fri, 13 Mar 2009 22:05:46 +0000 (22:05 +0000)]
Initial implementation of polygon trianagulation. It seems to be robust and 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

15 years agoremember to specify the bloody font tag in the constructor!
reed@android.com [Tue, 10 Mar 2009 04:02:30 +0000 (04:02 +0000)]
remember to specify the bloody font tag in the constructor!

git-svn-id: http://skia.googlecode.com/svn/trunk@118 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agomac fonts sort of work now
reed@android.com [Mon, 9 Mar 2009 18:12:13 +0000 (18:12 +0000)]
mac fonts sort of work now
- 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

15 years agoimplement fontmetrics
reed@android.com [Mon, 9 Mar 2009 17:22:22 +0000 (17:22 +0000)]
implement fontmetrics

git-svn-id: http://skia.googlecode.com/svn/trunk@116 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agocheck-point (2) on mac fonts
reed@android.com [Mon, 9 Mar 2009 15:25:11 +0000 (15:25 +0000)]
check-point (2) on mac fonts
- simplify typeface factories

git-svn-id: http://skia.googlecode.com/svn/trunk@115 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agominor check-point for switching to glyphs
reed@android.com [Mon, 9 Mar 2009 14:51:39 +0000 (14:51 +0000)]
minor check-point for switching to glyphs

git-svn-id: http://skia.googlecode.com/svn/trunk@114 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agomigrate more legacy unittests into tests/
reed@android.com [Sat, 7 Mar 2009 03:39:23 +0000 (03:39 +0000)]
migrate more legacy unittests into tests/
SkParse yet to be cleaned up

git-svn-id: http://skia.googlecode.com/svn/trunk@113 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofix leak in Deserialize
reed@android.com [Fri, 6 Mar 2009 15:57:26 +0000 (15:57 +0000)]
fix leak in Deserialize

git-svn-id: http://skia.googlecode.com/svn/trunk@112 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofix ref() in CreateTypeface
reed@android.com [Thu, 5 Mar 2009 20:43:42 +0000 (20:43 +0000)]
fix ref() in CreateTypeface
fix comment in SkDraw.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@111 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agopatch SkMath.h to build in ARMv4
reed@android.com [Thu, 5 Mar 2009 14:14:49 +0000 (14:14 +0000)]
patch SkMath.h to build in ARMv4
test code for mac fonts (disabled)

git-svn-id: http://skia.googlecode.com/svn/trunk@110 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoSignificant cleanup in api, and more importantly in sementics, of SkFontHost
reed@android.com [Wed, 4 Mar 2009 17:37:51 +0000 (17:37 +0000)]
Significant cleanup in api, and more importantly in sementics, of SkFontHost
- 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

15 years agoAPI cleanup: rename typeface Create to CreateFromName, and remove default arg
reed@android.com [Wed, 4 Mar 2009 15:31:48 +0000 (15:31 +0000)]
API cleanup: rename typeface Create to CreateFromName, and remove default arg

git-svn-id: http://skia.googlecode.com/svn/trunk@108 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoMove SkTSort.h back to private, and instead allow in the makefile for tests to
reed@android.com [Wed, 4 Mar 2009 14:02:44 +0000 (14:02 +0000)]
Move SkTSort.h back to private, and instead allow in the makefile for tests to
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

15 years agoFormat more consistently with the rest of Skia.
turk@google.com [Wed, 4 Mar 2009 01:33:35 +0000 (01:33 +0000)]
Format more consistently with the rest of Skia.

git-svn-id: http://skia.googlecode.com/svn/trunk@106 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoremove unimplemented (and uncalled) SkTypeface::Hash()
reed@android.com [Tue, 3 Mar 2009 21:20:49 +0000 (21:20 +0000)]
remove unimplemented (and uncalled) SkTypeface::Hash()

git-svn-id: http://skia.googlecode.com/svn/trunk@105 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agochange srcover (and dstover) to use the faster thought slightly less accurate
reed@android.com [Tue, 3 Mar 2009 20:31:12 +0000 (20:31 +0000)]
change srcover (and dstover) to use the faster thought slightly less accurate
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

15 years agoadd test for different srcover implementations
reed@android.com [Tue, 3 Mar 2009 18:35:18 +0000 (18:35 +0000)]
add test for different srcover implementations

git-svn-id: http://skia.googlecode.com/svn/trunk@103 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoUnit test and bug fixes for cubic Bezier clipping.
turk@google.com [Tue, 3 Mar 2009 02:56:05 +0000 (02:56 +0000)]
Unit test and bug fixes for cubic Bezier clipping.

git-svn-id: http://skia.googlecode.com/svn/trunk@102 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoAdd cubic clipping, similar to that of quad clipping. Both Newton-Raphson and Bisecti...
turk@google.com [Mon, 2 Mar 2009 20:00:00 +0000 (20:00 +0000)]
Add cubic clipping, similar to that of quad clipping. Both Newton-Raphson 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

15 years agoexplicitly call "our" version of clipPath in the case when clipRect needs to
reed@android.com [Mon, 2 Mar 2009 19:41:36 +0000 (19:41 +0000)]
explicitly call "our" version of clipPath in the case when clipRect needs to
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

15 years agoadd initial unittests for Path
reed@android.com [Mon, 2 Mar 2009 05:36:20 +0000 (05:36 +0000)]
add initial unittests for Path
add operator== for paths
still need to implement isRect!

git-svn-id: http://skia.googlecode.com/svn/trunk@99 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd tests (unittests) to Makefile
reed@android.com [Sat, 28 Feb 2009 18:26:14 +0000 (18:26 +0000)]
add tests (unittests) to Makefile
move SkTSort.h into public includes

git-svn-id: http://skia.googlecode.com/svn/trunk@98 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agomore tests (need more meat in there)
reed@android.com [Fri, 27 Feb 2009 22:06:06 +0000 (22:06 +0000)]
more tests (need more meat in there)

git-svn-id: http://skia.googlecode.com/svn/trunk@97 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd initial unittest framework (tests)
reed@android.com [Fri, 27 Feb 2009 16:24:51 +0000 (16:24 +0000)]
add initial unittest framework (tests)
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

15 years agoHandle kA8 bitmaps drawing through a matrix (was infinitely recursive)
reed@android.com [Tue, 24 Feb 2009 19:03:20 +0000 (19:03 +0000)]
Handle kA8 bitmaps drawing through a matrix (was infinitely recursive)

git-svn-id: http://skia.googlecode.com/svn/trunk@95 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoOops, CreateTypeface takes over ownership of the stream, instead of just ref()
reed@android.com [Fri, 20 Feb 2009 21:11:40 +0000 (21:11 +0000)]
Oops, CreateTypeface takes over ownership of the stream, instead of just ref()
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

15 years agoImplement CreateTypefaceFromFile
reed@android.com [Fri, 20 Feb 2009 14:22:36 +0000 (14:22 +0000)]
Implement CreateTypefaceFromFile

git-svn-id: http://skia.googlecode.com/svn/trunk@93 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd picture-record option to speedup complex clips
reed@android.com [Fri, 13 Feb 2009 14:56:09 +0000 (14:56 +0000)]
add picture-record option to speedup complex clips
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

15 years agoremove white-space
reed@android.com [Wed, 11 Feb 2009 15:09:58 +0000 (15:09 +0000)]
remove white-space

git-svn-id: http://skia.googlecode.com/svn/trunk@91 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agohandle failure when creating a scalercontext
reed@android.com [Wed, 11 Feb 2009 15:07:19 +0000 (15:07 +0000)]
handle failure when creating a scalercontext

git-svn-id: http://skia.googlecode.com/svn/trunk@90 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agocheck for non-invertible matrices in getClipBounds()
reed@android.com [Fri, 6 Feb 2009 22:39:37 +0000 (22:39 +0000)]
check for non-invertible matrices in getClipBounds()

git-svn-id: http://skia.googlecode.com/svn/trunk@89 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoChop quads exactly on the clip bounds, so we don't spend CPU cycles walking them
reed@android.com [Fri, 6 Feb 2009 13:30:58 +0000 (13:30 +0000)]
Chop quads exactly on the clip bounds, so we don't spend CPU cycles walking them
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

15 years agodraft of Text benchmark
reed@android.com [Wed, 28 Jan 2009 00:56:29 +0000 (00:56 +0000)]
draft of Text benchmark
not enabled yet, as having trouble with mac-fonthost port

git-svn-id: http://skia.googlecode.com/svn/trunk@87 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd png to bench files
reed@android.com [Tue, 27 Jan 2009 18:25:02 +0000 (18:25 +0000)]
add png to bench files

git-svn-id: http://skia.googlecode.com/svn/trunk@86 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoexplicitly define the gHead for the codec llist
reed@android.com [Tue, 27 Jan 2009 01:43:36 +0000 (01:43 +0000)]
explicitly define the gHead for the codec llist

git-svn-id: http://skia.googlecode.com/svn/trunk@85 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoupdate header path (from android)
reed@android.com [Mon, 26 Jan 2009 23:54:06 +0000 (23:54 +0000)]
update header path (from android)

git-svn-id: http://skia.googlecode.com/svn/trunk@84 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd BitmapBench
reed@android.com [Mon, 26 Jan 2009 23:15:37 +0000 (23:15 +0000)]
add BitmapBench

git-svn-id: http://skia.googlecode.com/svn/trunk@83 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agodon't add in png-codec for the mac build
reed@android.com [Fri, 23 Jan 2009 21:51:56 +0000 (21:51 +0000)]
don't add in png-codec for the mac build

git-svn-id: http://skia.googlecode.com/svn/trunk@82 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoMove libpng file into app, rather than the libskia, so it doesn't get optimized
reed@android.com [Fri, 23 Jan 2009 21:24:39 +0000 (21:24 +0000)]
Move libpng file into app, rather than the libskia, so it doesn't get optimized
away

git-svn-id: http://skia.googlecode.com/svn/trunk@81 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoneed to include carbon.h so we know what OSStatus is
reed@android.com [Fri, 23 Jan 2009 16:33:13 +0000 (16:33 +0000)]
need to include carbon.h so we know what OSStatus is

git-svn-id: http://skia.googlecode.com/svn/trunk@80 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoRemove legacy pascal prefix
reed@android.com [Fri, 23 Jan 2009 16:23:10 +0000 (16:23 +0000)]
Remove legacy pascal prefix

git-svn-id: http://skia.googlecode.com/svn/trunk@79 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoremove duplicate SkTRegistry definition
reed@android.com [Thu, 22 Jan 2009 17:41:57 +0000 (17:41 +0000)]
remove duplicate SkTRegistry definition

git-svn-id: http://skia.googlecode.com/svn/trunk@78 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoupdate makefile for newly moved Factories
reed@android.com [Thu, 22 Jan 2009 13:41:08 +0000 (13:41 +0000)]
update makefile for newly moved Factories

git-svn-id: http://skia.googlecode.com/svn/trunk@77 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agopull from android: use registry to build up list of image codecs
reed@android.com [Thu, 22 Jan 2009 13:04:56 +0000 (13:04 +0000)]
pull from android: use registry to build up list of image codecs

git-svn-id: http://skia.googlecode.com/svn/trunk@76 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agooops, add images_files.mk
reed@android.com [Wed, 21 Jan 2009 15:07:03 +0000 (15:07 +0000)]
oops, add images_files.mk
rename options with prefix SKIA_

git-svn-id: http://skia.googlecode.com/svn/trunk@75 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agomake help - shows options in makefile
reed@android.com [Wed, 21 Jan 2009 03:15:13 +0000 (03:15 +0000)]
make help - shows options in makefile
add optional image-encoding to bench

git-svn-id: http://skia.googlecode.com/svn/trunk@74 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd options to bench: -repeat N -forceOpaque -forceBlend -forceAA -forceBW
reed@android.com [Mon, 19 Jan 2009 20:08:35 +0000 (20:08 +0000)]
add options to bench: -repeat N -forceOpaque -forceBlend -forceAA -forceBW
output stats for all configs (should be a option)

git-svn-id: http://skia.googlecode.com/svn/trunk@73 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoRemove unneeded SK_BUILD_FOR_... checks in SkBitmap.h
reed@android.com [Mon, 19 Jan 2009 19:10:24 +0000 (19:10 +0000)]
Remove unneeded SK_BUILD_FOR_... checks in SkBitmap.h

git-svn-id: http://skia.googlecode.com/svn/trunk@72 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd -lpthread
reed@android.com [Fri, 16 Jan 2009 17:35:45 +0000 (17:35 +0000)]
add -lpthread

git-svn-id: http://skia.googlecode.com/svn/trunk@71 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agomake these compile w/o SK_CAN_USE_FLOAT
reed@android.com [Fri, 16 Jan 2009 16:21:28 +0000 (16:21 +0000)]
make these compile w/o SK_CAN_USE_FLOAT

git-svn-id: http://skia.googlecode.com/svn/trunk@70 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd crude Makefile (someone please help!)
reed@android.com [Fri, 16 Jan 2009 16:15:37 +0000 (16:15 +0000)]
add crude Makefile (someone please help!)
make SkFloatBits.cpp compile w/o floats

git-svn-id: http://skia.googlecode.com/svn/trunk@69 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofix warnings
reed@android.com [Thu, 15 Jan 2009 14:38:33 +0000 (14:38 +0000)]
fix warnings

git-svn-id: http://skia.googlecode.com/svn/trunk@68 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofix formatting issues
reed@android.com [Wed, 14 Jan 2009 17:51:08 +0000 (17:51 +0000)]
fix formatting issues

git-svn-id: http://skia.googlecode.com/svn/trunk@67 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofix multiple warnings (e.g. hidden virtuals, unused static functions)
reed@android.com [Wed, 14 Jan 2009 16:46:16 +0000 (16:46 +0000)]
fix multiple warnings (e.g. hidden virtuals, unused static functions)
update freetype version-check for const

git-svn-id: http://skia.googlecode.com/svn/trunk@66 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoupdate to build with the latest SkFontHost interface
reed@android.com [Wed, 14 Jan 2009 14:16:46 +0000 (14:16 +0000)]
update to build with the latest SkFontHost interface
not runtime tested yet

git-svn-id: http://skia.googlecode.com/svn/trunk@65 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoAdd a basic README file.
maruel@google.com [Tue, 13 Jan 2009 22:01:54 +0000 (22:01 +0000)]
Add a basic README file.

git-svn-id: http://skia.googlecode.com/svn/trunk@64 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd optimization for width==1 bitmaps in shader procs
reed@android.com [Tue, 13 Jan 2009 13:26:44 +0000 (13:26 +0000)]
add optimization for width==1 bitmaps in shader procs
odd warning fixes and cleanup

git-svn-id: http://skia.googlecode.com/svn/trunk@63 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoremove obsolete state
reed@android.com [Mon, 12 Jan 2009 16:00:23 +0000 (16:00 +0000)]
remove obsolete state

git-svn-id: http://skia.googlecode.com/svn/trunk@62 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agofirst pass at clean up of the 3 config files
reed@android.com [Thu, 8 Jan 2009 17:49:50 +0000 (17:49 +0000)]
first pass at clean up of the 3 config files
- note that SkUserConfig.h no longer actually does anything

git-svn-id: http://skia.googlecode.com/svn/trunk@60 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd arg to make diff sized rects
reed@android.com [Thu, 8 Jan 2009 03:00:57 +0000 (03:00 +0000)]
add arg to make diff sized rects

git-svn-id: http://skia.googlecode.com/svn/trunk@59 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agomove main.cpp outside of the xcode project
reed@android.com [Wed, 7 Jan 2009 11:49:19 +0000 (11:49 +0000)]
move main.cpp outside of the xcode project

git-svn-id: http://skia.googlecode.com/svn/trunk@58 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd cmd-line args
reed@android.com [Wed, 7 Jan 2009 11:47:57 +0000 (11:47 +0000)]
add cmd-line args
respect canvas size from each bench obj, rather than hardcode 640x480

git-svn-id: http://skia.googlecode.com/svn/trunk@57 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoseparate image encode and decode
reed@android.com [Tue, 6 Jan 2009 20:16:26 +0000 (20:16 +0000)]
separate image encode and decode
remove obsolete build-flag for encode

git-svn-id: http://skia.googlecode.com/svn/trunk@56 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoInitial automake and autoconf files to build core into libskia.a.
joe.gregorio [Tue, 6 Jan 2009 17:03:16 +0000 (17:03 +0000)]
Initial automake and autoconf files to build core into libskia.a.

git-svn-id: http://skia.googlecode.com/svn/trunk@55 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoInitial automake and autoconf files to build core into libskia.a.
joe.gregorio [Tue, 6 Jan 2009 17:02:39 +0000 (17:02 +0000)]
Initial automake and autoconf files to build core into libskia.a.

git-svn-id: http://skia.googlecode.com/svn/trunk@54 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoremove defines for strcasecmp (issue #5)
reed@android.com [Tue, 6 Jan 2009 15:03:30 +0000 (15:03 +0000)]
remove defines for strcasecmp (issue #5)
support setMatrix in pictures

git-svn-id: http://skia.googlecode.com/svn/trunk@53 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd benchmark framework
reed@android.com [Mon, 5 Jan 2009 03:34:50 +0000 (03:34 +0000)]
add benchmark framework

git-svn-id: http://skia.googlecode.com/svn/trunk@52 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agopull from android - add createfromfile entry-point
reed@android.com [Tue, 23 Dec 2008 20:10:57 +0000 (20:10 +0000)]
pull from android - add createfromfile entry-point

git-svn-id: http://skia.googlecode.com/svn/trunk@51 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoexplicitly include SkGlyphCache.h, since it is no longer brought in by SkDraw.h
reed@android.com [Tue, 23 Dec 2008 19:04:23 +0000 (19:04 +0000)]
explicitly include SkGlyphCache.h, since it is no longer brought in by SkDraw.h

git-svn-id: http://skia.googlecode.com/svn/trunk@50 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoremove old test that assumed fBM had been decoded
reed@android.com [Tue, 23 Dec 2008 18:50:15 +0000 (18:50 +0000)]
remove old test that assumed fBM had been decoded

git-svn-id: http://skia.googlecode.com/svn/trunk@49 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoupdate more sample code to new compose shader header
reed@android.com [Tue, 23 Dec 2008 18:37:08 +0000 (18:37 +0000)]
update more sample code to new compose shader header

git-svn-id: http://skia.googlecode.com/svn/trunk@48 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agoadd mac image-encoding
reed@android.com [Tue, 23 Dec 2008 16:49:54 +0000 (16:49 +0000)]
add mac image-encoding
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

15 years agoadd CG imagedecoder (still needs encoding)
reed@android.com [Tue, 23 Dec 2008 16:06:51 +0000 (16:06 +0000)]
add CG imagedecoder (still needs encoding)
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