platform/upstream/libSkiaSharp.git
14 years agouse 64bit intermediate to accumulate 16.16 widths, to avoid overflow
reed@android.com [Fri, 19 Mar 2010 14:42:28 +0000 (14:42 +0000)]
use 64bit intermediate to accumulate 16.16 widths, to avoid overflow

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

14 years agoupdate blitrow test to exercise different widths for blitrow
reed@android.com [Mon, 15 Mar 2010 20:48:02 +0000 (20:48 +0000)]
update blitrow test to exercise different widths for blitrow

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

14 years agoimprove precision for blend
reed@android.com [Fri, 12 Mar 2010 19:23:27 +0000 (19:23 +0000)]
improve precision for blend

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

14 years agoDisable 32A->565+dither neon, since it gives different results between its
reed@android.com [Fri, 12 Mar 2010 18:14:36 +0000 (18:14 +0000)]
Disable 32A->565+dither neon, since it gives different results between its
8-at-a-time loop (neon), and its < 8 residual loop. If we can unify the output,
I would love to reinstate this.

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

14 years agoonly report hasspan16 if we're opaque, otherwise we get a different blend
reed@android.com [Thu, 11 Mar 2010 22:20:43 +0000 (22:20 +0000)]
only report hasspan16 if we're opaque, otherwise we get a different blend
via 565 than the 8888 case

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

14 years agofix off-by-1 in alpha in colorshader setup
reed@android.com [Thu, 11 Mar 2010 21:56:16 +0000 (21:56 +0000)]
fix off-by-1 in alpha in colorshader setup
don't promise HasSpan16 if we're supposed to dither

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

14 years agodisable 32A->565 + alpha for now, until it handles src-alpha==0 as a noop
reed@android.com [Tue, 9 Mar 2010 15:21:28 +0000 (15:21 +0000)]
disable 32A->565 + alpha for now, until it handles src-alpha==0 as a noop

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

14 years agoupdate tests for blitrow
reed@android.com [Mon, 8 Mar 2010 22:00:55 +0000 (22:00 +0000)]
update tests for blitrow

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

14 years agoadd tests for blitting all opaque or all transparent (test opts)
reed@android.com [Mon, 8 Mar 2010 20:23:57 +0000 (20:23 +0000)]
add tests for blitting all opaque or all transparent (test opts)

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

14 years agohandle NaN in curve choppers and edgeclipper
reed@android.com [Mon, 8 Mar 2010 17:44:42 +0000 (17:44 +0000)]
handle NaN in curve choppers and edgeclipper

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

14 years agodocument the return value of append()
reed@android.com [Fri, 5 Mar 2010 18:46:37 +0000 (18:46 +0000)]
document the return value of append()

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

14 years agoupdate android specific RAM restrictions
reed@android.com [Thu, 4 Mar 2010 21:38:50 +0000 (21:38 +0000)]
update android specific RAM restrictions

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

14 years agoadd optional pref-config table to codecs
reed@android.com [Wed, 3 Mar 2010 21:04:12 +0000 (21:04 +0000)]
add optional pref-config table to codecs

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

14 years agoadd kNONE_LCDOrder for screens with no recognizable rgb order
reed@android.com [Tue, 2 Mar 2010 19:56:53 +0000 (19:56 +0000)]
add kNONE_LCDOrder for screens with no recognizable rgb order

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

14 years agoupdate for new fonts
reed@android.com [Tue, 2 Mar 2010 19:50:40 +0000 (19:50 +0000)]
update for new fonts

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

14 years agoconvert matrix <--> matrix44
reed@android.com [Mon, 1 Mar 2010 14:54:05 +0000 (14:54 +0000)]
convert matrix <--> matrix44
add glyphrec to bounder

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

14 years agomore vector4 methods
reed@android.com [Mon, 1 Mar 2010 01:10:10 +0000 (01:10 +0000)]
more vector4 methods

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

