platform/upstream/libSkiaSharp.git
12 years agoadd different stroke-widths to dash bench
mike@reedtribe.org [Sat, 5 May 2012 13:46:10 +0000 (13:46 +0000)]
add different stroke-widths to dash bench

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

12 years agoadd gm for dashing variations
reed@google.com [Fri, 4 May 2012 21:49:27 +0000 (21:49 +0000)]
add gm for dashing variations

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

12 years agoadd initial bench for dashing (more work to do)
reed@google.com [Fri, 4 May 2012 16:37:45 +0000 (16:37 +0000)]
add initial bench for dashing (more work to do)

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

12 years agoFix for performance regression due to r3832
robertphillips@google.com [Fri, 4 May 2012 16:34:52 +0000 (16:34 +0000)]
Fix for performance regression due to r3832

http://codereview.appspot.com/6188045/

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

12 years agofix/revert the unsigned-shift change made to clamp in 3836. For clamp we want
reed@google.com [Fri, 4 May 2012 12:54:20 +0000 (12:54 +0000)]
fix/revert the unsigned-shift change made to clamp in 3836. For clamp we want
to see the negatives, so we must have a signed shift.

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

12 years agoUpstream font changes from Android repository.
djsollen@google.com [Fri, 4 May 2012 12:03:48 +0000 (12:03 +0000)]
Upstream font changes from Android repository.
Review URL: https://codereview.appspot.com/6166043

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

12 years agofix fixed-point build
reed@google.com [Thu, 3 May 2012 20:26:06 +0000 (20:26 +0000)]
fix fixed-point build

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

12 years agoWe were numerically overflowing our 16bit coordinates that we communicate
reed@google.com [Thu, 3 May 2012 20:14:26 +0000 (20:14 +0000)]
We were numerically overflowing our 16bit coordinates that we communicate
between these two procs. The fixes was in two parts:

1. Just don't draw bitmaps larger than 64K-1 in width or height, since we
   can't represent those coordinates in our transport format (yet).
2. Perform an unsigned shift during the calculation, so we don't get
   sign-extension bleed when packing the two values (X,Y) into our 32bit
   slot.
Review URL: https://codereview.appspot.com/6173046

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

12 years agoAdded "--list" command line option to SampleApp
robertphillips@google.com [Thu, 3 May 2012 18:22:28 +0000 (18:22 +0000)]
Added "--list" command line option to SampleApp

http://codereview.appspot.com/6161043/

committed on behalf of Guanqun

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

12 years agoMade "Clip" sample use AA clipping
robertphillips@google.com [Thu, 3 May 2012 18:05:18 +0000 (18:05 +0000)]
Made "Clip" sample use AA clipping

http://codereview.appspot.com/6176046/

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

12 years agoDisabled stencil buffer for AA clip mask
robertphillips@google.com [Thu, 3 May 2012 18:03:05 +0000 (18:03 +0000)]
Disabled stencil buffer for AA clip mask

http://codereview.appspot.com/6182047/

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

12 years agoFixed texture ref/unref bug in GrInOrderDrawBuffer/GrDrawState
robertphillips@google.com [Thu, 3 May 2012 17:58:27 +0000 (17:58 +0000)]
Fixed texture ref/unref bug in GrInOrderDrawBuffer/GrDrawState

http://codereview.appspot.com/6186043/

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

12 years agoFix to prevent infinite recursion during AA clip mask generation
robertphillips@google.com [Thu, 3 May 2012 16:29:41 +0000 (16:29 +0000)]
Fix to prevent infinite recursion during AA clip mask generation

http://codereview.appspot.com/6183044/

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

12 years agorestore extra slot in sentinal array that was removed in 3825. This extra value
reed@google.com [Thu, 3 May 2012 16:17:38 +0000 (16:17 +0000)]
restore extra slot in sentinal array that was removed in 3825. This extra value
is read, but not acted-upon, by spanRec.init(), and so we need to have a valid
address/slot allocated.

