platform/upstream/libSkiaSharp.git
12 years agoMove coordDims, varyingDims onto GrGLShaderBuilder.
tomhudson@google.com [Mon, 14 May 2012 19:58:06 +0000 (19:58 +0000)]
Move coordDims, varyingDims onto GrGLShaderBuilder.

http://codereview.appspot.com/6201083/

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

12 years agoAttached ClipMaskManager to GPU resource freeing system
robertphillips@google.com [Mon, 14 May 2012 19:31:39 +0000 (19:31 +0000)]
Attached ClipMaskManager to GPU resource freeing system

http://codereview.appspot.com/6208058/

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

12 years agoFixes for Windows Release compiler complaints (overflow in const arith)
robertphillips@google.com [Mon, 14 May 2012 17:51:23 +0000 (17:51 +0000)]
Fixes for Windows Release compiler complaints (overflow in const arith)

http://codereview.appspot.com/6210056/

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

12 years agoCreated SW clip mask creation helper class (in GrSoftwarePathRenderer)
robertphillips@google.com [Mon, 14 May 2012 17:37:05 +0000 (17:37 +0000)]
Created SW clip mask creation helper class (in GrSoftwarePathRenderer)

http://codereview.appspot.com/6198070/

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

12 years agoDebug Windows compiler complaint fixes
robertphillips@google.com [Mon, 14 May 2012 16:33:36 +0000 (16:33 +0000)]
Debug Windows compiler complaint fixes

http://codereview.appspot.com/6208055/

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

12 years agoAndroid does not support pthread_cancel / pthread_testcancel.
bungeman@google.com [Mon, 14 May 2012 15:40:05 +0000 (15:40 +0000)]
Android does not support pthread_cancel / pthread_testcancel.

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

12 years agoImages for testing skdiff tool
epoger@google.com [Mon, 14 May 2012 15:38:57 +0000 (15:38 +0000)]
Images for testing skdiff tool
Review URL: https://codereview.appspot.com/6208056

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

12 years agoAdd bench and test for SkRefCnt.
bungeman@google.com [Mon, 14 May 2012 14:09:24 +0000 (14:09 +0000)]
Add bench and test for SkRefCnt.
http://codereview.appspot.com/6195071/

This also adds a cross platform SkThread for testing purposes.

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

12 years agoMade clip mask cache use Scratch Texture system
robertphillips@google.com [Mon, 14 May 2012 12:18:26 +0000 (12:18 +0000)]
Made clip mask cache use Scratch Texture system

http://codereview.appspot.com/6210044/

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

12 years agoupdate the nearly_integral calculation to be (a) faster, and (b) to correctly
reed@google.com [Fri, 11 May 2012 20:57:25 +0000 (20:57 +0000)]
update the nearly_integral calculation to be (a) faster, and (b) to correctly
identify that the AA granularity is 1/4 of a pixel, not 1/16 (along an axis).

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

12 years agoRemove a dead function and dead var that were incorrectly left in by previous partial...
bsalomon@google.com [Fri, 11 May 2012 20:50:53 +0000 (20:50 +0000)]
Remove a dead function and dead var that were incorrectly left in by previous partial-reverts

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

12 years agoRemove support for vertex attribute matrices
bsalomon@google.com [Fri, 11 May 2012 20:47:39 +0000 (20:47 +0000)]
Remove support for vertex attribute matrices

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

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

12 years agoExtract ShaderCodeSegments from GrGLProgram into a new class,
tomhudson@google.com [Fri, 11 May 2012 20:38:48 +0000 (20:38 +0000)]
Extract ShaderCodeSegments from GrGLProgram into a new class,
GrGLShaderBuilder. Begin populating its interface.

Requires gyp changes.

http://codereview.appspot.com/6197076/

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

12 years agoonly check for nearly-integral if we're a BW clip
reed@google.com [Fri, 11 May 2012 18:46:43 +0000 (18:46 +0000)]
only check for nearly-integral if we're a BW clip

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

12 years agoDiscard absurd values (and log warnings) when graphing bench results.
epoger@google.com [Fri, 11 May 2012 18:26:16 +0000 (18:26 +0000)]
Discard absurd values (and log warnings) when graphing bench results.