14 years agodon't abort drawing based on layer size
reed@android.com [Fri, 26 Feb 2010 22:04:15 +0000 (22:04 +0000)]
don't abort drawing based on layer size

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

14 years agoadd rotation
reed@android.com [Fri, 26 Feb 2010 21:45:49 +0000 (21:45 +0000)]
add rotation

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

14 years agoadd unittests for map()
reed@android.com [Wed, 24 Feb 2010 22:08:58 +0000 (22:08 +0000)]
add unittests for map()

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

14 years agoadd localToGlobal and parents
reed@android.com [Wed, 24 Feb 2010 17:16:35 +0000 (17:16 +0000)]
add localToGlobal and parents

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

14 years agoadd tests for translate, concat, scale
reed@android.com [Wed, 24 Feb 2010 15:36:57 +0000 (15:36 +0000)]
add tests for translate, concat, scale

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

14 years agoadd DEBUG_LAYER_BOUNDS option to show layer bounds
reed@android.com [Wed, 24 Feb 2010 02:01:23 +0000 (02:01 +0000)]
add DEBUG_LAYER_BOUNDS option to show layer bounds

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

14 years agoadd static Make methods to return rects
reed@android.com [Wed, 24 Feb 2010 01:49:13 +0000 (01:49 +0000)]
add static Make methods to return rects

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

14 years agoimplement inverse, determinant
reed@android.com [Tue, 23 Feb 2010 20:18:17 +0000 (20:18 +0000)]
implement inverse, determinant

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

14 years agoupdate with better fps reporting
reed@android.com [Mon, 22 Feb 2010 22:03:06 +0000 (22:03 +0000)]
update with better fps reporting

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

14 years agoadd FPSBench
reed@android.com [Mon, 22 Feb 2010 19:50:13 +0000 (19:50 +0000)]
add FPSBench

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

14 years agoexplicitly pass bounds.top to the edgelist walker, so we don't leave any gaps
reed@android.com [Mon, 22 Feb 2010 16:05:48 +0000 (16:05 +0000)]
explicitly pass bounds.top to the edgelist walker, so we don't leave any gaps
when the path is in an inverse fillmode, and its top or bottom are on a
fractional boundary. (thanks senorblanco)

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

14 years agomore layers extracted from webkit
reed@android.com [Fri, 19 Feb 2010 21:41:30 +0000 (21:41 +0000)]
more layers extracted from webkit

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

14 years agoupdate layers
reed@android.com [Thu, 18 Feb 2010 19:32:03 +0000 (19:32 +0000)]
update layers

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

14 years agoadd layers
reed@android.com [Fri, 12 Feb 2010 17:17:10 +0000 (17:17 +0000)]
add layers

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

14 years agoupdate save/restore comments to mention that the drawFilter is also saved
reed@android.com [Thu, 11 Feb 2010 16:05:15 +0000 (16:05 +0000)]
update save/restore comments to mention that the drawFilter is also saved
add wrapper for harfbuzz font/fontclass

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

14 years agoexperimental draft, please ignore
reed@android.com [Thu, 11 Feb 2010 13:56:04 +0000 (13:56 +0000)]
experimental draft, please ignore

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

14 years agodoh - fix build
reed@android.com [Thu, 11 Feb 2010 11:17:00 +0000 (11:17 +0000)]
doh - fix build

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

14 years agoadd Make to SkTSize
reed@android.com [Thu, 11 Feb 2010 11:09:39 +0000 (11:09 +0000)]
add Make to SkTSize

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

14 years agoadd unittest for copysign
reed@android.com [Tue, 9 Feb 2010 19:18:38 +0000 (19:18 +0000)]
add unittest for copysign

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

14 years agoadd copysign for ints and floats
reed@android.com [Tue, 9 Feb 2010 18:30:59 +0000 (18:30 +0000)]
add copysign for ints and floats
fix addArc to not wrap around if the sweepAngle is close to 360 but lost
precision when convert to radians (and then to unit vectors ala sin/cos)

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