Caught by the remoting_unittests in chrome run using ASAN.
Review URL: https://codereview.appspot.com/6176045

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

12 years agorecreate http://codereview.appspot.com/6131051/ in svn instead of git
epoger@google.com [Thu, 3 May 2012 14:02:17 +0000 (14:02 +0000)]
recreate codereview.appspot.com/6131051/ in svn instead of git
Review URL: https://codereview.appspot.com/6181044

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

12 years agoAdded cache to gpu AA clipping
robertphillips@google.com [Wed, 2 May 2012 19:32:32 +0000 (19:32 +0000)]
Added cache to gpu AA clipping

http://codereview.appspot.com/6160046/

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

12 years agoMoved SW path rendering path back to using TU/sampler #2. This reverts r3813
robertphillips@google.com [Wed, 2 May 2012 19:27:44 +0000 (19:27 +0000)]
Moved SW path rendering path back to using TU/sampler #2. This reverts r3813

http://codereview.appspot.com/6159046/

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

12 years agoUpdates for SkGPipe.
scroggo@google.com [Wed, 2 May 2012 19:09:40 +0000 (19:09 +0000)]
Updates for SkGPipe.

Keep track of SkBitmaps which have been flattened by
the PipeWriter so we can reuse them.

Implement other flavors of drawBitmap (except
drawBitmapMatrix).

Flatten SkImageFilters in SkPaints.

Do not notify if no new data has been written.
Review URL: https://codereview.appspot.com/6128062

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

12 years agostore x-interval-count per scanline, so we can skip lines in O(1)
reed@google.com [Wed, 2 May 2012 18:07:33 +0000 (18:07 +0000)]
store x-interval-count per scanline, so we can skip lines in O(1)
Review URL: https://codereview.appspot.com/6147043

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

12 years agoshow contains and intersects predicates in sample
reed@google.com [Wed, 2 May 2012 18:03:32 +0000 (18:03 +0000)]
show contains and intersects predicates in sample

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

12 years agoalways return a value
reed@google.com [Wed, 2 May 2012 17:41:13 +0000 (17:41 +0000)]
always return a value

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

12 years agodistinguish intersects-rect from intersects-rgn
reed@google.com [Wed, 2 May 2012 17:20:02 +0000 (17:20 +0000)]
distinguish intersects-rect from intersects-rgn

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

12 years agorenormalize some loop counts for faster tests in regions
reed@google.com [Wed, 2 May 2012 16:56:49 +0000 (16:56 +0000)]
renormalize some loop counts for faster tests in regions

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

12 years agoadd more tests for rgn::intersects(rect)
reed@google.com [Wed, 2 May 2012 16:52:12 +0000 (16:52 +0000)]
add more tests for rgn::intersects(rect)

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

12 years agorename containsrgn to containsrect, since that is what it is testing
reed@google.com [Wed, 2 May 2012 16:45:36 +0000 (16:45 +0000)]
rename containsrgn to containsrect, since that is what it is testing

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

12 years agoadd more tests around contains for rects and regions
reed@google.com [Wed, 2 May 2012 16:09:21 +0000 (16:09 +0000)]
add more tests around contains for rects and regions

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

12 years agoFixed usage info for SampleApp's msaa flag
robertphillips@google.com [Wed, 2 May 2012 14:18:20 +0000 (14:18 +0000)]
Fixed usage info for SampleApp's msaa flag

http://codereview.appspot.com/6159043/

committed on behalf of Guanqun Lu

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

12 years agoSwitch memset.arm.S to unified syntax.
djsollen@google.com [Wed, 2 May 2012 14:15:32 +0000 (14:15 +0000)]
Switch memset.arm.S to unified syntax.

https://codereview.appspot.com/6108046/

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

12 years agoconverted "unsigned int" to "size_t" to address compiler failure
robertphillips@google.com [Wed, 2 May 2012 14:05:47 +0000 (14:05 +0000)]
converted "unsigned int" to "size_t" to address compiler failure

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

