platform/upstream/libSkiaSharp.git
15 years agouse scalarcomparetype in matrix tests, so we don't do anything tricky
reed@android.com [Wed, 8 Jul 2009 14:46:11 +0000 (14:46 +0000)]
use scalarcomparetype in matrix tests, so we don't do anything tricky
(unnecessary) when floats are fast

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

15 years agoadd dox for scalarcomparetype
reed@android.com [Wed, 8 Jul 2009 14:03:56 +0000 (14:03 +0000)]
add dox for scalarcomparetype
use internal mutable version of drawPath when we've cons'd up a path on behalf
of a rect

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

15 years agoinitial golden-master images for gm tool
reed@android.com [Wed, 8 Jul 2009 03:00:42 +0000 (03:00 +0000)]
initial golden-master images for gm tool

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

15 years agouse genericRGB space to ensure that we decode exactly the pixels we encode
reed@android.com [Wed, 8 Jul 2009 02:54:47 +0000 (02:54 +0000)]
use genericRGB space to ensure that we decode exactly the pixels we encode
add -r option to gm to read and compare against known images

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

15 years agocheck if the encoder factory returned null
reed@android.com [Tue, 7 Jul 2009 21:18:10 +0000 (21:18 +0000)]
check if the encoder factory returned null

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

15 years agoadd support for encoding Index8 bitmaps into png
reed@android.com [Tue, 7 Jul 2009 19:38:01 +0000 (19:38 +0000)]
add support for encoding Index8 bitmaps into png

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

15 years agoadd FIXME to comment
reed@android.com [Tue, 7 Jul 2009 18:19:59 +0000 (18:19 +0000)]
add FIXME to comment

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

15 years agoinitialize fShapeCount in init()
reed@android.com [Tue, 7 Jul 2009 13:25:15 +0000 (13:25 +0000)]
initialize fShapeCount in init()

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

15 years agofix white-space
reed@android.com [Tue, 7 Jul 2009 13:20:37 +0000 (13:20 +0000)]
fix white-space

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

15 years agoOptimize some alpha blending modes.
deanm@chromium.org [Fri, 3 Jul 2009 12:54:24 +0000 (12:54 +0000)]
Optimize some alpha blending modes.

- Inline the component calculation helpers.
- Reorder the computation in plus_modeproc.

This doubles the performance of plus_modeproc.

Review URL: http://codereview.appspot.com/88084

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

15 years agomore checks for null shapes in pictures
reed@android.com [Fri, 3 Jul 2009 02:52:27 +0000 (02:52 +0000)]
more checks for null shapes in pictures

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

15 years agofix gradients with alpha to convert to premul *after* the intermediate color
reed@android.com [Thu, 2 Jul 2009 15:01:02 +0000 (15:01 +0000)]
fix gradients with alpha to convert to premul *after* the intermediate color
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

15 years agoremove (ack) test code in lineargradient when pos array is null
reed@android.com [Wed, 1 Jul 2009 17:00:03 +0000 (17:00 +0000)]
remove (ack) test code in lineargradient when pos array is null

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

15 years agoFix a precedence error in an assert in the fontconfig host.
deanm@chromium.org [Wed, 1 Jul 2009 07:49:44 +0000 (07:49 +0000)]
Fix a precedence error in an assert in the fontconfig host.

Review URL: http://codereview.appspot.com/90060

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

15 years agofix config check to include SkColorPriv.h so we don't get the warning w/o need
reed@android.com [Mon, 29 Jun 2009 17:07:19 +0000 (17:07 +0000)]
fix config check to include SkColorPriv.h so we don't get the warning w/o need

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

15 years agouse sk_bzero instead of bzero, since it isn't always available.
reed@android.com [Mon, 29 Jun 2009 16:25:36 +0000 (16:25 +0000)]
use sk_bzero instead of bzero, since it isn't always available.

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