14 years agoadd countPoints() and getPoint()
reed@android.com [Tue, 9 Feb 2010 16:38:45 +0000 (16:38 +0000)]
add countPoints() and getPoint()

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

14 years agocheck bounder before lockPixels on the bitmap
reed@android.com [Tue, 9 Feb 2010 13:06:29 +0000 (13:06 +0000)]
check bounder before lockPixels on the bitmap

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

14 years agoadd
reed@android.com [Tue, 9 Feb 2010 12:40:30 +0000 (12:40 +0000)]
add

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

14 years agouse statictextviews to display coordinates in unitmapper
reed@android.com [Mon, 8 Feb 2010 21:45:03 +0000 (21:45 +0000)]
use statictextviews to display coordinates in unitmapper

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

14 years agoThis patch allows the use of the native FreeType emboldening
senorblanco@chromium.org [Fri, 5 Feb 2010 23:08:20 +0000 (23:08 +0000)]
This patch allows the use of the native FreeType emboldening
algorithm when "fake bold" text is used in SkPaint.

It's enabled by #defining SK_USE_FREETYPE_EMBOLDEN.

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

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

14 years agorespect edgetype in quickreject
reed@android.com [Fri, 5 Feb 2010 20:46:05 +0000 (20:46 +0000)]
respect edgetype in quickreject

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

14 years agoadd SkXRay geometry routines
reed@android.com [Fri, 5 Feb 2010 20:41:02 +0000 (20:41 +0000)]
add SkXRay geometry routines

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

14 years agoadd containsText() api
reed@android.com [Fri, 5 Feb 2010 17:12:32 +0000 (17:12 +0000)]
add containsText() api

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

14 years agocheck for null cmap in libgif
reed@android.com [Fri, 5 Feb 2010 15:43:07 +0000 (15:43 +0000)]
check for null cmap in libgif
support bounds-only in libjpeg even if we can't complete start_decompress

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

14 years agoadd some utils to SkPoint
reed@android.com [Thu, 28 Jan 2010 21:34:33 +0000 (21:34 +0000)]
add some utils to SkPoint

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

14 years agoupdate
reed@android.com [Thu, 28 Jan 2010 21:24:01 +0000 (21:24 +0000)]
update

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

14 years agoadd new experimental matrix
reed@android.com [Wed, 27 Jan 2010 01:45:16 +0000 (01:45 +0000)]
add new experimental matrix

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

14 years agodisable debug printfs for gamma table
reed@android.com [Tue, 26 Jan 2010 16:10:19 +0000 (16:10 +0000)]
disable debug printfs for gamma table

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

14 years agoremove -lfreetype for now
reed@android.com [Mon, 25 Jan 2010 22:09:34 +0000 (22:09 +0000)]
remove -lfreetype for now

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

14 years agocheck for gl-canvas before calling GL
reed@android.com [Mon, 25 Jan 2010 22:09:16 +0000 (22:09 +0000)]
check for gl-canvas before calling GL

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

14 years agoupdate with agl
reed@android.com [Mon, 25 Jan 2010 22:03:25 +0000 (22:03 +0000)]
update with agl

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

14 years agoupdate to try out programmable shaders
reed@android.com [Mon, 25 Jan 2010 22:02:44 +0000 (22:02 +0000)]
update to try out programmable shaders

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

14 years agocall skip in a loop to handle the case where the backing stream may be network
reed@android.com [Thu, 21 Jan 2010 18:04:44 +0000 (18:04 +0000)]
call skip in a loop to handle the case where the backing stream may be network
based, and will only block to fulfill the request after it has skipped its
current buffer.

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

14 years agorefactor helper functions out of libjpeg wrapper
reed@android.com [Thu, 21 Jan 2010 15:34:19 +0000 (15:34 +0000)]
refactor helper functions out of libjpeg wrapper

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