BUG=http://code.google.com/p/skia/issues/detail?id=596
Review URL: https://codereview.appspot.com/6197066

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

12 years agofix SK_RESTRICT warnings related to overrides on windows
reed@google.com [Fri, 11 May 2012 18:01:50 +0000 (18:01 +0000)]
fix SK_RESTRICT warnings related to overrides on windows

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

12 years agoRemove tesselated path renderer and supporting code, glu, and libtess target
bsalomon@google.com [Fri, 11 May 2012 17:32:43 +0000 (17:32 +0000)]
Remove tesselated path renderer and supporting code, glu, and libtess target

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

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

12 years agoSplit createAlphaClipMask in two to allow reuse with SW-only path
robertphillips@google.com [Fri, 11 May 2012 15:32:48 +0000 (15:32 +0000)]
Split createAlphaClipMask in two to allow reuse with SW-only path

http://codereview.appspot.com/6198065/

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

12 years agoadd dox for Shaders, and how the paint's alpha modulates the shader's colors.
reed@google.com [Fri, 11 May 2012 14:47:03 +0000 (14:47 +0000)]
add dox for Shaders, and how the paint's alpha modulates the shader's colors.

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

12 years agolazily make a copy of the paint when choosing a blitter. For simple draws,
reed@google.com [Fri, 11 May 2012 14:38:51 +0000 (14:38 +0000)]
lazily make a copy of the paint when choosing a blitter. For simple draws,
this is never actually needed, and it is faster to skip the copy.

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

12 years agoinline isEmpty and isRect (faster)
reed@google.com [Fri, 11 May 2012 14:36:57 +0000 (14:36 +0000)]
inline isEmpty and isRect (faster)

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

12 years agouse mapPoints instead of mapXY for the 2 corners of a rect (faster)
reed@google.com [Fri, 11 May 2012 14:35:23 +0000 (14:35 +0000)]
use mapPoints instead of mapXY for the 2 corners of a rect (faster)

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

12 years agoSet no rtti option to avoid warnings on Android.
djsollen@google.com [Fri, 11 May 2012 13:29:32 +0000 (13:29 +0000)]
Set no rtti option to avoid warnings on Android.

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

12 years agofix for r3903 compilation issue
robertphillips@google.com [Fri, 11 May 2012 13:01:16 +0000 (13:01 +0000)]
fix for r3903 compilation issue

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

12 years agoMade clip mask cache reuse depend on mask size/bounds (instead of render target size)
robertphillips@google.com [Fri, 11 May 2012 12:53:50 +0000 (12:53 +0000)]
Made clip mask cache reuse depend on mask size/bounds (instead of render target size)

http://codereview.appspot.com/6190067/

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

12 years agoFix for Android ClipCache unit test crash
robertphillips@google.com [Thu, 10 May 2012 21:26:48 +0000 (21:26 +0000)]
Fix for Android ClipCache unit test crash

http://codereview.appspot.com/6199063/

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

12 years agoReactivate SSSE3 optimizations, undoing r3770.
tomhudson@google.com [Thu, 10 May 2012 18:39:15 +0000 (18:39 +0000)]
Reactivate SSSE3 optimizations, undoing r3770.

This will break Android x86 clients; they will need to work around, and
hopefully can resubmit a patch to do so that doesn't disable SSSE3 on
all other platforms (20-30% performance penalty).

http://codereview.appspot.com/6201070/

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

12 years agoReverting r3898 due to Android failures
robertphillips@google.com [Thu, 10 May 2012 16:17:58 +0000 (16:17 +0000)]
Reverting r3898 due to Android failures

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

12 years agoUse a NDK-compliant way of reading locale.
djsollen@google.com [Thu, 10 May 2012 16:13:38 +0000 (16:13 +0000)]
Use a NDK-compliant way of reading locale.

Remove !SK_BUILD_FOR_ANDROID_NDK from locale-related code

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

12 years agoRe-enabling ClipCache unit test which now runs on Xoom w/ new tool chain
robertphillips@google.com [Thu, 10 May 2012 15:56:17 +0000 (15:56 +0000)]
Re-enabling ClipCache unit test which now runs on Xoom w/ new tool chain

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

