platform/upstream/libSkiaSharp.git
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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agofix typos in cubic clipper
reed@android.com [Wed, 18 Nov 2009 13:47:40 +0000 (13:47 +0000)]
fix typos in cubic clipper

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

15 years agoadd explicit clamping after chopping w/ t to ensure we're in the clip
reed@android.com [Tue, 17 Nov 2009 19:39:51 +0000 (19:39 +0000)]
add explicit clamping after chopping w/ t to ensure we're in the clip

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

15 years agoadd quadclipping utility, plus sample test
reed@android.com [Tue, 17 Nov 2009 18:47:52 +0000 (18:47 +0000)]
add quadclipping utility, plus sample test

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

15 years agoMore SSE2-ification; fix for gcc -msse2.
senorblanco@chromium.org [Mon, 16 Nov 2009 21:09:00 +0000 (21:09 +0000)]
More SSE2-ification; fix for gcc -msse2.

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

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

15 years agoadd lineclipper, and test case
reed@android.com [Mon, 16 Nov 2009 20:39:43 +0000 (20:39 +0000)]
add lineclipper, and test case

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

15 years agoadd onSendClickToChildren to views, so a view can capture all clicks.
reed@android.com [Mon, 16 Nov 2009 14:52:01 +0000 (14:52 +0000)]
add onSendClickToChildren to views, so a view can capture all clicks.
speedup some of the unittests that were too slow
minor cleanup in SkScan_Path, in prep for larger changes

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

15 years agoremove const modifiers on function return types (unneeded, and caused an error
reed@android.com [Fri, 13 Nov 2009 19:00:49 +0000 (19:00 +0000)]
remove const modifiers on function return types (unneeded, and caused an error
on some gccs).

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

15 years agofix rotation around 2nd axis
reed@android.com [Tue, 10 Nov 2009 17:58:47 +0000 (17:58 +0000)]
fix rotation around 2nd axis

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

15 years agoflatten/unflatten custom fields for 2-point gradient
reed@android.com [Tue, 10 Nov 2009 16:19:39 +0000 (16:19 +0000)]
flatten/unflatten custom fields for 2-point gradient

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

15 years agouse imageref_globalpool in samplepicture, to test flattening bitmaps
reed@android.com [Tue, 10 Nov 2009 15:54:55 +0000 (15:54 +0000)]
use imageref_globalpool in samplepicture, to test flattening bitmaps

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

15 years agoFix for gcc -fPIC build.
senorblanco@chromium.org [Mon, 9 Nov 2009 20:02:43 +0000 (20:02 +0000)]
Fix for gcc -fPIC build.

http://codereview.appspot.com/150060

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

15 years agoupdate dox for SkAvoidXfermode (as best I could)
reed@android.com [Mon, 9 Nov 2009 16:01:36 +0000 (16:01 +0000)]
update dox for SkAvoidXfermode (as best I could)

fix 565 and 4444 implementations

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

15 years agofix cheap calc of edgelist size
reed@android.com [Thu, 5 Nov 2009 21:04:00 +0000 (21:04 +0000)]
fix cheap calc of edgelist size

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

15 years agoSSE2 optimizations for 32bit blending blitters.
senorblanco@chromium.org [Wed, 4 Nov 2009 20:51:06 +0000 (20:51 +0000)]
SSE2 optimizations for 32bit blending blitters.

This CL implements SSE2 optimizations for 3 of the 32bit blending blitters.  It
uses CPUID to detect for SSE2 at runtime.  In order to accomodate runtime
detection, it changes the platform procs from static arrays to static
functions.

It also includes an implementation of SkTime for Win32.

http://codereview.appspot.com/144072

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

15 years agodefault to not showing the (slow) overview slide: hit DELETE to invoke
reed@android.com [Wed, 4 Nov 2009 19:40:25 +0000 (19:40 +0000)]
default to not showing the (slow) overview slide: hit DELETE to invoke

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

15 years agoadd SkEvalCubicInterval
reed@android.com [Tue, 3 Nov 2009 15:33:14 +0000 (15:33 +0000)]
add SkEvalCubicInterval

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

15 years agoadd OVerView slide to samplecode
reed@android.com [Tue, 3 Nov 2009 04:00:48 +0000 (04:00 +0000)]
add OVerView slide to samplecode
change inline functions in SkColorPriv.h to static inline

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

15 years agodisable bogus assert (at least until I can investigate more)
reed@android.com [Fri, 30 Oct 2009 21:37:10 +0000 (21:37 +0000)]
disable bogus assert (at least until I can investigate more)

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

15 years agoMakefile fix: Fix gm build for Linux.
senorblanco@chromium.org [Fri, 30 Oct 2009 18:50:23 +0000 (18:50 +0000)]
Makefile fix:  Fix gm build for Linux.
Also add a rule to build assembly files from .cpp's.

http://codereview.appspot.com/143060

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

15 years agorename gamma to table, since it is more general than just gamma
reed@android.com [Thu, 29 Oct 2009 17:37:56 +0000 (17:37 +0000)]
rename gamma to table, since it is more general than just gamma

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

15 years agoadd gamma maskfilter, especially nice when applied after a blur
reed@android.com [Thu, 29 Oct 2009 15:19:10 +0000 (15:19 +0000)]
add gamma maskfilter, especially nice when applied after a blur

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

15 years agomove boundarypatch into utils
reed@android.com [Wed, 28 Oct 2009 14:27:20 +0000 (14:27 +0000)]
move boundarypatch into utils

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

15 years agoupdate on boundary patches
reed@android.com [Wed, 28 Oct 2009 14:25:34 +0000 (14:25 +0000)]
update on boundary patches

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

15 years agoadd shaderproc32 for index bitmaps. neon version of 32->16+dither
reed@android.com [Tue, 27 Oct 2009 17:49:32 +0000 (17:49 +0000)]
add shaderproc32 for index bitmaps. neon version of 32->16+dither

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

15 years agoadd boundary patch experiment
reed@android.com [Tue, 27 Oct 2009 02:24:03 +0000 (02:24 +0000)]
add boundary patch experiment

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

15 years agoremove check for filtering. Now if the src is opaque, the filtered result
reed@android.com [Mon, 26 Oct 2009 19:15:43 +0000 (19:15 +0000)]
remove check for filtering. Now if the src is opaque, the filtered result
always will be too.

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

15 years agofix S32A_D565_Blend_neon
reed@android.com [Thu, 22 Oct 2009 20:26:53 +0000 (20:26 +0000)]
fix S32A_D565_Blend_neon

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

15 years agofix quadclipper in the case that the chop function fails
reed@android.com [Thu, 22 Oct 2009 18:11:06 +0000 (18:11 +0000)]
fix quadclipper in the case that the chop function fails

If the chopper fails, then we've hit some numerical edge-case, which indicates
that the quad is just barely crossing the edge, so to handle that, we just
clamp the Y values to the edge. This distorts the quad, but only in the case
when 99% of the quad will not be affected.

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