15 years agoadd unittest for matrix::flatten
reed@android.com [Mon, 29 Jun 2009 16:14:41 +0000 (16:14 +0000)]
add unittest for matrix::flatten
define constant for max value flatten/unflatten can return (so clients can put
the buffer on the stack)

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

15 years agoadd shape flatten so they work properly in pictures
reed@android.com [Mon, 29 Jun 2009 16:02:20 +0000 (16:02 +0000)]
add shape flatten so they work properly in pictures
add flatten/unflatten to matrix

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

15 years agoadd golden master code for shapes
reed@android.com [Fri, 26 Jun 2009 20:22:44 +0000 (20:22 +0000)]
add golden master code for shapes

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

15 years agoadd shape recording to pictuures (sans serialization)
reed@android.com [Fri, 26 Jun 2009 20:22:26 +0000 (20:22 +0000)]
add shape recording to pictuures (sans serialization)

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

15 years agodetect nearly translate-only matrices when drawing bitmaps (for speed)
reed@android.com [Wed, 24 Jun 2009 12:41:42 +0000 (12:41 +0000)]
detect nearly translate-only matrices when drawing bitmaps (for speed)
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

15 years agofix memory leak in new setXfermode()
reed@android.com [Wed, 24 Jun 2009 12:29:16 +0000 (12:29 +0000)]
fix memory leak in new setXfermode()

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

15 years agoadd new make target "all", to build all known targets
reed@android.com [Tue, 23 Jun 2009 17:13:30 +0000 (17:13 +0000)]
add new make target "all", to build all known targets

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

15 years agoremove remaining references to porterduff
reed@android.com [Tue, 23 Jun 2009 12:19:41 +0000 (12:19 +0000)]
remove remaining references to porterduff

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

15 years agoremove deprecated use of porterduff enum
reed@android.com [Tue, 23 Jun 2009 03:01:32 +0000 (03:01 +0000)]
remove deprecated use of porterduff enum

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

15 years agoupdate to use new xfermodes
reed@android.com [Tue, 23 Jun 2009 00:09:12 +0000 (00:09 +0000)]
update to use new xfermodes

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

15 years agomerge in change from chrome to detect when the byte order for 8888 requires
reed@android.com [Mon, 22 Jun 2009 20:04:33 +0000 (20:04 +0000)]
merge in change from chrome to detect when the byte order for 8888 requires
additional CGBitmapInfo flags (e.g. for bigendian)

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

15 years agomove xfermode modes from porterduff into xfermode itself
reed@android.com [Mon, 22 Jun 2009 17:38:10 +0000 (17:38 +0000)]
move xfermode modes from porterduff into xfermode itself

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

15 years agoadd gm for shader tilemodes
reed@android.com [Mon, 22 Jun 2009 02:17:34 +0000 (02:17 +0000)]
add gm for shader tilemodes

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

15 years agoadd gm for gradients
reed@android.com [Mon, 22 Jun 2009 02:06:35 +0000 (02:06 +0000)]
add gm for gradients

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

15 years agogm -w 'directory' now works for recording the master images
reed@android.com [Sun, 21 Jun 2009 01:40:31 +0000 (01:40 +0000)]
gm -w 'directory' now works for recording the master images

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

15 years agoalmost there on gm (need to fix image writes/reads/compares)
reed@android.com [Sun, 21 Jun 2009 00:49:18 +0000 (00:49 +0000)]
almost there on gm (need to fix image writes/reads/compares)
move SkAutoGraphics into SkGraphics.h
add [] operators to SkString

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

15 years agomore progress on golden-master test suite (not finished yet)
reed@android.com [Sat, 20 Jun 2009 02:38:16 +0000 (02:38 +0000)]
more progress on golden-master test suite (not finished yet)

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

15 years agoadd width()/height() getters
reed@android.com [Sat, 20 Jun 2009 02:34:55 +0000 (02:34 +0000)]
add width()/height() getters

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

15 years agoupdate to latest api (need a test for this port!)
reed@android.com [Fri, 19 Jun 2009 20:35:36 +0000 (20:35 +0000)]
update to latest api (need a test for this port!)

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