14 years agoskia: Always use aliased text when antialiasing is disabled.
agl@chromium.org [Thu, 21 Jan 2010 11:43:44 +0000 (11:43 +0000)]
skia: Always use aliased text when antialiasing is disabled.

Otherwise, people who have antialiasing disabled end up with
subpixel rendering if the subpixel setting happens to be set
to something other than "none".  This change's interpretation
of these overlapping settings seems to be consistent with
GTK's and Firefox's.

Patch-by: Dan Erat
Signed-off-by: Adam Langley
BUG=http://code.google.com/p/chromium/issues/detail?id=28382

http://codereview.appspot.com/186248

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

14 years agoICE fixes for arm
reed@android.com [Thu, 14 Jan 2010 00:24:12 +0000 (00:24 +0000)]
ICE fixes for arm

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

14 years agoremove obsolete SK_BUILD_FOR_BREW conditional
reed@android.com [Tue, 12 Jan 2010 22:58:35 +0000 (22:58 +0000)]
remove obsolete SK_BUILD_FOR_BREW conditional

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

14 years agoadd glyph->unichar query (inverse of a cmap)
reed@android.com [Fri, 8 Jan 2010 14:07:42 +0000 (14:07 +0000)]
add glyph->unichar query (inverse of a cmap)

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

14 years agofix memory leak
reed@android.com [Fri, 8 Jan 2010 14:01:41 +0000 (14:01 +0000)]
fix memory leak

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

14 years agoAdd parens in order to make conditional correct.
agl@chromium.org [Tue, 5 Jan 2010 01:19:44 +0000 (01:19 +0000)]
Add parens in order to make conditional correct.

I've been coding in Go too much and forgot that C is broken.

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

14 years agoFix r466 which was causing Chromium valgrind failures.
agl@chromium.org [Mon, 4 Jan 2010 23:56:43 +0000 (23:56 +0000)]
Fix r466 which was causing Chromium valgrind failures.

See the added comment for details.