12 years agoadd experimental variant of dashing, where we explicitly draw rects
reed@google.com [Thu, 10 May 2012 15:40:57 +0000 (15:40 +0000)]
add experimental variant of dashing, where we explicitly draw rects

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

12 years agoFixed GrContext.cpp Windows compiler complaints
robertphillips@google.com [Thu, 10 May 2012 15:11:27 +0000 (15:11 +0000)]
Fixed GrContext.cpp Windows compiler complaints

http://codereview.appspot.com/6198051/

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

12 years agoWarn if return values from SkRect's Make* methods are ignored
robertphillips@google.com [Thu, 10 May 2012 14:50:44 +0000 (14:50 +0000)]
Warn if return values from SkRect's Make* methods are ignored

http://codereview.appspot.com/6200060/

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

12 years agoadd SkPath::isLine(), similar to isRect()
reed@google.com [Thu, 10 May 2012 14:05:43 +0000 (14:05 +0000)]
add SkPath::isLine(), similar to isRect()

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

12 years agoremove (unused) reference to SkStrokePathEffect
reed@google.com [Thu, 10 May 2012 13:04:59 +0000 (13:04 +0000)]
remove (unused) reference to SkStrokePathEffect

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

12 years agomove SkStrokePathEffect into hiding for now, as its functionality is rethought.
reed@google.com [Thu, 10 May 2012 12:56:16 +0000 (12:56 +0000)]
move SkStrokePathEffect into hiding for now, as its functionality is rethought.

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

12 years agoWindows build fixes from r3887.
tomhudson@google.com [Thu, 10 May 2012 12:43:21 +0000 (12:43 +0000)]
Windows build fixes from r3887.

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

12 years agoAdded documentation of stage/TU allocation
robertphillips@google.com [Thu, 10 May 2012 12:40:40 +0000 (12:40 +0000)]
Added documentation of stage/TU allocation

http://codereview.appspot.com/6199058/

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

12 years agoMove convolution from code in GrGLProgram to new GrConvolutionEffect
tomhudson@google.com [Thu, 10 May 2012 12:13:36 +0000 (12:13 +0000)]
Move convolution from code in GrGLProgram to new GrConvolutionEffect
class. This is the first test of the new Ganesh shader pipeline.

Also includes some cleanup of the gpu.gyp file: added src/gpu, allowing
us to remove ../ from many #include directives.

http://codereview.appspot.com/6199053/

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

12 years agoDisabled new ClipCache unit test pending investigation of Android failures
robertphillips@google.com [Wed, 9 May 2012 21:47:03 +0000 (21:47 +0000)]
Disabled new ClipCache unit test pending investigation of Android failures

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

12 years agoAdded stack to AA clip mask cache
robertphillips@google.com [Wed, 9 May 2012 21:15:28 +0000 (21:15 +0000)]
Added stack to AA clip mask cache

http://codereview.appspot.com/6201058/

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

12 years ago[PDF] Ensure that filling single line paths (with no area) does not draw anything.
vandebo@chromium.org [Wed, 9 May 2012 17:17:51 +0000 (17:17 +0000)]
[PDF] Ensure that filling single line paths (with no area) does not draw anything.

Add a test to a gm to confirm the new behavior.

Fixes http://crbug.com/123072

Review URL: https://codereview.appspot.com/6137060

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

12 years agoDialed back complexity of nested clip bench to bring time down to a reasonable level
robertphillips@google.com [Wed, 9 May 2012 16:27:10 +0000 (16:27 +0000)]
Dialed back complexity of nested clip bench to bring time down to a reasonable level

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

12 years agorebaseline for MacPro after EXACT aa coverage change
reed@google.com [Wed, 9 May 2012 16:05:50 +0000 (16:05 +0000)]
rebaseline for MacPro after EXACT aa coverage change

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

12 years agorebaseline MacPro gm images from EXACT aa coverage change
reed@google.com [Wed, 9 May 2012 15:55:49 +0000 (15:55 +0000)]
rebaseline MacPro gm images from EXACT aa coverage change

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