12 years agoAdded GM test to stress test the texture unit/sampler allocation
robertphillips@google.com [Wed, 2 May 2012 13:55:06 +0000 (13:55 +0000)]
Added GM test to stress test the texture unit/sampler allocation

http://codereview.appspot.com/6134058/

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

12 years agoMoved SW path rendering to new texture unit
robertphillips@google.com [Tue, 1 May 2012 17:25:37 +0000 (17:25 +0000)]
Moved SW path rendering to new texture unit

http://codereview.appspot.com/6138057/

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

12 years agoAdded gpu AA clipping to old shader path
robertphillips@google.com [Tue, 1 May 2012 17:22:59 +0000 (17:22 +0000)]
Added gpu AA clipping to old shader path

http://codereview.appspot.com/6139065/

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

12 years agoAdd device to top level N-way canvas.
djsollen@google.com [Tue, 1 May 2012 16:50:25 +0000 (16:50 +0000)]
Add device to top level N-way canvas.
Review URL: https://codereview.appspot.com/6131062

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

12 years agoAdd missing null device checks in SkCanvas
djsollen@google.com [Tue, 1 May 2012 16:50:10 +0000 (16:50 +0000)]
Add missing null device checks in SkCanvas
Review URL: https://codereview.appspot.com/6092056

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

12 years agofix bug (and add test) for drawing an inverse-path whose bounds do intersect
reed@google.com [Tue, 1 May 2012 14:49:28 +0000 (14:49 +0000)]
fix bug (and add test) for drawing an inverse-path whose bounds do intersect
the clip, but whose edges do not (e.g. a curve). We used to overdraw a section
(and assert).

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

12 years agorecord yspancount and intervalcount in regions
reed@google.com [Tue, 1 May 2012 14:43:22 +0000 (14:43 +0000)]
record yspancount and intervalcount in regions
Review URL: https://codereview.appspot.com/6132055

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

12 years agoMoved SW path renderer from GrContext.cpp to GrSoftwarePathRenderer.cpp
robertphillips@google.com [Tue, 1 May 2012 14:30:24 +0000 (14:30 +0000)]
Moved SW path renderer from GrContext.cpp to GrSoftwarePathRenderer.cpp

http://codereview.appspot.com/6138056/

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

12 years agoAdd new flags to skdiff
epoger@google.com [Tue, 1 May 2012 13:26:16 +0000 (13:26 +0000)]
Add new flags to skdiff

New flags are:
--nodiffs: don't write out image diffs or index.html, just generate report on stdout
--match: compare files whose filenames contain this substring; if unspecified, compare ALL files
         this flag may be repeated to add more matching substrings
--nomatch: regardless of --match, DO NOT compare files whose filenames contain this substring
           this flag may be repeated to add more forbidden substrings

Also implemented the --threshold flag, which was already documented but not implemented.
Review URL: https://codereview.appspot.com/6135045

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

12 years agoMake GrSamplerState::operator==() use GrCustomStage::isEquivalent() rather
tomhudson@google.com [Tue, 1 May 2012 12:48:07 +0000 (12:48 +0000)]
Make GrSamplerState::operator==() use GrCustomStage::isEquivalent() rather
than just bit-compare all fields.

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

12 years agoSecond half of refactoring to move SW path rendering to GrPathRenderer
robertphillips@google.com [Tue, 1 May 2012 12:19:34 +0000 (12:19 +0000)]
Second half of refactoring to move SW path rendering to GrPathRenderer

http://codereview.appspot.com/6125046/

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

12 years agoAdd comparison and assignment operators to GrSamplerState.
tomhudson@google.com [Mon, 30 Apr 2012 20:19:07 +0000 (20:19 +0000)]
Add comparison and assignment operators to GrSamplerState.

http://codereview.appspot.com/6137058/

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

12 years agoRe-adding red texture support (by rolling back r3800)
robertphillips@google.com [Mon, 30 Apr 2012 20:01:21 +0000 (20:01 +0000)]
Re-adding red texture support (by rolling back r3800)

