platform/upstream/libSkiaSharp.git
12 years agoMake SkRegion::operator== a member function, rather than a privately-declared
reed@google.com [Wed, 25 Jan 2012 21:53:53 +0000 (21:53 +0000)]
Make SkRegion::operator== a member function, rather than a privately-declared
friend.  Without this, calling code has access to operator==, but can fail to
link because the implementation is assumed to have static linkage.

http://codereview.appspot.com/5577047/

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

12 years agoIntersection work in progress
caryclark@google.com [Wed, 25 Jan 2012 18:57:23 +0000 (18:57 +0000)]
Intersection work in progress
Review URL: https://codereview.appspot.com/5576043

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

12 years agofix vertical bold text on mac
caryclark@google.com [Wed, 25 Jan 2012 16:47:04 +0000 (16:47 +0000)]
fix vertical bold text on mac

M    src/ports/SkFontHost_mac_coretext.cpp

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

12 years agodisable SPEW_PURGE_STATUS
reed@google.com [Wed, 25 Jan 2012 16:04:18 +0000 (16:04 +0000)]
disable SPEW_PURGE_STATUS

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

12 years agowhitespace change to trigger Skia buildbot
epoger@google.com [Tue, 24 Jan 2012 04:27:11 +0000 (04:27 +0000)]
whitespace change to trigger Skia buildbot

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

12 years agoPrefer a texture pixel ref to a render target pixel ref when creating an SkGpuDevice
bsalomon@google.com [Tue, 24 Jan 2012 02:31:42 +0000 (02:31 +0000)]
Prefer a texture pixel ref to a render target pixel ref when creating an SkGpuDevice

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

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

12 years agoWhitespace commit to check if lion / win bots are hosed.
bsalomon@google.com [Tue, 24 Jan 2012 02:23:07 +0000 (02:23 +0000)]
Whitespace commit to check if lion / win bots are hosed.

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

12 years agorevert 3078
bsalomon@google.com [Sat, 21 Jan 2012 15:03:39 +0000 (15:03 +0000)]
revert 3078

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

12 years agofix interior issues in convex path renderer
bsalomon@google.com [Sat, 21 Jan 2012 14:48:36 +0000 (14:48 +0000)]
fix interior issues in convex path renderer

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

12 years agoTemporarily allow linear interpolation of 2-color vertical gradients to be
tomhudson@google.com [Fri, 20 Jan 2012 13:59:14 +0000 (13:59 +0000)]
Temporarily allow linear interpolation of 2-color vertical gradients to be
turned off. With a Chromium gyp change to add
SK_SIMPLE_TWOCOLOR_VERTICAL_GRADIENTS, this reduces the rebaselining from
r3073 from ~200 to ~20.

codereview.appspot.com/5558055/

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

12 years agoFix a warning in libtess in Release builds; define NDEBUG in Release on all
senorblanco@chromium.org [Thu, 19 Jan 2012 19:59:22 +0000 (19:59 +0000)]
Fix a warning in libtess in Release builds; define NDEBUG in Release on all
platforms.

BUG:  http://code.google.com/p/skia/issues/detail?id=456
Review URL:  http://codereview.appspot.com/5555054/

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

12 years agoAdd flag to disable gl error checking when allocating gpu objects
bsalomon@google.com [Thu, 19 Jan 2012 16:16:52 +0000 (16:16 +0000)]
Add flag to disable gl error checking when allocating gpu objects

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

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

12 years agoCleanup of SkPath code to remove SK_OLD_EMPTY_PATH_BEHAVIOR and other
schenney@chromium.org [Thu, 19 Jan 2012 15:31:01 +0000 (15:31 +0000)]
Cleanup of SkPath code to remove SK_OLD_EMPTY_PATH_BEHAVIOR and other
dead code. The patch also renames kAfterClose_SegmentState for the
SkPath::Iter class, to kEmptyContour_SegmentState which more
accurately reflects the meaning of the state. The Iter can be in that
state initially, before anything has been seen, let alone a close.

BUG=445

TEST=Covered by existing tests.
Review URL: https://codereview.appspot.com/5532091

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

12 years agorebaseline with fix to drawAsAHairline
reed@google.com [Thu, 19 Jan 2012 14:23:24 +0000 (14:23 +0000)]
rebaseline with fix to drawAsAHairline

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

12 years agoInterpolate vertical linear gradients for improved quality.
tomhudson@google.com [Wed, 18 Jan 2012 21:28:01 +0000 (21:28 +0000)]
Interpolate vertical linear gradients for improved quality.
Consolidate interpolation functions, add new faster more accurate dithering
interpolator.

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

