platform/upstream/libSkiaSharp.git
12 years agofix cheapComputeDirection() in the non-convex case to pivot on the y-max point
reed@google.com [Wed, 11 Jan 2012 18:16:39 +0000 (18:16 +0000)]
fix cheapComputeDirection() in the non-convex case to pivot on the y-max point
rather than pivoting on the next. Also remove the loop, as it is just logically
wrong to think we can use this trick only a non-extrema pt.

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

12 years agoRebaseline for 3010.
bungeman@google.com [Wed, 11 Jan 2012 17:54:25 +0000 (17:54 +0000)]
Rebaseline for 3010.

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

12 years agoandroid: optimize atomics routines
digit@google.com [Wed, 11 Jan 2012 17:44:41 +0000 (17:44 +0000)]
android: optimize atomics routines

This patch provides a slightly optimized implementation of
atomic increment/decrement functions by using static inlined
versions of the gcc intrinsics.
Review URL: http://codereview.appspot.com/5498069

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

12 years agoimprove clamping logic when handling imprecise chopping of cubics
reed@google.com [Wed, 11 Jan 2012 16:41:26 +0000 (16:41 +0000)]
improve clamping logic when handling imprecise chopping of cubics
http://code.google.com/p/skia/issues/detail?id=444

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

12 years agoCorrect GPU glyph positioning.
bungeman@google.com [Wed, 11 Jan 2012 16:28:04 +0000 (16:28 +0000)]
Correct GPU glyph positioning.
http://codereview.appspot.com/5522050/

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

12 years agofix compilation error in GrContext.cpp when PREFER_MSAA_OFFSCREEN_AA is enabled
bsalomon@google.com [Wed, 11 Jan 2012 16:00:42 +0000 (16:00 +0000)]
fix compilation error in GrContext.cpp when PREFER_MSAA_OFFSCREEN_AA is enabled

http://codereview.appspot.com/5534068/

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

12 years agofix comment
bsalomon@google.com [Wed, 11 Jan 2012 15:33:20 +0000 (15:33 +0000)]
fix comment

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

