platform/upstream/libSkiaSharp.git
14 years agoWrite S32A_Opaque_BlitRow32 function in ARM assembly.
agl@chromium.org [Tue, 17 Aug 2010 16:24:15 +0000 (16:24 +0000)]
Write S32A_Opaque_BlitRow32 function in ARM assembly.

(Improves the rendering performance on ARM cores lacking NEON.)

Performance improvement about ~9% on Peacekeeper rendering benchmarks.

Patch by: Vasileios Laganakos (ARM)

http://codereview.appspot.com/1873044/

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

14 years agoAdd versions of memset16() and memset32() in ARM assembly.
agl@chromium.org [Fri, 13 Aug 2010 17:05:28 +0000 (17:05 +0000)]
Add versions of memset16() and memset32() in ARM assembly.

In benchmarks here on Cortex A9 processors, this code runs 25-30% faster
than the C equivalent.

Patch by: Steve McIntyre (ARM)

http://codereview.appspot.com/1973042

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

14 years agoAdd support for TTC font files in SkFontHost_Freetype.
agl@chromium.org [Fri, 6 Aug 2010 18:08:18 +0000 (18:08 +0000)]
Add support for TTC font files in SkFontHost_Freetype.
This is a companion change to a Chrome CL (
http://codereview.chromium.org/2870073/show )

(Patch by: jshin (Chromium))

BUG=http://crbug.com/50389
TEST=See the Chromium CL mentioned above.

http://codereview.appspot.com/1847046

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

14 years agoMake SKColorSetARGB() a macro when not building debug.
agl@chromium.org [Wed, 28 Jul 2010 17:10:30 +0000 (17:10 +0000)]
Make SKColorSetARGB() a macro when not building debug.

This allows GCC to avoid generating static initializers for code that
uses it.

Patch by: Dave Moore

http://codereview.appspot.com/1883043/show

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

14 years agoFix precedence error.
agl@chromium.org [Wed, 28 Jul 2010 17:10:28 +0000 (17:10 +0000)]
Fix precedence error.

Flagged as a compiler warning. It appears that it was intended that the
conjuction not bind so tightly.

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

14 years agofix matrix use in coretext fonthost
reed@android.com [Thu, 22 Jul 2010 18:27:53 +0000 (18:27 +0000)]
fix matrix use in coretext fonthost
update gm images to new baseline

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

14 years agoFix for SkMatrix::invert() for large coordinate values.
senorblanco@chromium.org [Tue, 20 Jul 2010 15:20:01 +0000 (15:20 +0000)]
Fix for SkMatrix::invert() for large coordinate values.

See http://codereview.appspot.com/1731053

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

14 years agoadd SkRegion::setRects(), and its unit tests
reed@android.com [Tue, 13 Jul 2010 18:35:14 +0000 (18:35 +0000)]
add SkRegion::setRects(), and its unit tests

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

14 years agofix reference bugs in font linklist
reed@android.com [Thu, 8 Jul 2010 16:39:02 +0000 (16:39 +0000)]
fix reference bugs in font linklist

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

14 years agoAdded optional "ambiguous" outgoing argument to XRay queries so that
kbr@chromium.org [Wed, 7 Jul 2010 22:20:35 +0000 (22:20 +0000)]
Added optional "ambiguous" outgoing argument to XRay queries so that
calling code may choose different y-coordinates for better robustness.
Tested and verified manually inside O3D.

BUG=none
TEST=none

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

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

14 years agooops, also update dox for saveLayerAlpha
reed@android.com [Fri, 2 Jul 2010 17:24:23 +0000 (17:24 +0000)]
oops, also update dox for saveLayerAlpha

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

14 years agoupdate dox for saveLayer()
reed@android.com [Fri, 2 Jul 2010 17:20:51 +0000 (17:20 +0000)]
update dox for saveLayer()

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

14 years agohttp://codereview.appspot.com/1706045/show
reed@android.com [Thu, 24 Jun 2010 21:04:23 +0000 (21:04 +0000)]
http://codereview.appspot.com/1706045/show

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

14 years agoRevert "Implementing S32A_Opaque_BlitRow32 using v7 neon instructions."
agl@chromium.org [Fri, 18 Jun 2010 15:30:12 +0000 (15:30 +0000)]
Revert "Implementing S32A_Opaque_BlitRow32 using v7 neon instructions."

Broke ARM build.

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

14 years agoRevert "We extract a sub-function from MAKENAME(_nofilter_DX), only dealing with...
agl@chromium.org [Fri, 18 Jun 2010 15:30:10 +0000 (15:30 +0000)]
Revert "We extract a sub-function from MAKENAME(_nofilter_DX), only dealing with reading"

Broke ARM build.

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

14 years agoAdd support for forcing autohinting.
agl@chromium.org [Thu, 17 Jun 2010 20:49:17 +0000 (20:49 +0000)]
Add support for forcing autohinting.

http://codereview.appspot.com/1651044/show

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

14 years agoWe extract a sub-function from MAKENAME(_nofilter_DX), only dealing with reading
agl@chromium.org [Wed, 16 Jun 2010 20:04:13 +0000 (20:04 +0000)]
We extract a sub-function from MAKENAME(_nofilter_DX), only dealing with reading
one index array, indexing into src array and output to dst array.

Because of the scatter-gather nature, we can not do much burst/batch
reading/writing to improve the performance.

We tried Neon vector instructions.  We also tried the hand optimize the compiler
generated assembly (non-neon) code.  The latter seems to have better gain.
About 6% improvements, not much though...

Patch-by: Xin Qi of codeaurora.org
http://codereview.appspot.com/1127042/show

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

14 years agoImplementing S32A_Opaque_BlitRow32 using v7 neon instructions.
agl@chromium.org [Wed, 16 Jun 2010 19:52:29 +0000 (19:52 +0000)]
Implementing S32A_Opaque_BlitRow32 using v7 neon instructions.

Taking the advantage of 16 channels of each QualWord register.  Also using the
software pipelining to scatter the loads/stores among vector operations.

Got roughly 70% improvements on simulation environments.

http://codereview.appspot.com/1148042/show

Patch-by: XinQi of codeaurora.org
git-svn-id: http://skia.googlecode.com/svn/trunk@578 2bbb7eff-a529-9590-31e7-b0007b416f81

14 years agorename round, ceil, etc. to avoid some platform macros
reed@android.com [Tue, 15 Jun 2010 00:57:50 +0000 (00:57 +0000)]
rename round, ceil, etc. to avoid some platform macros

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

14 years agoCompile fix for shared library builds.
agl@chromium.org [Thu, 10 Jun 2010 21:32:00 +0000 (21:32 +0000)]
Compile fix for shared library builds.

Patch by: Evan Martin.

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

14 years agoAdd include of FT_SYNTHESIS_H
agl@chromium.org [Fri, 4 Jun 2010 20:57:16 +0000 (20:57 +0000)]
Add include of FT_SYNTHESIS_H

In older versions of Freetype, the FT_GlyphSlot_Own_Bitmap function is
defined in FT_SYNTHESIS_H. Modern versions have it in FT_BITMAP_H.

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

14 years agoAdd support for fake bold of bitmap fonts.
agl@chromium.org [Fri, 4 Jun 2010 20:31:17 +0000 (20:31 +0000)]
Add support for fake bold of bitmap fonts.

BUG=45874

http://codereview.appspot.com/1558041/show

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

14 years agoAdd Neon versions of memset32 and memset16
agl@chromium.org [Fri, 4 Jun 2010 14:47:38 +0000 (14:47 +0000)]
Add Neon versions of memset32 and memset16

Patch by pgalizia (of codeaurora.org)

(Note: I don't read ARM and I didn't manage to find a reviewer for the
ARM assembly code so this is landing somewhat unreviewed.)

http://codereview.appspot.com/1157045/show

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

14 years agoadd carbon.h include
reed@android.com [Thu, 3 Jun 2010 14:47:27 +0000 (14:47 +0000)]
add carbon.h include

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

14 years agoremove duplicate LCD functions (these are portable, and live in SkFontHost.cpp)
reed@android.com [Tue, 1 Jun 2010 21:01:35 +0000 (21:01 +0000)]
remove duplicate LCD functions (these are portable, and live in SkFontHost.cpp)

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

14 years agoseparate mac fonthost into atsui (32bit, pre-10.6) and coretext (64bit, 10.6)
reed@android.com [Wed, 19 May 2010 13:47:05 +0000 (13:47 +0000)]
separate mac fonthost into atsui (32bit, pre-10.6) and coretext (64bit, 10.6)
implementations.

code submitted by http://codereview.appspot.com/user/refnum

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

14 years agoFix 64-bit Mac warnings/memory corruption
reed@android.com [Tue, 18 May 2010 21:23:30 +0000 (21:23 +0000)]
Fix 64-bit Mac warnings/memory corruption

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

14 years agoexport line counts
reed@android.com [Tue, 18 May 2010 21:17:43 +0000 (21:17 +0000)]
export line counts

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

14 years agoupdates
reed@android.com [Mon, 17 May 2010 14:50:04 +0000 (14:50 +0000)]
updates

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

14 years agoupdate to match latest skia apis
reed@android.com [Mon, 17 May 2010 14:34:13 +0000 (14:34 +0000)]
update to match latest skia apis

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

14 years agofix maxWidth when using linear-text
reed@android.com [Mon, 17 May 2010 14:15:14 +0000 (14:15 +0000)]
fix maxWidth when using linear-text

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

14 years agoforce 10.4 SDK for macs, as the font porter there needs those APIs
reed@android.com [Wed, 12 May 2010 17:25:30 +0000 (17:25 +0000)]
force 10.4 SDK for macs, as the font porter there needs those APIs

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

14 years agoMinor fixes to build under Clang:
agl@chromium.org [Mon, 10 May 2010 21:20:58 +0000 (21:20 +0000)]
Minor fixes to build under Clang:
  - Remove an unused ctor that was wrong anyway.
  - Add magic angle brackets to a template declaration.

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

14 years ago[FreeType] Always use MONO hinting when hinting in monochrome.
agl@chromium.org [Mon, 10 May 2010 14:15:50 +0000 (14:15 +0000)]
[FreeType] Always use MONO hinting when hinting in monochrome.

This matches the behaviour of Cairo. It appears to be an undocumented
trick of font rendering on Linux that, in monochrome, all the hinting
modes expect no-hinting are mapped to FreeType's MONO hinting.

http://code.google.com/p/chromium/issues/detail?id=43252

http://codereview.appspot.com/1162041/show

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

14 years agoRevert "Revert "Use hairline when line width <= 1.0, instead of < 1.0.""
agl@chromium.org [Tue, 27 Apr 2010 15:47:34 +0000 (15:47 +0000)]
Revert "Revert "Use hairline when line width <= 1.0, instead of < 1.0.""

This reverts commit r560. Chromium has landed at r560, so I'm applying the
revert-revert. (See the comments in r560 for details.)

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

14 years agoRevert "Use hairline when line width <= 1.0, instead of < 1.0."
agl@chromium.org [Mon, 26 Apr 2010 21:47:25 +0000 (21:47 +0000)]
Revert "Use hairline when line width <= 1.0, instead of < 1.0."

This reverts commit r538 for the moment. In order to roll Chrome to include
some bug fixes, I want to land it in between this revert, and the revert
revert. That way the baseline changes from the other revisions can be
considered without conflating the huge number of changes due to r538.

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

14 years agoFix internal compiler error on ARM.
agl@chromium.org [Mon, 26 Apr 2010 21:45:08 +0000 (21:45 +0000)]
Fix internal compiler error on ARM.

For the moment, at least, switch back to the old Neon code because the
new code is triggering internal compiler errors in Chromium ARM.

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

14 years agoupdates
reed@android.com [Thu, 22 Apr 2010 16:07:49 +0000 (16:07 +0000)]
updates

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

14 years agoAdd a SkTypeface::CreateForChars() function.
agl@chromium.org [Tue, 20 Apr 2010 22:06:40 +0000 (22:06 +0000)]
Add a SkTypeface::CreateForChars() function.

This allows us to do font fallback for strange scripts.
Added empty stubs to the implementations on all platforms.

Patch-by: Evan Martin
Signed-off-by: Adam Langley
http://codereview.appspot.com/950041

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

14 years agodox
reed@android.com [Fri, 16 Apr 2010 20:56:00 +0000 (20:56 +0000)]
dox

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

14 years agoadd SkRefPtr class (for testing at the moment)
reed@android.com [Fri, 16 Apr 2010 20:35:47 +0000 (20:35 +0000)]
add SkRefPtr class (for testing at the moment)

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

14 years agoremove obsolete closeStream() method -- the caller just unref's the stream when they...
reed@android.com [Fri, 16 Apr 2010 12:51:29 +0000 (12:51 +0000)]
remove obsolete closeStream() method -- the caller just unref's the stream when they're done

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

14 years agoadd EmptyTypeface class, to gracefully handle when there are no fonts avail.
reed@android.com [Fri, 16 Apr 2010 12:40:08 +0000 (12:40 +0000)]
add EmptyTypeface class, to gracefully handle when there are no fonts avail.

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

14 years agoadd FPSBench.cpp
reed@android.com [Thu, 15 Apr 2010 16:34:54 +0000 (16:34 +0000)]
add FPSBench.cpp

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

14 years agoadd png to makefile for linux
reed@android.com [Thu, 15 Apr 2010 14:28:24 +0000 (14:28 +0000)]
add png to makefile for linux

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

14 years agoadd SK_ENABLE_LIBPNG to force reference to PNG codec
reed@android.com [Thu, 15 Apr 2010 14:24:50 +0000 (14:24 +0000)]
add SK_ENABLE_LIBPNG to force reference to PNG codec

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

14 years agobe sure to ref() before returning a typeface from Create
reed@android.com [Thu, 15 Apr 2010 14:04:52 +0000 (14:04 +0000)]
be sure to ref() before returning a typeface from Create
skip duplicate faces in the same family+style slot

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

14 years agofix overflow in matrixproc, and add debugging code to test that
reed@android.com [Wed, 14 Apr 2010 13:36:33 +0000 (13:36 +0000)]
fix overflow in matrixproc, and add debugging code to test that

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

14 years agofix build for SK_SCALAR_IS_FIXED
reed@android.com [Tue, 13 Apr 2010 15:29:15 +0000 (15:29 +0000)]
fix build for SK_SCALAR_IS_FIXED

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

14 years agoextend sentinel array to avoid reading uninitialized memory
reed@android.com [Tue, 13 Apr 2010 14:52:52 +0000 (14:52 +0000)]
extend sentinel array to avoid reading uninitialized memory

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

14 years agocall premultiply instead of pack32
reed@android.com [Tue, 13 Apr 2010 14:03:27 +0000 (14:03 +0000)]
call premultiply instead of pack32

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

14 years agoremove obsolete header
reed@android.com [Tue, 13 Apr 2010 13:40:58 +0000 (13:40 +0000)]
remove obsolete header

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

14 years agofix paraens to avoid warnings
reed@android.com [Tue, 13 Apr 2010 13:36:20 +0000 (13:36 +0000)]
fix paraens to avoid warnings

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

14 years agoadd SKIA_VERSION_[MAJOR, MINOR, PATCH] in header and SkGraphics API
reed@android.com [Tue, 13 Apr 2010 13:22:54 +0000 (13:22 +0000)]
add SKIA_VERSION_[MAJOR, MINOR, PATCH] in header and SkGraphics API

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

14 years agoadd more MakeFoo factories for SkRect
reed@android.com [Mon, 12 Apr 2010 21:21:59 +0000 (21:21 +0000)]
add more MakeFoo factories for SkRect

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

14 years agofix refcnt for streams
reed@android.com [Mon, 12 Apr 2010 20:16:49 +0000 (20:16 +0000)]
fix refcnt for streams

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

14 years agoadd skhello for simple hello-world sample code
reed@android.com [Mon, 12 Apr 2010 14:27:37 +0000 (14:27 +0000)]
add skhello for simple hello-world sample code

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

14 years agoUse hairline when line width <= 1.0, instead of < 1.0.
anatoly@google.com [Mon, 12 Apr 2010 13:51:28 +0000 (13:51 +0000)]
Use hairline when line width <= 1.0, instead of < 1.0.
This speeds line drawing up considerably when drawing with
default linewidth on canvas.

Review: http://codereview.appspot.com/883047/show

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

14 years agoray fixes neon for dither and blend
reed@android.com [Fri, 9 Apr 2010 18:44:46 +0000 (18:44 +0000)]
ray fixes neon for dither and blend

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

14 years agoadd
reed@android.com [Thu, 8 Apr 2010 18:48:12 +0000 (18:48 +0000)]
add

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

14 years agoadd
reed@android.com [Thu, 8 Apr 2010 18:43:22 +0000 (18:43 +0000)]
add

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

14 years agofix dither-to-4444 to keep the alpha value >= colors
reed@android.com [Tue, 6 Apr 2010 21:03:33 +0000 (21:03 +0000)]
fix dither-to-4444 to keep the alpha value >= colors

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

14 years agoif we're strokeandfill+hairline, just draw fill (they way paths do) instead
reed@android.com [Thu, 25 Mar 2010 14:31:46 +0000 (14:31 +0000)]
if we're strokeandfill+hairline, just draw fill (they way paths do) instead
of just hairline stroking (bad)

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

14 years agoadd inherit-from-root-transform flag (for fixed-positioning)
reed@android.com [Tue, 23 Mar 2010 20:10:46 +0000 (20:10 +0000)]
add inherit-from-root-transform flag (for fixed-positioning)

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

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