15 years agoMake sure we have a non-null FreeType face before dereferencing it.
deanm@chromium.org [Fri, 19 Jun 2009 08:57:16 +0000 (08:57 +0000)]
Make sure we have a non-null FreeType face before dereferencing it.

This prevents a NULL pointer crash in generateFontMetrics with some fonts.

Patch by Lei Zhang.  Original Chromium bug: http://code.google.com/p/chromium/issues/detail?id=13007

Review URL: http://codereview.appspot.com/78056

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

15 years agoreally fix gif movie registration
reed@android.com [Thu, 18 Jun 2009 20:26:58 +0000 (20:26 +0000)]
really fix gif movie registration

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

15 years agofix stupid tabs
reed@android.com [Thu, 18 Jun 2009 18:52:22 +0000 (18:52 +0000)]
fix stupid tabs

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

15 years agoadd registrar for gif movie
reed@android.com [Thu, 18 Jun 2009 17:53:12 +0000 (17:53 +0000)]
add registrar for gif movie

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

15 years agoFix MSVC builds by avoiding a uint to bool warning.
deanm@chromium.org [Thu, 18 Jun 2009 14:46:03 +0000 (14:46 +0000)]
Fix MSVC builds by avoiding a uint to bool warning.

warning C4800: 'const uint8_t' : forcing value to bool 'true' or 'false' (performance warning)

Review URL: http://codereview.appspot.com/79043

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

15 years agofallback to drawing a line if the cubic is still too curvy, even if we've
reed@android.com [Wed, 17 Jun 2009 19:21:01 +0000 (19:21 +0000)]
fallback to drawing a line if the cubic is still too curvy, even if we've
exhausted our recursive attempts to subdivide.

Fixes trying to stroke this cubic (width==1.0)

    path.moveTo(460.2881309415525, 303.250847066498);
    path.cubicTo(463.36378422175284, 302.1169735073363,
                 456.32239330810046, 304.720354932878,
                 453.15255460013304, 305.788586869862);

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

15 years agoadd sample for mipmaps
reed@android.com [Tue, 16 Jun 2009 01:50:25 +0000 (01:50 +0000)]
add sample for mipmaps

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

15 years agows fixes
reed@android.com [Mon, 15 Jun 2009 18:45:19 +0000 (18:45 +0000)]
ws fixes

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

15 years agocreate separate opaque version of rgb16 blitter
reed@android.com [Mon, 15 Jun 2009 15:56:35 +0000 (15:56 +0000)]
create separate opaque version of rgb16 blitter

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

15 years agoadd optional Format* parameter to decoder helper functions.
reed@android.com [Mon, 15 Jun 2009 13:04:45 +0000 (13:04 +0000)]
add optional Format* parameter to decoder helper functions.

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

15 years agoadd shader flag kConstInY_Flag
reed@android.com [Fri, 12 Jun 2009 21:27:03 +0000 (21:27 +0000)]
add shader flag kConstInY_Flag
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

15 years agomake the same prerounding fix for the shadeSpan16 case
reed@android.com [Fri, 12 Jun 2009 20:09:24 +0000 (20:09 +0000)]
make the same prerounding fix for the shadeSpan16 case

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

15 years agopreround our fx fractional coordiante, so we get rounded integers (0..255) when
reed@android.com [Fri, 12 Jun 2009 20:02:50 +0000 (20:02 +0000)]
preround our fx fractional coordiante, so we get rounded integers (0..255) when
stepping through the gradient.

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

15 years agoadd experimental state tracker for opengl
reed@android.com [Fri, 12 Jun 2009 19:49:30 +0000 (19:49 +0000)]
add experimental state tracker for opengl

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

15 years agoadd equals()
reed@android.com [Fri, 12 Jun 2009 02:06:36 +0000 (02:06 +0000)]
add equals()

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