12 years agoRebaseline hairmodes GM at r3070
bsalomon@google.com [Wed, 18 Jan 2012 21:00:54 +0000 (21:00 +0000)]
Rebaseline hairmodes GM at r3070

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

12 years agoPull xfer mode test out of generic draw-as-hairline test. Use coverage rather than...
bsalomon@google.com [Wed, 18 Jan 2012 20:34:00 +0000 (20:34 +0000)]
Pull xfer mode test out of generic draw-as-hairline test. Use coverage rather than alpha to draw hairlines < 1pix wide in GPU.

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

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

12 years agoFix mimetypes for all checked-in GM baselines (no image content changes)
epoger@google.com [Wed, 18 Jan 2012 20:29:56 +0000 (20:29 +0000)]
Fix mimetypes for all checked-in GM baselines (no image content changes)

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

12 years agoStop writing out XPS baselines until we resolve skia issue 455
epoger@google.com [Wed, 18 Jan 2012 20:11:13 +0000 (20:11 +0000)]
Stop writing out XPS baselines until we resolve skia issue 455

BUG=455
TBR=bungeman
Review URL: https://codereview.appspot.com/5554052

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

12 years agoTurn clipping back on in OSAA pass 1. Skip default cons on GrDrawState when saving...
bsalomon@google.com [Wed, 18 Jan 2012 19:51:55 +0000 (19:51 +0000)]
Turn clipping back on in OSAA pass 1. Skip default cons on GrDrawState when saving off a GrDrawTarget's state.

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

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

12 years agoRemove apparent SkIntToScalar(SkScalar) call in SkScalerContext_FreeType
epoger@google.com [Wed, 18 Jan 2012 19:20:39 +0000 (19:20 +0000)]
Remove apparent SkIntToScalar(SkScalar) call in SkScalerContext_FreeType

This change seems to fix the following assertion failure we have been seeing
in the Skia_Linux_Fixed_Debug build since http://code.google.com/p/skia/source/detail?r=3059 :

drawing... bitmapfilters [540 330]
../include/core/SkFixed.h:67: failed assertion "n >= -32768 && n <= 32767"
Review URL: https://codereview.appspot.com/5557049

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

12 years agoUpdating gm's usage message
junov@google.com [Wed, 18 Jan 2012 18:56:34 +0000 (18:56 +0000)]
Updating gm's usage message

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

12 years agoSomehow this change was missing from the previous commit.
schenney@chromium.org [Wed, 18 Jan 2012 18:06:10 +0000 (18:06 +0000)]
Somehow this change was missing from the previous commit.

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

12 years agoFixing the behavior of SkPathMeasure to reflect changes in SkPath::Iter.
schenney@chromium.org [Wed, 18 Jan 2012 18:02:10 +0000 (18:02 +0000)]
Fixing the behavior of SkPathMeasure to reflect changes in SkPath::Iter.
This implementation modifies SkPath::Iter extensively to avoid copying
the points when used to measure path length.

BUG=446
TEST=tests/PathMeasureTest.cpp
Review URL: https://codereview.appspot.com/5533074

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

12 years agoadd GenA8FromLCD as a hack to force GDI to create the A8 mask from the LCD
reed@google.com [Wed, 18 Jan 2012 17:06:35 +0000 (17:06 +0000)]
add GenA8FromLCD as a hack to force GDI to create the A8 mask from the LCD
results, rather than asking GDI directly for A8 (which it sometimes decides
to interpret as BW)

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

12 years agoLanding change from http://codereview.appspot.com/5540063/
epoger@google.com [Wed, 18 Jan 2012 17:02:15 +0000 (17:02 +0000)]
Landing change from codereview.appspot.com/5540063/

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

12 years agoAdding class SkDeferredCanvas for deferred rendering.
junov@google.com [Wed, 18 Jan 2012 16:21:08 +0000 (16:21 +0000)]
Adding class SkDeferredCanvas for deferred rendering.

TEST=added a new pass to gm, so all gm tests are run through SkDeferredCanvas
REVIEW=http://codereview.appspot.com/5430058/

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

12 years agoChange download-baselines script to download images from skia-autogen SVN repo
epoger@google.com [Tue, 17 Jan 2012 21:26:05 +0000 (21:26 +0000)]
Change download-baselines script to download images from skia-autogen SVN repo

I have copied the old version (which downloads the images from the buildbots
directly, but only works with our Mac buildbots) to download-baselines-old,
so we can use either version during a transition period.

Another difference: the new version sets the mimetype property of all image
files in the baseline_subdir, even those that have not changed.

BUG=386
http://code.google.com/p/skia/issues/detail?id=386 ('make buildbots write out RunGM image results to a browsable directory')
Review URL: https://codereview.appspot.com/5544056

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