12 years agodetect (and reject) if radius ia NaN, by using !(radius > 0) instead of (radius ...
reed@google.com [Wed, 11 Jan 2012 14:07:27 +0000 (14:07 +0000)]
detect (and reject) if radius ia NaN, by using !(radius > 0) instead of (radius <= 0)

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

12 years agoExport SkColorMatrixFilter via SK_API.
senorblanco@chromium.org [Tue, 10 Jan 2012 21:56:40 +0000 (21:56 +0000)]
Export SkColorMatrixFilter via SK_API.

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

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

12 years agowork in progress for shape operations
caryclark@google.com [Tue, 10 Jan 2012 21:46:10 +0000 (21:46 +0000)]
work in progress for shape operations

A    experimental/Intersection
A    experimental/Intersection/Intersections.h
A    experimental/Intersection/DataTypes.cpp
A    experimental/Intersection/QuadraticReduceOrder.cpp
A    experimental/Intersection/IntersectionUtilities.cpp
A    experimental/Intersection/CubicIntersection_Tests.h
A    experimental/Intersection/LineParameteters_Test.cpp
A    experimental/Intersection/ReduceOrder.cpp
A    experimental/Intersection/QuadraticIntersection.cpp
A    experimental/Intersection/Extrema.h
A    experimental/Intersection/CubicIntersection_TestData.h
A    experimental/Intersection/QuadraticParameterization_Test.cpp
A    experimental/Intersection/TestUtilities.cpp
A    experimental/Intersection/CubicRoots.cpp
A    experimental/Intersection/QuadraticParameterization.cpp
A    experimental/Intersection/QuadraticSubDivide.cpp
A    experimental/Intersection/LineIntersection_Test.cpp
A    experimental/Intersection/LineIntersection.cpp
A    experimental/Intersection/CubicParameterizationCode.cpp
A    experimental/Intersection/LineParameters.h
A    experimental/Intersection/CubicIntersection.h
A    experimental/Intersection/CubeRoot.cpp
A    experimental/Intersection/SkAntiEdge.h
A    experimental/Intersection/ConvexHull_Test.cpp
A    experimental/Intersection/CubicBezierClip_Test.cpp
A    experimental/Intersection/CubicIntersection_Tests.cpp
A    experimental/Intersection/CubicBezierClip.cpp
A    experimental/Intersection/CubicIntersectionT.cpp
A    experimental/Intersection/Inline_Tests.cpp
A    experimental/Intersection/ReduceOrder_Test.cpp
A    experimental/Intersection/QuadraticIntersection_TestData.h
A    experimental/Intersection/DataTypes.h
A    experimental/Intersection/Extrema.cpp
A    experimental/Intersection/EdgeApp.cpp
A    experimental/Intersection/CubicIntersection_TestData.cpp
A    experimental/Intersection/IntersectionUtilities.h
A    experimental/Intersection/CubicReduceOrder.cpp
A    experimental/Intersection/CubicCoincidence.cpp
A    experimental/Intersection/CubicIntersection_Test.cpp
A    experimental/Intersection/CubicIntersection.cpp
A    experimental/Intersection/QuadraticUtilities.h
A    experimental/Intersection/SkAntiEdge.cpp
A    experimental/Intersection/TestUtilities.h
A    experimental/Intersection/CubicParameterization_Test.cpp
A    experimental/Intersection/LineIntersection.h
A    experimental/Intersection/CubicSubDivide.cpp
A    experimental/Intersection/CubicParameterization.cpp
A    experimental/Intersection/QuadraticBezierClip_Test.cpp
A    experimental/Intersection/QuadraticBezierClip.cpp
A    experimental/Intersection/BezierClip_Test.cpp
A    experimental/Intersection/ConvexHull.cpp
A    experimental/Intersection/BezierClip.cpp
A    experimental/Intersection/QuadraticIntersection_TestData.cpp

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

12 years agostroking wants CW, so we reverse if the orig was CCW
reed@google.com [Tue, 10 Jan 2012 21:30:57 +0000 (21:30 +0000)]
stroking wants CW, so we reverse if the orig was CCW

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

12 years agouse SkIntToScalar
reed@google.com [Tue, 10 Jan 2012 19:28:01 +0000 (19:28 +0000)]
use SkIntToScalar

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

12 years agouse SkIntToScalar(10) instead of 10 for parameters (for scalar==fixed)
reed@google.com [Tue, 10 Jan 2012 18:59:22 +0000 (18:59 +0000)]
use SkIntToScalar(10) instead of 10 for parameters (for scalar==fixed)

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

12 years agoadd gm for reverseAddPath
reed@google.com [Tue, 10 Jan 2012 18:44:37 +0000 (18:44 +0000)]
add gm for reverseAddPath

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

12 years agorestore (debugged) cheapComputeDirection
reed@google.com [Tue, 10 Jan 2012 18:40:03 +0000 (18:40 +0000)]
restore (debugged) cheapComputeDirection

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

12 years agodisable for now
reed@google.com [Tue, 10 Jan 2012 18:13:23 +0000 (18:13 +0000)]
disable for now

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

12 years agodisable cheap check while its being debugged
reed@google.com [Tue, 10 Jan 2012 18:02:09 +0000 (18:02 +0000)]
disable cheap check while its being debugged

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

12 years agoRemove accidentally checked in printf
bsalomon@google.com [Tue, 10 Jan 2012 18:01:01 +0000 (18:01 +0000)]
Remove accidentally checked in printf

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

12 years agoadd SkPath::cheapComputeDirection() plus unittests
reed@google.com [Tue, 10 Jan 2012 18:00:10 +0000 (18:00 +0000)]
add SkPath::cheapComputeDirection() plus unittests

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

12 years agoadd SkPath::reverseAddPath()
reed@google.com [Tue, 10 Jan 2012 15:33:12 +0000 (15:33 +0000)]
add SkPath::reverseAddPath()

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

12 years agoAdd --add-new-files option to download-baselines.py script
epoger@google.com [Tue, 10 Jan 2012 14:10:34 +0000 (14:10 +0000)]
Add --add-new-files option to download-baselines.py script

This will allow the user to determine whether the script downloads just
updates for baselines that are already checked in, or all available baselines.

BUG=436
addresses http://code.google.com/p/skia/issues/detail?id=436 ('add "update" flag to download-baselines script')
Review URL: http://codereview.appspot.com/5523050

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

12 years agoAndroid: disable static global initializers
digit@google.com [Tue, 10 Jan 2012 10:28:30 +0000 (10:28 +0000)]
Android: disable static global initializers

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

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

12 years agoremove one un-needed static initializer
digit@google.com [Tue, 10 Jan 2012 10:00:59 +0000 (10:00 +0000)]
remove one un-needed static initializer

This patch removes the use of a static C++ object in the
implementation of SkMatrix44::isIdentity(). Instead, we rely
on direct comparison with a statically allocated array of
SkMScalar values, which is completely equivalent.
Review URL: http://codereview.appspot.com/5502067

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

12 years agoChange remaining ANDROID ifdefs to SK_BUILD_FOR_ANDROID
djsollen@google.com [Mon, 9 Jan 2012 20:40:25 +0000 (20:40 +0000)]
Change remaining ANDROID ifdefs to SK_BUILD_FOR_ANDROID
Review URL: http://codereview.appspot.com/5528050

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

12 years agoAdd ARM optimizations to the build.
djsollen@google.com [Mon, 9 Jan 2012 14:38:25 +0000 (14:38 +0000)]
Add ARM optimizations to the build.

Also had to fix a problem in the ARM memset code that was
causing some tests and bench to fail.
Review URL: http://codereview.appspot.com/5522052

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

12 years agoCode cleanup: move gradient inner loops into procs.
tomhudson@google.com [Mon, 9 Jan 2012 13:45:36 +0000 (13:45 +0000)]
Code cleanup: move gradient inner loops into procs.

http://codereview.appspot.com/5523048/

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

12 years agoExclude BGRA readPixel tests on Android until bug 438 is resolved.
djsollen@google.com [Mon, 9 Jan 2012 13:02:20 +0000 (13:02 +0000)]
Exclude BGRA readPixel tests on Android until bug 438 is resolved.
Review URL: http://codereview.appspot.com/5522053

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

12 years agoremove obsolete file
reed@google.com [Mon, 9 Jan 2012 12:55:23 +0000 (12:55 +0000)]
remove obsolete file

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

12 years agoadd unittest for sk_memset16 and sk_memset32
mike@reedtribe.org [Sat, 7 Jan 2012 03:49:13 +0000 (03:49 +0000)]
add unittest for sk_memset16 and sk_memset32

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

12 years agooverride asComponentTable()
mike@reedtribe.org [Sat, 7 Jan 2012 03:48:45 +0000 (03:48 +0000)]
override asComponentTable()

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

12 years agoTowards enabling -Werror in skia on Linux
bsalomon@google.com [Fri, 6 Jan 2012 19:22:11 +0000 (19:22 +0000)]
Towards enabling -Werror in skia on Linux

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

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

12 years agoFix check for glTexStorage2D fn ptr
bsalomon@google.com [Fri, 6 Jan 2012 19:05:43 +0000 (19:05 +0000)]
Fix check for glTexStorage2D fn ptr

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

12 years agoadd allowImageFilter() so a device can allow/disallow filters
reed@google.com [Fri, 6 Jan 2012 14:43:09 +0000 (14:43 +0000)]
add allowImageFilter() so a device can allow/disallow filters
(esp. for printing)

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

12 years agoRebaseline mac fixed poly2poly.
bungeman@google.com [Thu, 5 Jan 2012 22:10:45 +0000 (22:10 +0000)]
Rebaseline mac fixed poly2poly.

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

12 years agoMac generateFontMetrics not converting to scalar.
bungeman@google.com [Thu, 5 Jan 2012 21:21:34 +0000 (21:21 +0000)]
Mac generateFontMetrics not converting to scalar.
http://codereview.appspot.com/5519045/

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

12 years agobaselines for macpro
reed@google.com [Thu, 5 Jan 2012 21:18:43 +0000 (21:18 +0000)]
baselines for macpro

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

12 years agoadd filterImage() entry-point to SkDevice, to allow it to specialize on subclasses
reed@google.com [Thu, 5 Jan 2012 21:15:07 +0000 (21:15 +0000)]
add filterImage() entry-point to SkDevice, to allow it to specialize on subclasses
of SkImageFilter. If that returns false, then the filter itself is invoked.

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

12 years agoRemove attempt at subpixel handling from GDI font host.
bungeman@google.com [Thu, 5 Jan 2012 20:18:06 +0000 (20:18 +0000)]
Remove attempt at subpixel handling from GDI font host.
http://codereview.appspot.com/5515046/

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

12 years ago[PDF] Fix some scalar/int assumptions.
vandebo@chromium.org [Thu, 5 Jan 2012 18:45:27 +0000 (18:45 +0000)]
[PDF] Fix some scalar/int assumptions.

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

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

12 years agoWhen applying a color matrix, unpremultiply the source, and premultiply the
senorblanco@chromium.org [Thu, 5 Jan 2012 18:28:56 +0000 (18:28 +0000)]
When applying a color matrix, unpremultiply the source, and premultiply the
result.  If the input color is missing, set to all-zeros or all-ones as
appropriate.  Add an alpha test case to the colormatrix GM.

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

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

12 years agoMake font scaler gm work correctly in fixed point.
bungeman@google.com [Thu, 5 Jan 2012 18:10:48 +0000 (18:10 +0000)]
Make font scaler gm work correctly in fixed point.
http://codereview.appspot.com/5509049/

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

12 years agoReverting r2969, since it broke the GLPrograms RunTests step.
senorblanco@chromium.org [Thu, 5 Jan 2012 17:34:38 +0000 (17:34 +0000)]
Reverting r2969, since it broke the GLPrograms RunTests step.

Unreviewed; build fix.

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

12 years agoadd asComponentTable() query (will impl in SkTableColorFilter next)
reed@google.com [Thu, 5 Jan 2012 17:24:35 +0000 (17:24 +0000)]
add asComponentTable() query (will impl in SkTableColorFilter next)

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

12 years agomake getOrigin() public so callers can adjust layer
caryclark@google.com [Thu, 5 Jan 2012 17:05:05 +0000 (17:05 +0000)]
make getOrigin() public so callers can adjust layer

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

12 years agoWhen applying a color matrix, unpremultiply the source, and premultiply
senorblanco@chromium.org [Thu, 5 Jan 2012 16:59:27 +0000 (16:59 +0000)]
When applying a color matrix, unpremultiply the source, and premultiply
the result.

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

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

12 years agoThe units used to setup XPS should be SkScalars.
bungeman@google.com [Thu, 5 Jan 2012 16:56:29 +0000 (16:56 +0000)]
The units used to setup XPS should be SkScalars.
http://codereview.appspot.com/5509050/

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

12 years agoFix Mac build
bsalomon@google.com [Thu, 5 Jan 2012 16:25:46 +0000 (16:25 +0000)]
Fix Mac build

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

12 years agoAdd support for GL texture storage
bsalomon@google.com [Thu, 5 Jan 2012 16:17:38 +0000 (16:17 +0000)]
Add support for GL texture storage

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

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

12 years agoremove as these are replaced by SkJSON
mike@reedtribe.org [Thu, 5 Jan 2012 03:10:59 +0000 (03:10 +0000)]
remove as these are replaced by SkJSON

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

12 years agoTrash cached render target when creating a new FBO and its ID is bound.
bsalomon@google.com [Wed, 4 Jan 2012 22:11:43 +0000 (22:11 +0000)]
Trash cached render target when creating a new FBO and its ID is bound.

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

12 years agoFix incorrect use of the SK_RESTRICT macro in SkColorMatrixFilter, and re-enable
senorblanco@chromium.org [Wed, 4 Jan 2012 22:00:34 +0000 (22:00 +0000)]
Fix incorrect use of the SK_RESTRICT macro in SkColorMatrixFilter, and re-enable
the colormatrix GM test.

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

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

12 years agoAdd the ability to iterate through a path without modification. This change is
schenney@chromium.org [Wed, 4 Jan 2012 21:05:51 +0000 (21:05 +0000)]
Add the ability to iterate through a path without modification. This change is
required by WebKit SVG in order to correctly draw markers and endcaps.

BUG=415
TEST=TestPath in the unit tests
Review URL: http://codereview.appspot.com/5505097

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

12 years agoAllow 0 as a valid text size in SkPaint.
djsollen@google.com [Wed, 4 Jan 2012 18:43:43 +0000 (18:43 +0000)]
Allow 0 as a valid text size in SkPaint.
Review URL: http://codereview.appspot.com/5514043

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

12 years agoimplement dithering for vertical grads (was a todo:)
reed@google.com [Wed, 4 Jan 2012 17:26:27 +0000 (17:26 +0000)]
implement dithering for vertical grads (was a todo:)

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

12 years agodrawPosText with center or right align skips every other character.
bungeman@google.com [Wed, 4 Jan 2012 14:17:00 +0000 (14:17 +0000)]
drawPosText with center or right align skips every other character.
http://codereview.appspot.com/5504118/

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

12 years agoadd count(), fix bad llist logic in remove()
mike@reedtribe.org [Wed, 4 Jan 2012 11:37:46 +0000 (11:37 +0000)]
add count(), fix bad llist logic in remove()

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

12 years agoadd Object::remove, some dox, leak debugging code
mike@reedtribe.org [Wed, 4 Jan 2012 03:37:40 +0000 (03:37 +0000)]
add Object::remove, some dox, leak debugging code

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

12 years agoRemoving path drawing gm tests that produce either an entirely
schenney@chromium.org [Wed, 4 Jan 2012 00:18:53 +0000 (00:18 +0000)]
Removing path drawing gm tests that produce either an entirely
filled or entirely empty clip area. Requested but not reviewed by
reed@google.com.

TEST=Covered now by unit testing.

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

12 years agoImprove the quality of color matrix filters by using SkPremultiplyARGBInline.
senorblanco@chromium.org [Tue, 3 Jan 2012 22:42:26 +0000 (22:42 +0000)]
Improve the quality of color matrix filters by using SkPremultiplyARGBInline.
This is closer (but not exactly the same as) WebKit's implementation.

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

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

12 years agoFormatting only, multi-line call actually fits on one line.
bungeman@google.com [Tue, 3 Jan 2012 22:36:33 +0000 (22:36 +0000)]
Formatting only, multi-line call actually fits on one line.

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

12 years agoDisable colormatrix GM test, since it's failing on win32 float release.
senorblanco@chromium.org [Tue, 3 Jan 2012 22:14:41 +0000 (22:14 +0000)]
Disable colormatrix GM test, since it's failing on win32 float release.

Build fix; unreviewed.

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

12 years agoBuild fix. Forgot to update gyp.
schenney@chromium.org [Tue, 3 Jan 2012 21:42:10 +0000 (21:42 +0000)]
Build fix. Forgot to update gyp.

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

12 years agoRemoving unnecessary gm tests. Unreviewed but approved by reed@google.com.
schenney@chromium.org [Tue, 3 Jan 2012 21:37:19 +0000 (21:37 +0000)]
Removing unnecessary gm tests. Unreviewed but approved by reed@google.com.

TEST=Test coverage now in unit tests.

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

12 years agoSpeculative fix to please the skia buildbots. I couldn't repro the failure
senorblanco@chromium.org [Tue, 3 Jan 2012 21:20:19 +0000 (21:20 +0000)]
Speculative fix to please the skia buildbots.  I couldn't repro the failure
locally, but I did get valgrind to point out some uninitialized data, which
this fix suppresses.

Build fix; unreviewed.

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

12 years agoAdd null check to createPlatformTexture
bsalomon@google.com [Tue, 3 Jan 2012 21:08:12 +0000 (21:08 +0000)]
Add null check to createPlatformTexture

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

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

12 years agoImplement the color matrix filter in Ganesh. Also, fix and enable the color
senorblanco@chromium.org [Tue, 3 Jan 2012 20:51:57 +0000 (20:51 +0000)]
Implement the color matrix filter in Ganesh.  Also, fix and enable the color
matrix test slide.  This was basically implemented in the same places where
the blending-based color filter was being done.  The shader simply does a mat4
matrix multiply and a vec4 add.

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

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

12 years agoFix off-by-one error in assertion; improve coverage_to_exact_alpha()
tomhudson@google.com [Tue, 3 Jan 2012 20:12:42 +0000 (20:12 +0000)]
Fix off-by-one error in assertion; improve coverage_to_exact_alpha()
implementation.

http://codereview.appspot.com/5504116/

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

12 years agoexpose isSubpixel() on the cache, so SkDraw can know if it should expect
reed@google.com [Tue, 3 Jan 2012 19:43:20 +0000 (19:43 +0000)]
expose isSubpixel() on the cache, so SkDraw can know if it should expect
subpixel text (it may be that the paint requested it, but the scaler ignored it)

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

12 years agoAdd flags to GrStencilSettings
bsalomon@google.com [Tue, 3 Jan 2012 19:39:31 +0000 (19:39 +0000)]
Add flags to GrStencilSettings

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

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

12 years agoFix ToUnicode generation bug.
vandebo@chromium.org [Tue, 3 Jan 2012 18:35:39 +0000 (18:35 +0000)]
Fix ToUnicode generation bug.

Code from arthurhsu@chromium.org Original CL: http://codereview.appspot.com/5492061/

BUG=Chromium:104062

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

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

12 years agoadd helper drawSizeBounds to show the GM's size
reed@google.com [Tue, 3 Jan 2012 17:20:38 +0000 (17:20 +0000)]
add helper drawSizeBounds to show the GM's size

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

12 years agoUpdate header comments to more accurately describe behavior of
tomhudson@google.com [Tue, 3 Jan 2012 14:52:37 +0000 (14:52 +0000)]
Update header comments to more accurately describe behavior of
SkRegion::getBoundaryPath(). Add SkASSERT of SkPath argument for safety.

codereview.appspot.com/5504095/

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

12 years agoFix return value from SkImageDecoder::DecodeFile(): false even in case of
tomhudson@google.com [Tue, 3 Jan 2012 14:42:08 +0000 (14:42 +0000)]
Fix return value from SkImageDecoder::DecodeFile(): false even in case of
*partial* failure.

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

12 years agoexperiment #2 for JSON data
mike@reedtribe.org [Mon, 2 Jan 2012 00:34:50 +0000 (00:34 +0000)]
experiment #2 for JSON data

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

12 years agoadd experimental class for json
mike@reedtribe.org [Sat, 31 Dec 2011 01:58:40 +0000 (01:58 +0000)]
add experimental class for json

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

12 years agoadd optional --forceBWtext to gm, forcing all text to BW to ease
mike@reedtribe.org [Fri, 30 Dec 2011 16:02:53 +0000 (16:02 +0000)]
add optional --forceBWtext to gm, forcing all text to BW to ease
comparisons between platform variations (e.g. mac 10.5,6,7)

probably only make sense in conjunction with some flag on GM allowing
the slide to opt in-or-out, so we only hack text labels, and not GMs
that are explicitly trying to test text rendering.

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

12 years agoAdd tool that downloads gm baseline images from the bots.
epoger@google.com [Thu, 29 Dec 2011 21:13:08 +0000 (21:13 +0000)]
Add tool that downloads gm baseline images from the bots.
Review URL: http://codereview.appspot.com/5503082

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

12 years agoFix problems with SampleApp Fuzzer due to issues in iterating over degenerate paths.
schenney@chromium.org [Thu, 29 Dec 2011 21:03:28 +0000 (21:03 +0000)]
Fix problems with SampleApp Fuzzer due to issues in iterating over degenerate paths.
The fuzzer gets my vote as best test tool ever.

There are several issues outstanding: crashes in FixedPoint and a crash in the
path filling code that is most likely due to clipping problems (but maybe not).

BUG=425
Review URL: http://codereview.appspot.com/5503080

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

12 years agoTighten up restrictions on blit width: some shaders assert that they
tomhudson@google.com [Thu, 29 Dec 2011 16:09:31 +0000 (16:09 +0000)]
Tighten up restrictions on blit width: some shaders assert that they
are addressing more than 0 pixels.
codereview.appspot.com/5489125/

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

12 years agoCommit base-macmini gm baselines that are similar to those in base-macpro
epoger@google.com [Wed, 28 Dec 2011 21:23:57 +0000 (21:23 +0000)]
Commit base-macmini gm baselines that are similar to those in base-macpro
Review URL: http://codereview.appspot.com/5496076

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

12 years agoAdd SkTableColorFilter, as a foundation for several SVG filters
mike@reedtribe.org [Wed, 28 Dec 2011 20:31:00 +0000 (20:31 +0000)]
Add SkTableColorFilter, as a foundation for several SVG filters

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

12 years agoadd SK_OVERRIDE
mike@reedtribe.org [Wed, 28 Dec 2011 20:17:42 +0000 (20:17 +0000)]
add SK_OVERRIDE

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

12 years agoreturn -1 if we failed to find by title
mike@reedtribe.org [Wed, 28 Dec 2011 20:02:10 +0000 (20:02 +0000)]
return -1 if we failed to find by title

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

12 years agoFix fixed-point antialiased clipping GM; upload baselines.
tomhudson@google.com [Wed, 28 Dec 2011 19:40:48 +0000 (19:40 +0000)]
Fix fixed-point antialiased clipping GM; upload baselines.

http://codereview.appspot.com/5503077/

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

12 years agoAdd number-of-missing-baseline-images report to gm
epoger@google.com [Wed, 28 Dec 2011 19:31:01 +0000 (19:31 +0000)]
Add number-of-missing-baseline-images report to gm
Review URL: http://codereview.appspot.com/5489123

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

12 years agoBugfixes to antialiased blitting.
tomhudson@google.com [Wed, 28 Dec 2011 17:58:07 +0000 (17:58 +0000)]
Bugfixes to antialiased blitting.
More details of blitter contracts in function headers.
New precautionary assert in one high-level default blitter.

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

12 years agoFix Windows build breakage in http://code.google.com/p/skia/source/detail?r=2925
epoger@google.com [Wed, 28 Dec 2011 15:13:41 +0000 (15:13 +0000)]
Fix Windows build breakage in code.google.com/p/skia/source/detail?r=2925

TBR=reed
Review URL: http://codereview.appspot.com/5500087

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

12 years agoAdd SkDEBUGFAIL to clean up use of SkASSERT(!"text");
tomhudson@google.com [Wed, 28 Dec 2011 14:59:50 +0000 (14:59 +0000)]
Add SkDEBUGFAIL to clean up use of SkASSERT(!"text");
catch a couple of latent SkASSERT("text") bugs.

http://codereview.appspot.com/5504090/

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

12 years agoRETURN key now records default slide for startup
mike@reedtribe.org [Tue, 27 Dec 2011 22:33:50 +0000 (22:33 +0000)]
RETURN key now records default slide for startup

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

12 years agoNew 'blitAntiRect' entry point for blitters, specialized in supersampling
tomhudson@google.com [Tue, 27 Dec 2011 13:59:20 +0000 (13:59 +0000)]
New 'blitAntiRect' entry point for blitters, specialized in supersampling
code to avoid quarter-scanline-at-a-time building of large rectangular
clips.

Speeds up aa_clip_build_path_AA benchmark 2x, aa_clip_build_rect_AA benchmark
10x or more. This is a sufficient performance gain to let Chromium reenable
WebKit's soft clipping code. Rolling into Chromium will require ~18
rebaselines.

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

12 years agoProtecting changes to the SkPath iteration with an ifdef for Chromium.
schenney@chromium.org [Wed, 21 Dec 2011 20:43:13 +0000 (20:43 +0000)]
Protecting changes to the SkPath iteration with an ifdef for Chromium.
Something is broken, and this will protect us while we sort it out.

Unreviewed.

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

12 years agoadd move-close-move and move-close-move-close to the "empty" paths to test
reed@google.com [Wed, 21 Dec 2011 20:26:01 +0000 (20:26 +0000)]
add move-close-move and move-close-move-close to the "empty" paths to test

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

12 years agosupport vertical text and typeface-by-name on Leopard
caryclark@google.com [Wed, 21 Dec 2011 20:06:30 +0000 (20:06 +0000)]
support vertical text and typeface-by-name on Leopard

M    src/ports/SkFontHost_mac_coretext.cpp
M    gyp/gmslides.gypi
A    gm/verttext2.cpp

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

12 years agoadd unittest for invariants for empty paths, still need to think about
reed@google.com [Wed, 21 Dec 2011 19:36:21 +0000 (19:36 +0000)]
add unittest for invariants for empty paths, still need to think about
hairlines in those cases

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

12 years agoUnreviewed. Adding a define to enable the old bahevior for SkPath::isEmpty.
schenney@chromium.org [Wed, 21 Dec 2011 19:13:51 +0000 (19:13 +0000)]
Unreviewed. Adding a define to enable the old bahevior for SkPath::isEmpty.
Should be undone at some point, when WebKit no longer needs it.

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

12 years agodeclare IsVariationSelector to be inline, to fix warning
reed@google.com [Wed, 21 Dec 2011 16:31:23 +0000 (16:31 +0000)]
declare IsVariationSelector to be inline, to fix warning

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

12 years agopreserve inverseness when stroking
reed@google.com [Wed, 21 Dec 2011 15:53:13 +0000 (15:53 +0000)]
preserve inverseness when stroking

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

12 years agoadd SkUnichar_IsVariationSelector()
reed@google.com [Wed, 21 Dec 2011 15:21:32 +0000 (15:21 +0000)]
add SkUnichar_IsVariationSelector()

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

12 years agoNew gm to test anti-aliased clipping.
tomhudson@google.com [Wed, 21 Dec 2011 14:27:14 +0000 (14:27 +0000)]
New gm to test anti-aliased clipping.

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

12 years agoCoverity: Add a default case in SkPDFShader. CID=101159
vandebo@chromium.org [Wed, 21 Dec 2011 01:49:35 +0000 (01:49 +0000)]
Coverity: Add a default case in SkPDFShader. CID=101159

Code from thestig@chromium.org original CL: http://codereview.appspot.com/5498052/

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

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