15 years agoSome Linux / 64-bit compile fixes.
deanm@chromium.org [Thu, 11 Jun 2009 12:26:47 +0000 (12:26 +0000)]
Some Linux / 64-bit compile fixes.

Review URL: http://codereview.appspot.com/63189

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

15 years agocheckpoint for golden master suite (gm)
reed@android.com [Wed, 10 Jun 2009 15:38:48 +0000 (15:38 +0000)]
checkpoint for golden master suite (gm)

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

15 years agoonly call SkDevice::gainFocus() if we're actually drawing to a different device.
reed@android.com [Wed, 10 Jun 2009 02:12:47 +0000 (02:12 +0000)]
only call SkDevice::gainFocus() if we're actually drawing to a different device.
Saves overhead when using GL.

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

15 years agofix odd-pixel bug in mipmap downsamplers (thanks brett)
reed@android.com [Mon, 8 Jun 2009 12:05:31 +0000 (12:05 +0000)]
fix odd-pixel bug in mipmap downsamplers (thanks brett)

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

15 years agoadd SkParsePath to go to/from SVG strings (e.g. "M0,0 L10,20")
reed@android.com [Fri, 5 Jun 2009 16:21:03 +0000 (16:21 +0000)]
add SkParsePath to go to/from SVG strings (e.g. "M0,0 L10,20")

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

15 years agoupdate for cache updates
reed@android.com [Fri, 5 Jun 2009 14:43:55 +0000 (14:43 +0000)]
update for cache updates

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

15 years agofix dumpcanvas to recurse on pictures and shapes
reed@android.com [Fri, 5 Jun 2009 12:24:41 +0000 (12:24 +0000)]
fix dumpcanvas to recurse on pictures and shapes
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

15 years agoReplace nil -> NULL in the views code.
deanm@chromium.org [Thu, 4 Jun 2009 15:37:11 +0000 (15:37 +0000)]
Replace nil -> NULL in the views code.

Review URL: http://codereview.appspot.com/67139

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

15 years agoadd isConvex() hit to SkPath, to be used to speed up fills and opengl
reed@android.com [Wed, 3 Jun 2009 02:35:01 +0000 (02:35 +0000)]
add isConvex() hit to SkPath, to be used to speed up fills and opengl
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

15 years agoinitialize fFlags in gradients
reed@android.com [Tue, 2 Jun 2009 19:46:20 +0000 (19:46 +0000)]
initialize fFlags in gradients
fix trailing WS in SkGLDevice

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

15 years agofix break in setConfig() where we always reset the bitmap
reed@android.com [Tue, 2 Jun 2009 18:54:28 +0000 (18:54 +0000)]
fix break in setConfig() where we always reset the bitmap
remove use of non-standard ssize_t in SkSfntUtils.cpp

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

15 years agoStyle only change to make SkBitmap to make it build with VC2005.
agl@chromium.org [Mon, 1 Jun 2009 23:52:37 +0000 (23:52 +0000)]
Style only change to make SkBitmap to make it build with VC2005.

TBR=reed

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

15 years agoadd unimpl macro to help track bugs
reed@android.com [Mon, 1 Jun 2009 21:18:36 +0000 (21:18 +0000)]
add unimpl macro to help track bugs

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

15 years agoupdate includes for android for gl backend
reed@android.com [Mon, 1 Jun 2009 19:48:56 +0000 (19:48 +0000)]
update includes for android for gl backend

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

15 years agofontconfig: allow fallback for certain magical font names.
agl@chromium.org [Mon, 1 Jun 2009 19:20:38 +0000 (19:20 +0000)]
fontconfig: allow fallback for certain magical font names.

http://codereview.appspot.com/63169
http://code.google.com/p/chromium/issues/detail?id=10665

Patch-by: Evan Martin
git-svn-id: http://skia.googlecode.com/svn/trunk@193 2bbb7eff-a529-9590-31e7-b0007b416f81