12 years agoAttempt to reland 3054
bsalomon@google.com [Tue, 17 Jan 2012 21:03:05 +0000 (21:03 +0000)]
Attempt to reland 3054

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

12 years agoRevert r3054 for failing tests
bsalomon@google.com [Tue, 17 Jan 2012 20:14:58 +0000 (20:14 +0000)]
Revert r3054 for failing tests

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

12 years agoAdd constant coverage to GrDrawState
bsalomon@google.com [Tue, 17 Jan 2012 19:58:34 +0000 (19:58 +0000)]
Add constant coverage to GrDrawState

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

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

12 years agowhitespace change to trigger Skia buildbot
epoger@google.com [Tue, 17 Jan 2012 19:20:02 +0000 (19:20 +0000)]
whitespace change to trigger Skia buildbot

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

12 years agoif the y-max has neighbors (prev and next) with the same Y values, then the
reed@google.com [Tue, 17 Jan 2012 18:26:38 +0000 (18:26 +0000)]
if the y-max has neighbors (prev and next) with the same Y values, then the
cross will be 0, but we can still know the direction by looking at the change
in X

Fixes the hypen in #7 of this bug http://code.google.com/p/chromium/issues/detail?id=109370

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

12 years agorebaseline following change to subpixel positioning
reed@google.com [Tue, 17 Jan 2012 18:23:36 +0000 (18:23 +0000)]
rebaseline following change to subpixel positioning

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

12 years agowhitespace change to tri
epoger@google.com [Tue, 17 Jan 2012 17:23:22 +0000 (17:23 +0000)]
whitespace change to tri
gger Skia buildbot

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

12 years agoIncorporate changes related to Tom's post-hoc comments on the convex path renderer.
bsalomon@google.com [Tue, 17 Jan 2012 16:28:34 +0000 (16:28 +0000)]
Incorporate changes related to Tom's post-hoc comments on the convex path renderer.

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

12 years agofix assert
bsalomon@google.com [Tue, 17 Jan 2012 16:16:49 +0000 (16:16 +0000)]
fix assert

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

12 years agoAdd GrDrawState reset
bsalomon@google.com [Tue, 17 Jan 2012 16:01:37 +0000 (16:01 +0000)]
Add GrDrawState reset

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

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

12 years agosecond try to fix assert
bsalomon@google.com [Tue, 17 Jan 2012 14:39:21 +0000 (14:39 +0000)]
second try to fix assert

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

12 years agoChange static asserts of scalar type to runtime asserts (re r3040)
bsalomon@google.com [Tue, 17 Jan 2012 14:31:23 +0000 (14:31 +0000)]
Change static asserts of scalar type to runtime asserts (re r3040)

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

12 years agoAdd convex path renderer (disabled)
bsalomon@google.com [Tue, 17 Jan 2012 14:25:10 +0000 (14:25 +0000)]
Add convex path renderer (disabled)

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

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

12 years agoModify SkBitmap::extractSubset() to respect volatility
skyostil@google.com [Mon, 16 Jan 2012 10:45:53 +0000 (10:45 +0000)]
Modify SkBitmap::extractSubset() to respect volatility

The resulting subset bitmap will always have the same volatility flag as the
source bitmap.

BUG=452
Review URL: http://codereview.appspot.com/5544052

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

12 years agoRebaseline for 3037.
bungeman@google.com [Fri, 13 Jan 2012 16:07:11 +0000 (16:07 +0000)]
Rebaseline for 3037.

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

12 years agoSubpixel text 3/8 of a pixel too far to the right.
bungeman@google.com [Fri, 13 Jan 2012 15:02:58 +0000 (15:02 +0000)]
Subpixel text 3/8 of a pixel too far to the right.
http://codereview.appspot.com/5502097/

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

12 years agoModify SkBitmap::extractSubset() to respect opaqueness
skyostil@google.com [Fri, 13 Jan 2012 14:56:51 +0000 (14:56 +0000)]
Modify SkBitmap::extractSubset() to respect opaqueness

The resulting subset bitmap will always have the same opaqueness flag as the
source bitmap.

BUG=439
Review URL: http://codereview.appspot.com/5534051

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

12 years agoAdd gyp variable to disable OSAA
bsalomon@google.com [Thu, 12 Jan 2012 20:56:52 +0000 (20:56 +0000)]
Add gyp variable to disable OSAA
Review URL: http://codereview.appspot.com/5539047

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

12 years agoFix vs2010 int to scalar warnings
bsalomon@google.com [Thu, 12 Jan 2012 20:38:57 +0000 (20:38 +0000)]
Fix vs2010 int to scalar warnings

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