http://code.google.com/p/skia/source/detail?r=3622 - for original review
http://crbug.com/125596 ('M20 windows renderer stability maze') - for issue

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

12 years agoshape ops work in progress
caryclark@google.com [Mon, 30 Apr 2012 19:38:50 +0000 (19:38 +0000)]
shape ops work in progress

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

12 years agoRoll back http://code.google.com/p/skia/source/detail?r=3622 to deal with http:/...
epoger@google.com [Mon, 30 Apr 2012 19:02:08 +0000 (19:02 +0000)]
Roll back code.google.com/p/skia/source/detail?r=3622 to deal with http://crbug.com/125596 ('M20 windows renderer stability maze')

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

12 years agoadd comment on return-value for SkTSearch
reed@google.com [Mon, 30 Apr 2012 17:17:21 +0000 (17:17 +0000)]
add comment on return-value for SkTSearch

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

12 years agocode-style cleanups only
reed@google.com [Mon, 30 Apr 2012 16:35:25 +0000 (16:35 +0000)]
code-style cleanups only

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

12 years agoadd tests for how empty regions should behave in intersects() and contains()
reed@google.com [Mon, 30 Apr 2012 16:28:04 +0000 (16:28 +0000)]
add tests for how empty regions should behave in intersects() and contains()
Review URL: https://codereview.appspot.com/6134053

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

12 years agojust coding style fixes, no logic change
reed@google.com [Mon, 30 Apr 2012 15:10:13 +0000 (15:10 +0000)]
just coding style fixes, no logic change
Review URL: https://codereview.appspot.com/6141043

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

12 years agomake name lower-case, to match all other benches
reed@google.com [Mon, 30 Apr 2012 14:43:46 +0000 (14:43 +0000)]
make name lower-case, to match all other benches

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

12 years agomust return a value
reed@google.com [Mon, 30 Apr 2012 13:54:36 +0000 (13:54 +0000)]
must return a value

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

12 years agoVariant of SkRegion::op (called Oper) that either writes the result into a 3rd
reed@google.com [Mon, 30 Apr 2012 13:29:02 +0000 (13:29 +0000)]
Variant of SkRegion::op (called Oper) that either writes the result into a 3rd
region (normal mode) or does a quick-return if the result will be non-empty
(called for predicates like contains() and intersects()).

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

12 years agorebaseline
reed@google.com [Mon, 30 Apr 2012 13:24:34 +0000 (13:24 +0000)]
rebaseline

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

12 years agorebaseline
reed@google.com [Mon, 30 Apr 2012 13:22:36 +0000 (13:22 +0000)]
rebaseline

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

12 years agoadd contains xy test, adjust number of rects (using xor this time)
reed@google.com [Mon, 30 Apr 2012 12:07:55 +0000 (12:07 +0000)]
add contains xy test, adjust number of rects (using xor this time)

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

12 years agoadd test for contains and intersects, in advance of optimization work
mike@reedtribe.org [Sat, 28 Apr 2012 20:09:19 +0000 (20:09 +0000)]
add test for contains and intersects, in advance of optimization work

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

12 years agoApply fix from #3739 to quads and cubics as well
reed@google.com [Fri, 27 Apr 2012 20:22:07 +0000 (20:22 +0000)]
Apply fix from #3739 to quads and cubics as well
Fixes http://code.google.com/p/chromium/issues/detail?id=125249
Review URL: https://codereview.appspot.com/6137046

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

12 years agoAddition of necessary flush to copyToTexturePixelRef(...).
twiz@google.com [Fri, 27 Apr 2012 19:39:33 +0000 (19:39 +0000)]
Addition of necessary flush to copyToTexturePixelRef(...).

Ganesh batches drawing operations, which means that the copy operation, which does not flush the pipeline, can capture stale contents.  By forcing a flush, the up-to-date version of the texture is copied.

TEST=none
BUG=124054
Review URL: https://codereview.appspot.com/6129043

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