15 years agocall notifyPixelsChanged() when the pages are flipped in pageflippixelref
reed@android.com [Sat, 30 May 2009 02:40:28 +0000 (02:40 +0000)]
call notifyPixelsChanged() when the pages are flipped in pageflippixelref
update samples

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

15 years agofix trailing-ws
reed@android.com [Fri, 29 May 2009 21:30:42 +0000 (21:30 +0000)]
fix trailing-ws
initialize fFlags in bitmapprocshader

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

15 years agoupdate SDL port to support OpenGL
reed@android.com [Fri, 29 May 2009 03:40:05 +0000 (03:40 +0000)]
update SDL port to support OpenGL
need to separate out SK_BUILD_FOR_MAC when we need to know where certain OS
headers are, and SK_BUILD_FOR_SDL when we are choosing an SkOSWindow variant...

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

15 years agoanimate matrixref in sample shapes
reed@android.com [Wed, 27 May 2009 01:44:24 +0000 (01:44 +0000)]
animate matrixref in sample shapes

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

15 years agomove shapes subclasses into effects
reed@android.com [Wed, 27 May 2009 01:20:10 +0000 (01:20 +0000)]
move shapes subclasses into effects

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

15 years agocreate offscreen surface so we can set its RGB ordering to match our internals
reed@android.com [Tue, 26 May 2009 13:27:48 +0000 (13:27 +0000)]
create offscreen surface so we can set its RGB ordering to match our internals

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

15 years agomake include search paths relative
reed@android.com [Fri, 22 May 2009 21:07:11 +0000 (21:07 +0000)]
make include search paths relative

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

15 years agoupdate relative paths for sample code
reed@android.com [Fri, 22 May 2009 21:01:38 +0000 (21:01 +0000)]
update relative paths for sample code

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

15 years agoadd actual sdl project file
reed@android.com [Fri, 22 May 2009 20:57:52 +0000 (20:57 +0000)]
add actual sdl project file

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

15 years agoadd sampleapp_sdl
reed@android.com [Fri, 22 May 2009 20:53:55 +0000 (20:53 +0000)]
add sampleapp_sdl

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

15 years agoadd SDL support
reed@android.com [Fri, 22 May 2009 20:44:12 +0000 (20:44 +0000)]
add SDL support

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

15 years agoadd SkSafeRef / SkSafeUnref as inline static functions, to use in place of our
reed@android.com [Fri, 22 May 2009 14:39:03 +0000 (14:39 +0000)]
add SkSafeRef / SkSafeUnref as inline static functions, to use in place of our
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

15 years agoadd sample effects
reed@android.com [Fri, 22 May 2009 13:48:35 +0000 (13:48 +0000)]
add sample effects

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

15 years agoinit bounds to empty if we return false from getClipBounds()
reed@android.com [Mon, 18 May 2009 15:46:29 +0000 (15:46 +0000)]
init bounds to empty if we return false from getClipBounds()

We were already doing that in one place (empty clip), but now we do it in the
other as well (matrix not invertible).

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

15 years agoshapes checkpoint: move matrix into groupshape and out of shape
reed@android.com [Mon, 18 May 2009 04:20:55 +0000 (04:20 +0000)]
shapes checkpoint: move matrix into groupshape and out of shape

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

15 years agofix parse error:
reed@android.com [Mon, 18 May 2009 00:47:46 +0000 (00:47 +0000)]
fix parse error:

Issue 63053: Fixed parse error in XML

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

15 years agoFix reference count on openStream
reed@android.com [Mon, 18 May 2009 00:43:58 +0000 (00:43 +0000)]
Fix reference count on openStream

Issue 62067: SkFontHost_linux.cpp: Reference counting problem

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

15 years agofix impl of drawPicture
reed@android.com [Wed, 13 May 2009 21:01:21 +0000 (21:01 +0000)]
fix impl of drawPicture

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

15 years agoadd SkSize for dimensions
reed@android.com [Wed, 13 May 2009 14:00:33 +0000 (14:00 +0000)]
add SkSize for dimensions
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