12 years agoAdded new bench test for nested clips
robertphillips@google.com [Wed, 9 May 2012 15:48:31 +0000 (15:48 +0000)]
Added new bench test for nested clips

http://codereview.appspot.com/6199055/

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

12 years agorebaseline after switching to EXACT aa coverage
reed@google.com [Wed, 9 May 2012 15:19:00 +0000 (15:19 +0000)]
rebaseline after switching to EXACT aa coverage

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

12 years agocommented-out test for exact aa coverage
reed@google.com [Wed, 9 May 2012 15:04:11 +0000 (15:04 +0000)]
commented-out test for exact aa coverage

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

12 years agodon't define SK_USE_LEGACY_AA_COVERAGE, so that we can get the more exact
reed@google.com [Wed, 9 May 2012 14:33:02 +0000 (14:33 +0000)]
don't define SK_USE_LEGACY_AA_COVERAGE, so that we can get the more exact
coverage values (which also unifies our RLE and MASK supersampler results).

Chrome will want to define SK_USE_LEGACY_AA_COVERAGE for now, until it can
rebaseline its affected images.

A rebaseline of skia gm images will follow.

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

12 years agoinvert sense of conditional EXACT_COVERAGE, renaming to LEGACY_AA_COVERAGE
reed@google.com [Wed, 9 May 2012 14:07:34 +0000 (14:07 +0000)]
invert sense of conditional EXACT_COVERAGE, renaming to LEGACY_AA_COVERAGE

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

12 years agoremove obsolete comments
reed@google.com [Wed, 9 May 2012 14:01:03 +0000 (14:01 +0000)]
remove obsolete comments

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

12 years agoadd assert
reed@google.com [Wed, 9 May 2012 13:58:38 +0000 (13:58 +0000)]
add assert

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

12 years agoremove dead conditional
reed@google.com [Wed, 9 May 2012 13:48:50 +0000 (13:48 +0000)]
remove dead conditional
Review URL: https://codereview.appspot.com/6197065

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

12 years agoexperimental faster sort
reed@google.com [Wed, 9 May 2012 12:07:31 +0000 (12:07 +0000)]
experimental faster sort

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

12 years agoadd flag/hint to PlatformGetSpecific. If true, then the caller requires that
reed@google.com [Tue, 8 May 2012 21:45:03 +0000 (21:45 +0000)]
add flag/hint to PlatformGetSpecific. If true, then the caller requires that
the tls slot be allocated even if this is the first, to ensure that it can
later call PlatformSetSpecific. When this is false (which is most of the time)
the implementation may optimize by not even creating the slot, and just
returning null.

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

12 years agoallow SkAutoTUnref to be used syntactially as the object is refs
reed@google.com [Tue, 8 May 2012 18:08:49 +0000 (18:08 +0000)]
allow SkAutoTUnref to be used syntactially as the object is refs
Review URL: https://codereview.appspot.com/6189059

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

12 years agoCheck in lists of trybots that are appropriate to run in various circumstances.
epoger@google.com [Tue, 8 May 2012 15:26:58 +0000 (15:26 +0000)]
Check in lists of trybots that are appropriate to run in various circumstances.