12 years agoAdd code path to SW rasterize paths and upload as a mask texture
bsalomon@google.com [Thu, 12 Jan 2012 20:19:56 +0000 (20:19 +0000)]
Add code path to SW rasterize paths and upload as a mask texture

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

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

12 years agoCreate floating-point square root path for 16b mirrored radial gradients
tomhudson@google.com [Thu, 12 Jan 2012 20:13:49 +0000 (20:13 +0000)]
Create floating-point square root path for 16b mirrored radial gradients
(6x-16x speedup).  Create specialized dy=0 path for clamped radial gradients
(25% speedup).  Make 16b radial gradient proc signature similar to 32b,
passing in SkScalar instead of SkFixed and/or SkFloat.

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

12 years agoAdding new SkPathMeasure tests, defined out for now as they fail.
schenney@chromium.org [Thu, 12 Jan 2012 20:04:06 +0000 (20:04 +0000)]
Adding new SkPathMeasure tests, defined out for now as they fail.
Review URL: http://codereview.appspot.com/5529078

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

12 years agoAdd a wide stroked line path benchmark to bench. It uses the same stroke width
senorblanco@chromium.org [Thu, 12 Jan 2012 19:10:35 +0000 (19:10 +0000)]
Add a wide stroked line path benchmark to bench.  It uses the same stroke width
and endcap style as the stroked curved path.

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

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

12 years agoautomatically inject a moveTo if we see a close followed by a line/quad/cubic
reed@google.com [Thu, 12 Jan 2012 18:17:11 +0000 (18:17 +0000)]
automatically inject a moveTo if we see a close followed by a line/quad/cubic

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

12 years agoConvert 32b radial gradient procs to take SkScalar instead of
tomhudson@google.com [Thu, 12 Jan 2012 16:21:43 +0000 (16:21 +0000)]
Convert 32b radial gradient procs to take SkScalar instead of
SkFixed AND SkFloat.

http://codereview.appspot.com/5532083/

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

12 years agoremove unused bool param to SkMutex constructor
reed@google.com [Thu, 12 Jan 2012 15:21:16 +0000 (15:21 +0000)]
remove unused bool param to SkMutex constructor

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

12 years agoRemove supports per-vertex coverage caps bit
bsalomon@google.com [Thu, 12 Jan 2012 13:47:37 +0000 (13:47 +0000)]
Remove supports per-vertex coverage caps bit

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

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

12 years agoRemove obsolete SK_USE_FLOAT_SQRT
tomhudson@google.com [Wed, 11 Jan 2012 21:54:26 +0000 (21:54 +0000)]
Remove obsolete SK_USE_FLOAT_SQRT

http://codereview.appspot.com/5535053/

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

12 years agoupdate baseline
reed@google.com [Wed, 11 Jan 2012 21:04:50 +0000 (21:04 +0000)]
update baseline

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

12 years agoreenable direction test, fix handling of degenerate segments in the non-convex case
reed@google.com [Wed, 11 Jan 2012 21:03:05 +0000 (21:03 +0000)]
reenable direction test, fix handling of degenerate segments in the non-convex case

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

12 years agoFix SkScalar values in ClipperTest.cpp; these were breaking one Windows buildbot
epoger@google.com [Wed, 11 Jan 2012 20:43:29 +0000 (20:43 +0000)]
Fix SkScalar values in ClipperTest.cpp; these were breaking one Windows buildbot

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

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

12 years agoFix the string we're checking for in the #if defined(), so that loops actually do...
tomhudson@google.com [Wed, 11 Jan 2012 19:29:08 +0000 (19:29 +0000)]
Fix the string we're checking for in the #if defined(), so that loops actually do get unrolled on Windows (15% perf win claimed many months ago).

http://codereview.appspot.com/5528078

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

12 years agodisable test until I can fix it
reed@google.com [Wed, 11 Jan 2012 19:17:23 +0000 (19:17 +0000)]
disable test until I can fix it

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

12 years agoRoll gyp to 1139.
bungeman@google.com [Wed, 11 Jan 2012 19:17:20 +0000 (19:17 +0000)]
Roll gyp to 1139.
http://codereview.appspot.com/5529070/

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

12 years agoFix variable renaming in asserts related to r3015
bsalomon@google.com [Wed, 11 Jan 2012 18:51:15 +0000 (18:51 +0000)]
Fix variable renaming in asserts related to r3015

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

12 years agoRemove shadersupport caps bit
bsalomon@google.com [Wed, 11 Jan 2012 18:45:39 +0000 (18:45 +0000)]
Remove shadersupport caps bit

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

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

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