12 years agoadd RegionBench, in preparation for speeding up intersects and contains for chrome
reed@google.com [Fri, 27 Apr 2012 19:29:52 +0000 (19:29 +0000)]
add RegionBench, in preparation for speeding up intersects and contains for chrome

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

12 years agoBumped num stages to 4 in preparation for AA clipping
robertphillips@google.com [Fri, 27 Apr 2012 18:59:52 +0000 (18:59 +0000)]
Bumped num stages to 4 in preparation for AA clipping

http://codereview.appspot.com/6135046/

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

12 years agoSome cleanup of GrResource
bsalomon@google.com [Fri, 27 Apr 2012 17:24:09 +0000 (17:24 +0000)]
Some cleanup of GrResource

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

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

12 years agoAdd SkString.contains()
epoger@google.com [Fri, 27 Apr 2012 17:11:31 +0000 (17:11 +0000)]
Add SkString.contains()
Review URL: https://codereview.appspot.com/6130046

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

12 years agoRemove GrPath typedef
bsalomon@google.com [Fri, 27 Apr 2012 15:52:53 +0000 (15:52 +0000)]
Remove GrPath typedef

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

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

12 years agoconvert float to SkScalar changes
robertphillips@google.com [Fri, 27 Apr 2012 15:39:52 +0000 (15:39 +0000)]
convert float to SkScalar changes

http://codereview.appspot.com/6071043/

Submitted on behalf of Guanqun.Lu@gmail.com

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

12 years agoInitial version of AA clip A8/R8 mask creation
robertphillips@google.com [Fri, 27 Apr 2012 14:29:26 +0000 (14:29 +0000)]
Initial version of AA clip A8/R8 mask creation

http://codereview.appspot.com/6104043/

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

12 years agoClamp requested MSAA sample count to GL_MAX_SAMPLES
bsalomon@google.com [Fri, 27 Apr 2012 14:25:44 +0000 (14:25 +0000)]
Clamp requested MSAA sample count to GL_MAX_SAMPLES

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

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

12 years agoRemove expired comment
bsalomon@google.com [Fri, 27 Apr 2012 14:09:22 +0000 (14:09 +0000)]
Remove expired comment

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

12 years agoFix trivial int->scalar warning introduced in r3772
bsalomon@google.com [Fri, 27 Apr 2012 13:55:29 +0000 (13:55 +0000)]
Fix trivial int->scalar warning introduced in r3772

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

12 years agoRebaseline from r3772
bsalomon@google.com [Fri, 27 Apr 2012 13:44:17 +0000 (13:44 +0000)]
Rebaseline from r3772

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

12 years agoClean up DashPathEffect modulo math from r3761
epoger@google.com [Fri, 27 Apr 2012 13:34:52 +0000 (13:34 +0000)]
Clean up DashPathEffect modulo math from r3761
Review URL: https://codereview.appspot.com/6124048

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

12 years agodraw circle paths directly via GPU
bsalomon@google.com [Fri, 27 Apr 2012 13:05:21 +0000 (13:05 +0000)]
draw circle paths directly via GPU

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

Submitted on behalf of Guanqun.Lu@gmail.com

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

12 years agoFixed minor c++ issues found by cppcheck
robertphillips@google.com [Fri, 27 Apr 2012 12:54:01 +0000 (12:54 +0000)]
Fixed minor c++ issues found by cppcheck

http://codereview.appspot.com/6127049/

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

12 years agoAllow building on platforms with SSE2 but not SSSE3 by adding an #ifdef.
tomhudson@google.com [Fri, 27 Apr 2012 12:52:51 +0000 (12:52 +0000)]
Allow building on platforms with SSE2 but not SSSE3 by adding an #ifdef.
Patch from Wei James (wistoch@gmail).

http://codereview.appspot.com/6124050/

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

12 years agoFirst portion of refactoring to bundle SW path rendering into GrPathRenderer
robertphillips@google.com [Fri, 27 Apr 2012 12:08:47 +0000 (12:08 +0000)]
First portion of refactoring to bundle SW path rendering into GrPathRenderer

http://codereview.appspot.com/6125046/

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