Usage: gcl try --bot=$(svn cat http://skia.googlecode.com/svn/trunk/trybots_to_run/depsroll)
Review URL: https://codereview.appspot.com/6192060

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

12 years agoFixed some fixed point build Windows compiler complaints
robertphillips@google.com [Tue, 8 May 2012 13:15:37 +0000 (13:15 +0000)]
Fixed some fixed point build Windows compiler complaints

http://codereview.appspot.com/6197063/

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

12 years agomirror of https://codereview.appspot.com/6188054/
reed@google.com [Tue, 8 May 2012 12:14:22 +0000 (12:14 +0000)]
mirror of https://codereview.appspot.com/6188054/
fix double->float conversion warning

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

12 years agoComment improvements to GrGLInterface
bsalomon@google.com [Mon, 7 May 2012 21:45:48 +0000 (21:45 +0000)]
Comment improvements to GrGLInterface

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

12 years agoMove GL function prototype typdefs to a separate header
bsalomon@google.com [Mon, 7 May 2012 21:33:56 +0000 (21:33 +0000)]
Move GL function prototype typdefs to a separate header

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

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

12 years agoshape ops: more work in progress
caryclark@google.com [Mon, 7 May 2012 21:09:32 +0000 (21:09 +0000)]
shape ops: more work in progress

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

12 years agoremove unused ptr/len parameters from CreateTypeface
reed@google.com [Mon, 7 May 2012 21:06:55 +0000 (21:06 +0000)]
remove unused ptr/len parameters from CreateTypeface
Review URL: https://codereview.appspot.com/6201056

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

12 years agoshape ops work in progress
caryclark@google.com [Mon, 7 May 2012 20:49:36 +0000 (20:49 +0000)]
shape ops work in progress

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

12 years agomust include SkTLS.h
reed@google.com [Mon, 7 May 2012 20:28:00 +0000 (20:28 +0000)]
must include SkTLS.h

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

12 years agoimpl SkTLS for windows, refactoring to share code with pthread impl
reed@google.com [Mon, 7 May 2012 20:23:27 +0000 (20:23 +0000)]
impl SkTLS for windows, refactoring to share code with pthread impl

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

12 years agorevert TLS change (until we impl windows backend)
reed@google.com [Mon, 7 May 2012 19:27:18 +0000 (19:27 +0000)]
revert TLS change (until we impl windows backend)

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

12 years agoallow thread-local font cache
reed@google.com [Mon, 7 May 2012 19:12:04 +0000 (19:12 +0000)]
allow thread-local font cache
Review URL: https://codereview.appspot.com/6101053

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

12 years agomove more stuff that should be private out from GrGLConfig.h
bsalomon@google.com [Mon, 7 May 2012 19:10:52 +0000 (19:10 +0000)]
move more stuff that should be private out from GrGLConfig.h

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

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

12 years agoadd SkTQSort (stolen from cary's experimental work)
reed@google.com [Mon, 7 May 2012 18:10:15 +0000 (18:10 +0000)]
add SkTQSort (stolen from cary's experimental work)

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

12 years agoFirst pass at accelerating gpu-based AA clipping
robertphillips@google.com [Mon, 7 May 2012 18:07:36 +0000 (18:07 +0000)]
First pass at accelerating gpu-based AA clipping

http://codereview.appspot.com/6195051/

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

12 years agoHopefully fixes linux + mac build breaks from r3851 by adding missing include in...
bsalomon@google.com [Mon, 7 May 2012 17:38:49 +0000 (17:38 +0000)]
Hopefully fixes linux + mac build breaks from r3851 by adding missing include in SkMesaGLContext.cpp.

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

12 years agoMake GrGLDefines.h be a private header
bsalomon@google.com [Mon, 7 May 2012 17:28:41 +0000 (17:28 +0000)]
Make GrGLDefines.h be a private header

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

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

12 years agoremove incorrect include
bsalomon@google.com [Mon, 7 May 2012 17:15:08 +0000 (17:15 +0000)]
remove incorrect include

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

12 years agoMove function decls and macros out of public headers that are meant for internal...
bsalomon@google.com [Mon, 7 May 2012 17:09:37 +0000 (17:09 +0000)]
Move function decls and macros out of public headers that are meant for internal use.

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

12 years agouse std qsort instead of our (now gone) version
reed@google.com [Mon, 7 May 2012 15:04:18 +0000 (15:04 +0000)]
use std qsort instead of our (now gone) version

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

12 years agoJust use std qsort
reed@google.com [Mon, 7 May 2012 14:52:12 +0000 (14:52 +0000)]
Just use std qsort
Review URL: https://codereview.appspot.com/6195052

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

12 years agomake CanNormalize inline for the float build (big speedup for PathIter)
reed@google.com [Mon, 7 May 2012 13:51:05 +0000 (13:51 +0000)]
make CanNormalize inline for the float build (big speedup for PathIter)

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

12 years agoadd bench for SkPath::Iter and SkPath::RawIter
reed@google.com [Mon, 7 May 2012 13:46:32 +0000 (13:46 +0000)]
add bench for SkPath::Iter and SkPath::RawIter

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

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