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

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