12 years agowork in progress
caryclark@google.com [Thu, 26 Apr 2012 21:01:06 +0000 (21:01 +0000)]
work in progress
in the middle of switching to sortless version

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

12 years agoGive GrGLProgramStage a virtual destructor
bsalomon@google.com [Wed, 25 Apr 2012 17:48:49 +0000 (17:48 +0000)]
Give GrGLProgramStage a virtual destructor

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

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

12 years agoFixed minor Release & fixed point compiler warnings on Linux
robertphillips@google.com [Wed, 25 Apr 2012 16:54:51 +0000 (16:54 +0000)]
Fixed minor Release & fixed point compiler warnings on Linux

http://codereview.appspot.com/6118050/

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

12 years agoRebaselines from r3764
bsalomon@google.com [Wed, 25 Apr 2012 16:45:48 +0000 (16:45 +0000)]
Rebaselines from r3764

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

12 years agoFixes matrix inconsistency in GPU draws with filters. Also adds a GM test.
bsalomon@google.com [Wed, 25 Apr 2012 15:52:27 +0000 (15:52 +0000)]
Fixes matrix inconsistency in GPU draws with filters. Also adds a GM test.

May make GM go red on bots, will rebaseline.

Committed on behalf of Guanqun.Lu@gmail.com

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

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

12 years agoMinor refactoring to remove duplicate enum from Ganesh (_SetOp -> SkRegion::Op)
robertphillips@google.com [Wed, 25 Apr 2012 15:23:36 +0000 (15:23 +0000)]
Minor refactoring to remove duplicate enum from Ganesh (_SetOp -> SkRegion::Op)

http://codereview.appspot.com/6116047/

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

12 years agoadd isSimilarityTransform() and some tests
bsalomon@google.com [Wed, 25 Apr 2012 15:07:40 +0000 (15:07 +0000)]
add isSimilarityTransform() and some tests

Committed on behalf of Guanqun.Lu@gmail.com

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

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

12 years agocheck for numerical imprecision on phase
reed@google.com [Tue, 24 Apr 2012 22:47:21 +0000 (22:47 +0000)]
check for numerical imprecision on phase
fixes http://code.google.com/p/chromium/issues/detail?id=124652

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

12 years agouse new storage parameter to SkOrderedWriteBuffer (to avoid small dynamic allocs)
reed@google.com [Tue, 24 Apr 2012 21:30:16 +0000 (21:30 +0000)]
use new storage parameter to SkOrderedWriteBuffer (to avoid small dynamic allocs)

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

12 years agoadd optional storage parameter to SkWriter32
reed@google.com [Tue, 24 Apr 2012 21:12:39 +0000 (21:12 +0000)]
add optional storage parameter to SkWriter32

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

12 years agoLand http://codereview.appspot.com/6117046/ for Guanqun.Lu@gmail.com
epoger@google.com [Tue, 24 Apr 2012 15:19:23 +0000 (15:19 +0000)]
Land codereview.appspot.com/6117046/ for Guanqun.Lu@gmail.com

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

12 years agoallow SkMutex* as an alternative arg to SkAutoMutexAcquire constructor
reed@google.com [Mon, 23 Apr 2012 16:04:22 +0000 (16:04 +0000)]
allow SkMutex* as an alternative arg to SkAutoMutexAcquire constructor

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

12 years agofix copy/paste error
reed@google.com [Mon, 23 Apr 2012 15:57:46 +0000 (15:57 +0000)]
fix copy/paste error

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

12 years agoadd SkTLS::Delete
reed@google.com [Mon, 23 Apr 2012 15:49:45 +0000 (15:49 +0000)]
add SkTLS::Delete

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

12 years agomove FontCacheLimit implementations into SkGlyphCache.cpp, in prep for TLS
reed@google.com [Mon, 23 Apr 2012 15:04:44 +0000 (15:04 +0000)]
move FontCacheLimit implementations into SkGlyphCache.cpp, in prep for TLS
Review URL: https://codereview.appspot.com/6110043

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