TBR=reed (since it's a build fix)

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

14 years agoAdded a virtual to SkBounder, called by text, that passes
reed@android.com [Mon, 4 Jan 2010 19:35:33 +0000 (19:35 +0000)]
Added a virtual to SkBounder, called by text, that passes
the glyph's ID as well as its bounds. Made the universal
doIRect() non-abstract so that a child class can override
either the general flavor or the text flavor.

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

14 years agochant __ARM_ARCH_4__ to __ARM_ARCH_4T__, to reflect known android targets
reed@android.com [Mon, 4 Jan 2010 19:23:32 +0000 (19:23 +0000)]
chant __ARM_ARCH_4__ to __ARM_ARCH_4T__, to reflect known android targets

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

14 years agoAdd flag to enable bitmap strikes.
agl@chromium.org [Mon, 4 Jan 2010 18:27:55 +0000 (18:27 +0000)]
Add flag to enable bitmap strikes.

http://codereview.appspot.com/183096

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

14 years agoadd new file
reed@android.com [Mon, 21 Dec 2009 18:34:13 +0000 (18:34 +0000)]
add new file

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

14 years agoNative client build fix.
agl@chromium.org [Fri, 18 Dec 2009 22:50:15 +0000 (22:50 +0000)]
Native client build fix.

Patch from David Sehr.

Signed-off-by: Adam Langley <agl@chromium.org>
http://codereview.appspot.com/180090

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

14 years agoupdate to include all files
reed@android.com [Fri, 18 Dec 2009 21:36:42 +0000 (21:36 +0000)]
update to include all files

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

14 years agoremove old file
reed@android.com [Fri, 18 Dec 2009 21:34:16 +0000 (21:34 +0000)]
remove old file

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

14 years agoupdate windows port
reed@android.com [Fri, 18 Dec 2009 21:33:39 +0000 (21:33 +0000)]
update windows port

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

14 years agoinitial checkin for visualstudio build support
reed@android.com [Wed, 16 Dec 2009 17:25:43 +0000 (17:25 +0000)]
initial checkin for visualstudio build support

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

14 years agofix repeat/mirror for new larger 16bit cache
reed@android.com [Mon, 14 Dec 2009 16:41:57 +0000 (16:41 +0000)]
fix repeat/mirror for new larger 16bit cache
update gm images

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

14 years agomake the 16bit cache larger, to handle multiple colors in the gradient w/o
reed@android.com [Mon, 14 Dec 2009 15:25:36 +0000 (15:25 +0000)]
make the 16bit cache larger, to handle multiple colors in the gradient w/o
obvious artifacts. We need a more comprehensive fix for all gradients (32bit
and 16bit) when we have a large number of colors (or they are spaced out very
non-linearly), to avoid banding.

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

14 years agoInitialise fDeviceCMDirty
agl@chromium.org [Sat, 12 Dec 2009 00:06:17 +0000 (00:06 +0000)]
Initialise fDeviceCMDirty

http://codereview.appspot.com/176050

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

14 years agoSSE2-ified S32_alpha_D32_filter_DX (refactoring to come). Also shaved a few
senorblanco@chromium.org [Thu, 10 Dec 2009 22:46:31 +0000 (22:46 +0000)]
SSE2-ified S32_alpha_D32_filter_DX (refactoring to come).  Also shaved a few
cycles off the SSE2 blends.

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

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

14 years agorebase the gm images, given the new chopping edgelist builder
reed@android.com [Thu, 10 Dec 2009 21:13:00 +0000 (21:13 +0000)]
rebase the gm images, given the new chopping edgelist builder

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

14 years agoEenable new chopping edgelist builder by default. If it sticks well, I'll
reed@android.com [Thu, 10 Dec 2009 21:10:58 +0000 (21:10 +0000)]
Eenable new chopping edgelist builder by default. If it sticks well, I'll
remove the old code-path in a subsequent CL

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

14 years agoreinstate the empty check, and always initialize the format field
reed@android.com [Tue, 8 Dec 2009 22:02:26 +0000 (22:02 +0000)]
reinstate the empty check, and always initialize the format field

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

14 years agoadd drawData() to canvas, to record data blobs
reed@android.com [Fri, 4 Dec 2009 21:32:27 +0000 (21:32 +0000)]
add drawData() to canvas, to record data blobs

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

14 years agoFix warning (struct forward-declared as class).
senorblanco@chromium.org [Fri, 4 Dec 2009 19:53:28 +0000 (19:53 +0000)]
Fix warning (struct forward-declared as class).

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

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

14 years agoRemove check for empty devPath
agl@chromium.org [Wed, 2 Dec 2009 22:24:40 +0000 (22:24 +0000)]
Remove check for empty devPath

Removes check for empty devPath since it was causing an assertion failure on
Mac OS X when drawing small fonts within the browser action badges.

BUG=none
TEST=none

Patch by andybons1.

http://codereview.appspot.com/163056

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

14 years agoDebug build fix (unreviewed).
senorblanco@chromium.org [Tue, 1 Dec 2009 13:36:19 +0000 (13:36 +0000)]
Debug build fix (unreviewed).

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

14 years agoMore SSE2 optimizations. This CL implements an SSE2 version of S32_bitmap_D32_filter...
senorblanco@chromium.org [Mon, 30 Nov 2009 20:00:29 +0000 (20:00 +0000)]
More SSE2 optimizations.  This CL implements an SSE2 version of S32_bitmap_D32_filter_DX, and uses aligned loads and stores for dst, in all blending.

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

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

14 years agoadd unittest for IntersectLine, used by hairlines
reed@android.com [Mon, 30 Nov 2009 12:48:33 +0000 (12:48 +0000)]
add unittest for IntersectLine, used by hairlines

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

14 years agoWin32 build fix (unreviewed).
senorblanco@chromium.org [Wed, 25 Nov 2009 17:14:32 +0000 (17:14 +0000)]
Win32 build fix (unreviewed).

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

14 years agooutset the bounds if we're in hairline before quick-reject in SkDraw.cpp
reed@android.com [Mon, 23 Nov 2009 21:46:47 +0000 (21:46 +0000)]
outset the bounds if we're in hairline before quick-reject in SkDraw.cpp

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

14 years agoadd SampleCode::GetAnimTime() so slides go through a central location for
reed@android.com [Mon, 23 Nov 2009 21:07:51 +0000 (21:07 +0000)]
add SampleCode::GetAnimTime() so slides go through a central location for
animation timing. This allows us to "freeze" time in order to do things like
draw multiple times to test clipping.

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

14 years agofix winding bug in lineclipper
reed@android.com [Mon, 23 Nov 2009 20:10:41 +0000 (20:10 +0000)]
fix winding bug in lineclipper
expose path.dump() all the time
UP arrow now toggles a grid of clip rects in sample app

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

14 years agodoh. make the new S16 and U16 checkers inline
reed@android.com [Sat, 21 Nov 2009 19:58:04 +0000 (19:58 +0000)]
doh. make the new S16 and U16 checkers inline

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

14 years agoadd checks for exceeding 16bits, and apply those for glyphs in getMetrics()
reed@android.com [Sat, 21 Nov 2009 02:48:11 +0000 (02:48 +0000)]
add checks for exceeding 16bits, and apply those for glyphs in getMetrics()

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

14 years agochange guard to use ANDROID and __arm__, so it doesn't break non-arm android
reed@android.com [Fri, 20 Nov 2009 22:15:22 +0000 (22:15 +0000)]
change guard to use ANDROID and __arm__, so it doesn't break non-arm android
configs (e.g. simulator)

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

14 years agoBuild fix for WIN64 (unreviewed).
senorblanco@chromium.org [Fri, 20 Nov 2009 18:55:44 +0000 (18:55 +0000)]
Build fix for WIN64 (unreviewed).

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

14 years agoRemove SK_USE_OLD_255_TO_256.
senorblanco@chromium.org [Fri, 20 Nov 2009 04:25:41 +0000 (04:25 +0000)]
Remove SK_USE_OLD_255_TO_256.

Review URL:  http://codereview.appspot.com/156057/show.

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

14 years agofix index-out-of-range constant
reed@android.com [Thu, 19 Nov 2009 21:41:57 +0000 (21:41 +0000)]
fix index-out-of-range constant

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

14 years agoretool clipping in hairlines to catch huge coordinates
reed@android.com [Thu, 19 Nov 2009 20:46:39 +0000 (20:46 +0000)]
retool clipping in hairlines to catch huge coordinates

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

14 years agoExclude Android-only cpu-features.h from non-Android builds.
agl@chromium.org [Thu, 19 Nov 2009 03:21:57 +0000 (03:21 +0000)]
Exclude Android-only cpu-features.h from non-Android builds.

This is needed when building Chromium for ARM.

Patch by Joel Stanley <joel@chromium.org>

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

14 years agoreturn early if we hit overflow when chopping on the left (i.e. the entire
reed@android.com [Thu, 19 Nov 2009 03:02:38 +0000 (03:02 +0000)]
return early if we hit overflow when chopping on the left (i.e. the entire
segment is effectively to the left)

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

14 years agoadd impl for memset32
reed@android.com [Wed, 18 Nov 2009 17:43:10 +0000 (17:43 +0000)]
add impl for memset32

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

14 years agonew scanconversion technique
reed@android.com [Wed, 18 Nov 2009 16:09:51 +0000 (16:09 +0000)]
new scanconversion technique

This technique geometrically clips all segments against the clip bounds,
ensuring that we never send a value to the edgelist that might overflow in
fixedpoint.

Current disabled in SkScan_Path.cpp by a #define. There are a few minor pixel
differences between this and the old technique, as found by the gm tool, so
at the moment this new code is off by default.

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