15 years agoHonor pref config in image decoding whenever possible.
weita@google.com [Mon, 11 May 2009 16:06:22 +0000 (16:06 +0000)]
Honor pref config in image decoding whenever possible.

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

15 years agoadd SkSize for dimensions
reed@android.com [Fri, 8 May 2009 16:45:52 +0000 (16:45 +0000)]
add SkSize for dimensions

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

15 years agoadd SK_USE_OLD_255_TO_256 define to disable alpha+1 change to SkAlpha255To256
reed@android.com [Fri, 8 May 2009 13:10:38 +0000 (13:10 +0000)]
add SK_USE_OLD_255_TO_256 define to disable alpha+1 change to SkAlpha255To256

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

15 years agoTypo fix for VDMX parsing in Chromium.
agl@chromium.org [Thu, 7 May 2009 00:48:12 +0000 (00:48 +0000)]
Typo fix for VDMX parsing in Chromium.

TBR=reed

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

15 years agoadd canCopyTo(), to preflight if copyTo can succeed. update unittests for it
reed@android.com [Wed, 6 May 2009 17:44:34 +0000 (17:44 +0000)]
add canCopyTo(), to preflight if copyTo can succeed. update unittests for it

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

15 years agofix copyTo to only copy the minimum pixels per row, and to lock the src before
reed@android.com [Tue, 5 May 2009 23:13:23 +0000 (23:13 +0000)]
fix copyTo to only copy the minimum pixels per row, and to lock the src before
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

15 years agoadd simple port of memory APIs, to be used as a template for other platforms
reed@android.com [Mon, 4 May 2009 19:24:56 +0000 (19:24 +0000)]
add simple port of memory APIs, to be used as a template for other platforms
that may want to add new_handler logic or other hooks.

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

15 years agoupdate license header
reed@android.com [Mon, 4 May 2009 18:52:54 +0000 (18:52 +0000)]
update license header

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

15 years agocheck for 0 upem in freetype
reed@android.com [Mon, 4 May 2009 15:00:11 +0000 (15:00 +0000)]
check for 0 upem in freetype
add 32bit-overflow check

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

15 years agoAllow copying an Index8 bitmap when srcConfig and dstConfig are both
weita@google.com [Sun, 3 May 2009 18:23:30 +0000 (18:23 +0000)]
Allow copying an Index8 bitmap when srcConfig and dstConfig are both
Index8.

Also, change the logic of SkBitmap.copyTo() to do memcpy() if srcConfig
and dstConfig are the same.

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

15 years agoadd BitmapCopyTest. Still need to consider the src==no_config case
reed@android.com [Fri, 1 May 2009 04:00:01 +0000 (04:00 +0000)]
add BitmapCopyTest. Still need to consider the src==no_config case

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

15 years agoAdd fontconfig support.
agl@chromium.org [Tue, 28 Apr 2009 17:30:01 +0000 (17:30 +0000)]
Add fontconfig support.

Fontconfig is usually found on Linux systems and handles
configuration, parsing and caching issues involved with enumerating
and matching fonts.

This patch adds SkFontHost methods based on fontconfig.

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

15 years agohandle interlacing
reed@android.com [Tue, 28 Apr 2009 15:27:07 +0000 (15:27 +0000)]
handle interlacing

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

15 years agoadd skiamge (in tools/) that decodes and encodes images
reed@android.com [Fri, 24 Apr 2009 19:52:53 +0000 (19:52 +0000)]
add skiamge (in tools/) that decodes and encodes images

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

15 years agoadd ADD xfermode
reed@android.com [Fri, 24 Apr 2009 12:43:40 +0000 (12:43 +0000)]
add ADD xfermode
safely handle (don't draw) if the size of SkMask exceeds 31bits

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

15 years agofix mac build
reed@android.com [Thu, 23 Apr 2009 05:06:33 +0000 (05:06 +0000)]
fix mac build

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