12 years agofix debug build
reed@google.com [Mon, 23 Apr 2012 14:09:38 +0000 (14:09 +0000)]
fix debug build

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

12 years agocleanups in prep for tls cache
reed@google.com [Mon, 23 Apr 2012 13:43:30 +0000 (13:43 +0000)]
cleanups in prep for tls cache
Review URL: https://codereview.appspot.com/6109045

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

12 years agoadd experimental tls (for font cache eventually)
reed@google.com [Mon, 23 Apr 2012 12:51:32 +0000 (12:51 +0000)]
add experimental tls (for font cache eventually)

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

12 years agowhitespace change to test buildbot changes in r3746
epoger@google.com [Fri, 20 Apr 2012 20:59:29 +0000 (20:59 +0000)]
whitespace change to test buildbot changes in r3746

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

12 years agoFix early termination of GM when 16x msaa rt can't be created.
bsalomon@google.com [Fri, 20 Apr 2012 19:08:44 +0000 (19:08 +0000)]
Fix early termination of GM when 16x msaa rt can't be created.

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

12 years agoFix the Android build.
scroggo@google.com [Fri, 20 Apr 2012 18:42:55 +0000 (18:42 +0000)]
Fix the Android build.

Use the correct macro for SkEmbossMaskFilter
Review URL: https://codereview.appspot.com/6081045

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

12 years agoHooks up the GrCustomStage/GrGLProgramStageFactory/GrGLProgramStage
tomhudson@google.com [Fri, 20 Apr 2012 18:35:38 +0000 (18:35 +0000)]
Hooks up the GrCustomStage/GrGLProgramStageFactory/GrGLProgramStage
classes from r3726 so they can be used. Does not implement any actual
effect stages.

Has one large known bug: if custom stages are provided, GrSamplerState
comparisons will break; this should preserve correct drawing, but decrease
performance - among other things, we'll break draw batching. To fix this
we'll need a RTTI system for GrCustomState objects, and we'll need to change
the GrSamplerState comparison from a memcmp to something that also does a
deep type-sensitive compare of any GrCustomState objects present.

http://codereview.appspot.com/6074043/

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

12 years agoFixes for drawing through an SkGPipe.
scroggo@google.com [Fri, 20 Apr 2012 17:39:51 +0000 (17:39 +0000)]
Fixes for drawing through an SkGPipe.

Implement SkGPipeCanvas::drawBitmap.

Fix a bug where needOpBytes did not necessarily provide as
many bytes as requested.

Fix a bug where needOpBytes would wipe old data without
calling notify.

Register SkEmbossMaskFilter so it can be flattened.

Override drawBitmapNine (currently unimplemented) so an
SkGPipeCanvas does not call its base class' method (which
would fail).
Review URL: https://codereview.appspot.com/6071045

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

12 years agoFix gdi assert that the font is not a vector FON font.
bungeman@google.com [Fri, 20 Apr 2012 15:26:28 +0000 (15:26 +0000)]
Fix gdi assert that the font is not a vector FON font.

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

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

12 years agoonly add pathmeasure segment if the accumulated length was actually changed,
reed@google.com [Fri, 20 Apr 2012 15:10:32 +0000 (15:10 +0000)]
only add pathmeasure segment if the accumulated length was actually changed,
and not based on if the local length was > 0. This is necessary since

    assert(delta > 0);  // true
    prevDistance = distance;
    distance += delta;
    assert(distance > prevDistance);    // not always true

Fixes https://bugs.webkit.org/show_bug.cgi?id=78979

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

12 years agoadd x() and y() aliases for fLeft and fTop (matching SkIRect)
reed@google.com [Thu, 19 Apr 2012 21:01:24 +0000 (21:01 +0000)]
add x() and y() aliases for fLeft and fTop (matching SkIRect)

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

12 years agoFix undefined GLint in Mac builds
bsalomon@google.com [Thu, 19 Apr 2012 19:27:19 +0000 (19:27 +0000)]
Fix undefined GLint in Mac builds

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