platform/upstream/libSkiaSharp.git
12 years agodownload_baselines.py : only set svn properties of files whose content has changed
epoger@google.com [Tue, 22 May 2012 19:14:01 +0000 (19:14 +0000)]
download_baselines.py : only set svn properties of files whose content has changed

and while I was at it, sort the filenames before acting on them, to make the output easier to read

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

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

12 years agoMinor tweaks to SW-only clip mask generation logic
robertphillips@google.com [Tue, 22 May 2012 18:09:26 +0000 (18:09 +0000)]
Minor tweaks to SW-only clip mask generation logic

http://codereview.appspot.com/6218064/

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

12 years agoshape ops work in progress
caryclark@google.com [Tue, 22 May 2012 17:01:14 +0000 (17:01 +0000)]
shape ops work in progress

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

12 years agoCommit comment change that was supposed to go into r4024 but wasn't because I forgot...
bsalomon@google.com [Tue, 22 May 2012 15:44:03 +0000 (15:44 +0000)]
Commit comment change that was supposed to go into r4024 but wasn't because I forgot to save.

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

12 years agoAdd to skdiff: test images for bitwise equality before testing for pixel-wise equality
epoger@google.com [Tue, 22 May 2012 13:45:35 +0000 (13:45 +0000)]
Add to skdiff: test images for bitwise equality before testing for pixel-wise equality

- we now check for bitwise equality of files before bothering with pixel
  comparisons (this will help with formats for which we don't have good
  decoders, like PDF)
- unparsable files are now reported as differing, unless they are bitwise equal
  (before, they were always reported as matching!)
- "largest area mismatch" is now based on same-size image pairs only;
  previously, if any image pairs had mismatching size, it was 100%
- removed repetitive "image size mismatch, so no diff to display" messages
- changed format of leftmost table cells to be more readable

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

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

12 years agoWhite space change
robertphillips@google.com [Tue, 22 May 2012 12:59:59 +0000 (12:59 +0000)]
White space change

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

12 years agoConverted AAClips SampleApp slide to GM:simpleaaclip
robertphillips@google.com [Tue, 22 May 2012 12:14:50 +0000 (12:14 +0000)]
Converted AAClips SampleApp slide to GM:simpleaaclip

http://codereview.appspot.com/6220043/

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

12 years agoKill GrGpuGL::fHWDrawState
bsalomon@google.com [Mon, 21 May 2012 22:15:46 +0000 (22:15 +0000)]
Kill GrGpuGL::fHWDrawState

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

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

12 years agoChanges accidentally omitted from 4022.
bsalomon@google.com [Mon, 21 May 2012 21:44:59 +0000 (21:44 +0000)]
Changes accidentally omitted from 4022.

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

12 years agoStop Tracking const vertex attrib color and coverage using GrDrawState
bsalomon@google.com [Mon, 21 May 2012 21:40:12 +0000 (21:40 +0000)]
Stop Tracking const vertex attrib color and coverage using GrDrawState

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

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

12 years agoStop using GrDrawState to track stencil state
bsalomon@google.com [Mon, 21 May 2012 21:19:58 +0000 (21:19 +0000)]
Stop using GrDrawState to track stencil state

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

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

12 years agoRename GrProgramStageFactory::stageKey to GrProgramStageFactory::glStageKey since...
bsalomon@google.com [Mon, 21 May 2012 21:18:13 +0000 (21:18 +0000)]
Rename GrProgramStageFactory::stageKey to GrProgramStageFactory::glStageKey since it is GL-specific

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

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

12 years agoTunnel name requests through factory, forcing custom effect and custom prog stage...
bsalomon@google.com [Mon, 21 May 2012 20:57:59 +0000 (20:57 +0000)]
Tunnel name requests through factory, forcing custom effect and custom prog stage to use same impl

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

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

12 years agoWhen GL context is reset set some desktop-only GL state to values that we assume...
bsalomon@google.com [Mon, 21 May 2012 20:14:29 +0000 (20:14 +0000)]
When GL context is reset set some desktop-only GL state to values that we assume later.

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

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

12 years agoupdate dox for NewFromMalloc() to clarify ownership
reed@google.com [Mon, 21 May 2012 20:00:39 +0000 (20:00 +0000)]
update dox for NewFromMalloc() to clarify ownership

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

12 years agoRebaseline from r4015. Also set PNG mime type on recently added images that were...
bsalomon@google.com [Mon, 21 May 2012 19:17:17 +0000 (19:17 +0000)]
Rebaseline from r4015. Also set PNG mime type on recently added images that were marked octet-stream.

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

12 years agoUse tristate in HW AA tracking, fix msaa disabled for non-smoothed lines bug
bsalomon@google.com [Mon, 21 May 2012 17:11:44 +0000 (17:11 +0000)]
Use tristate in HW AA tracking, fix msaa disabled for non-smoothed lines bug

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

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

12 years agoremove bogus nearlyzero checks
reed@google.com [Mon, 21 May 2012 16:47:43 +0000 (16:47 +0000)]
remove bogus nearlyzero checks
Review URL: https://codereview.appspot.com/6213060

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

12 years agoStop using GrDrawState to track bound textures and render target
bsalomon@google.com [Mon, 21 May 2012 15:33:09 +0000 (15:33 +0000)]
Stop using GrDrawState to track bound textures and render target

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

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

12 years agoMake static const var that is only used in an assert be defined in the debug build...
bsalomon@google.com [Mon, 21 May 2012 15:31:00 +0000 (15:31 +0000)]
Make static const var that is only used in an assert be defined in the debug build only to suppress an unused var warning.

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

12 years ago~glyphcache_globals needs to actually delete its cache
reed@google.com [Mon, 21 May 2012 15:29:27 +0000 (15:29 +0000)]
~glyphcache_globals needs to actually delete its cache

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

12 years agoadd
reed@google.com [Mon, 21 May 2012 15:27:23 +0000 (15:27 +0000)]
add

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

12 years agoStop using GrDrawState to track draw face, dither, and color mask
bsalomon@google.com [Mon, 21 May 2012 14:45:49 +0000 (14:45 +0000)]
Stop using GrDrawState to track draw face, dither, and color mask

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

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

12 years agoFix assignment of non-copyable.
bungeman@google.com [Mon, 21 May 2012 13:46:13 +0000 (13:46 +0000)]
Fix assignment of non-copyable.

see http://connect.microsoft.com/VisualStudio/feedback/details/552586/inherting-noncopyable-base-allows-equal-sign-initialization

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

12 years agoStop using GrDrawState to track GPU's blend state
bsalomon@google.com [Mon, 21 May 2012 13:21:46 +0000 (13:21 +0000)]
Stop using GrDrawState to track GPU's blend state

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

12 years agoshape ops work in progress
caryclark@google.com [Fri, 18 May 2012 20:50:33 +0000 (20:50 +0000)]
shape ops work in progress

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

12 years agoRemove chromium mode from skdiff, because it is no longer actively used.
epoger@google.com [Fri, 18 May 2012 20:10:06 +0000 (20:10 +0000)]
Remove chromium mode from skdiff, because it is no longer actively used.
Ran tools/tests/run.sh to validate this change.

TBR=caryclark1
Review URL: https://codereview.appspot.com/6222045

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

12 years agofix build?
bsalomon@google.com [Fri, 18 May 2012 20:06:45 +0000 (20:06 +0000)]
fix build?

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

12 years agoSome refactoring of GrCustomStage and friends
bsalomon@google.com [Fri, 18 May 2012 19:54:48 +0000 (19:54 +0000)]
Some refactoring of GrCustomStage and friends

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

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

12 years agoFix obviously disallowed copy that Visual Studio allows.
bungeman@google.com [Fri, 18 May 2012 19:12:21 +0000 (19:12 +0000)]
Fix obviously disallowed copy that Visual Studio allows.

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

12 years agoCreateTypefaceFromStream for GDI.
bungeman@google.com [Fri, 18 May 2012 19:06:41 +0000 (19:06 +0000)]
CreateTypefaceFromStream for GDI.
http://codereview.appspot.com/5616047/

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

12 years agoadd makedash_ variants to measure applying the dash (not drawing it)
reed@google.com [Fri, 18 May 2012 18:32:54 +0000 (18:32 +0000)]
add makedash_ variants to measure applying the dash (not drawing it)

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

12 years agoskdiff test-only change: add test of --nodiffs mode, make tests validate return value
epoger@google.com [Fri, 18 May 2012 18:25:26 +0000 (18:25 +0000)]
skdiff test-only change: add test of --nodiffs mode, make tests validate return value
Review URL: https://codereview.appspot.com/6206085

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

12 years agoadd baselines
reed@google.com [Fri, 18 May 2012 18:01:05 +0000 (18:01 +0000)]
add baselines

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

12 years agoadd dashing2 gm to exercise dashing on curves and polygons
reed@google.com [Fri, 18 May 2012 17:59:08 +0000 (17:59 +0000)]
add dashing2 gm to exercise dashing on curves and polygons

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

12 years agoMove state onto GrGLShaderBuilder, to let us implement mappings
tomhudson@google.com [Fri, 18 May 2012 14:57:40 +0000 (14:57 +0000)]
Move state onto GrGLShaderBuilder, to let us implement mappings
as GrCustomStage objects.

http://codereview.appspot.com/6216057/

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

12 years agotest-only change: update run.sh and rearrange dirs to ease addition of more tests
epoger@google.com [Thu, 17 May 2012 17:12:38 +0000 (17:12 +0000)]
test-only change: update run.sh and rearrange dirs to ease addition of more tests
Review URL: https://codereview.appspot.com/6220044

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

12 years agoFix type errors and a few warnings for Visual Studio 2010 64-bit build.
tomhudson@google.com [Thu, 17 May 2012 15:38:00 +0000 (15:38 +0000)]
Fix type errors and a few warnings for Visual Studio 2010 64-bit build.
We're still far from 64b statically safe, mostly around SkReader32.h
and the address-alignment code in GrTypes.h.
Original code provided by jianliang79.

http://code.google.com/p/skia/issues/detail?id=601

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

12 years agominor cleanups, in prep for more work on improving precision
reed@google.com [Thu, 17 May 2012 15:31:43 +0000 (15:31 +0000)]
minor cleanups, in prep for more work on improving precision

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

12 years agoadd options to enable/disable "FAILED to read ..." message
reed@google.com [Thu, 17 May 2012 15:28:20 +0000 (15:28 +0000)]
add options to enable/disable "FAILED to read ..." message

--disable-missing-warning
--enable-missing-warning

default is still enabled

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

12 years agoUse intrinsics instead of inline assembly for detecting CPU ID & SSE2/3 support
tomhudson@google.com [Thu, 17 May 2012 15:09:17 +0000 (15:09 +0000)]
Use intrinsics instead of inline assembly for detecting CPU ID & SSE2/3 support
on 64-bit builds in MS Visual Studio 2010.
Original code provided by jianliang79.

http://code.google.com/p/skia/issues/detail?id=600

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

12 years agoreuse() is no longer available, call reset()
reed@google.com [Thu, 17 May 2012 14:29:39 +0000 (14:29 +0000)]
reuse() is no longer available, call reset()

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

12 years agochange SkChunkAlloc to grow its allocations geometrically (not linearly)
reed@google.com [Thu, 17 May 2012 14:28:11 +0000 (14:28 +0000)]
change SkChunkAlloc to grow its allocations geometrically (not linearly)
plus add a bench and unittest for it.

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

12 years agomove Release build to -O3 (from -O2)
reed@google.com [Thu, 17 May 2012 13:58:26 +0000 (13:58 +0000)]
move Release build to -O3 (from -O2)

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

12 years agochange SetTLSFontCacheLimit to be void, since it doesn't easily know the prev value
reed@google.com [Thu, 17 May 2012 13:50:36 +0000 (13:50 +0000)]
change SetTLSFontCacheLimit to be void, since it doesn't easily know the prev value

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

12 years agoAllow font-cache to use thread_local_storage for a private cache
reed@google.com [Thu, 17 May 2012 13:38:03 +0000 (13:38 +0000)]
Allow font-cache to use thread_local_storage for a private cache
Review URL: https://codereview.appspot.com/6200051

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

12 years agoMutexes in pixelrefs were done very sloppily initially. The code (a) assumes all
reed@google.com [Thu, 17 May 2012 13:14:52 +0000 (13:14 +0000)]
Mutexes in pixelrefs were done very sloppily initially. The code (a) assumes all
pixelref subclasses want a mutex to guard their lock/unlock virtuals, and (b)
most subclasses use the same mutex for *all* of their instances, even when there
is no explicit need to guard modifying one instances with another.

When we try drawing bitmaps from multiple threads, we are seeing a lot of slow-
down from these mutexes. This CL has two changes to try to speed things up.

1. Add setPreLocked(), for pixelrefs who never need the onLockPixels
virtual to be called. This speeds up those subclasses in multithreaded environs
as it avoids the mutex lock all together (e.g. SkMallocPixelRef).

2. Add setMutex() to allow a subclass to change the mutex choice. ashmem wants
this, since its unflattening constructor cannot pass down the null, it needs
to cleanup afterwards.
Review URL: https://codereview.appspot.com/6199075

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

12 years agoFirst functioning version of SW-only clip mask creator
robertphillips@google.com [Thu, 17 May 2012 12:20:22 +0000 (12:20 +0000)]
First functioning version of SW-only clip mask creator

http://codereview.appspot.com/6208072/

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

12 years agoFree cached AA clip mask when create hard/stencil clip mask
robertphillips@google.com [Thu, 17 May 2012 12:01:02 +0000 (12:01 +0000)]
Free cached AA clip mask when create hard/stencil clip mask

http://codereview.appspot.com/6214050/

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

12 years agoAdd 'inline' to suppress unused warnings with Android NDK build.
bungeman@google.com [Wed, 16 May 2012 20:37:39 +0000 (20:37 +0000)]
Add 'inline' to suppress unused warnings with Android NDK build.

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

12 years agocomputeFastStrokeBounds needs to pass kStroke_Style instead of kFill_Style (ya think?)
reed@google.com [Wed, 16 May 2012 19:21:12 +0000 (19:21 +0000)]
computeFastStrokeBounds needs to pass kStroke_Style instead of kFill_Style (ya think?)

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

12 years agopass the region-op to the clipstack for SkCanvas::clipRegion.
reed@google.com [Wed, 16 May 2012 18:50:40 +0000 (18:50 +0000)]
pass the region-op to the clipstack for SkCanvas::clipRegion.
we were defaulting to intersect all the time (doh).

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

12 years agoFix new atomic declarations for Android.
bungeman@google.com [Wed, 16 May 2012 18:37:31 +0000 (18:37 +0000)]
Fix new atomic declarations for Android.

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

12 years agoWeakRefCnt
bungeman@google.com [Wed, 16 May 2012 18:21:56 +0000 (18:21 +0000)]
WeakRefCnt
http://codereview.appspot.com/5649046/

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

12 years agotest-only changes: add more image files to test more skdiff behavior
epoger@google.com [Wed, 16 May 2012 18:06:54 +0000 (18:06 +0000)]
test-only changes: add more image files to test more skdiff behavior

Tests output order for very vs. slightly different pixels, very vs. slightly different image sizes, etc.

TBR=tomhudson@google.com
Review URL: https://codereview.appspot.com/6213049

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

12 years agoremove unused variable (isNaN)
reed@google.com [Wed, 16 May 2012 17:56:09 +0000 (17:56 +0000)]
remove unused variable (isNaN)

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

12 years agoskdiff: only write out diff images that are included in index.html
epoger@google.com [Wed, 16 May 2012 17:40:57 +0000 (17:40 +0000)]
skdiff: only write out diff images that are included in index.html

Not only are those files unnecessary, in some different-image-size cases, their contents are nondeterministic!
Review URL: https://codereview.appspot.com/6208073

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

12 years agoIter::next takes a bool (defaults to true for now) if we want to consume degenerates.
reed@google.com [Wed, 16 May 2012 17:16:46 +0000 (17:16 +0000)]
Iter::next takes a bool (defaults to true for now) if we want to consume degenerates.
path-filling and stroking pass false, as they already are written to handle
small segments (and it makes next() run 2x faster if you pass false).
Review URL: https://codereview.appspot.com/6214049

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

12 years agoMake skdiff use enumeration of result types instead of separate booleans for each...
epoger@google.com [Wed, 16 May 2012 14:57:28 +0000 (14:57 +0000)]
Make skdiff use enumeration of result types instead of separate booleans for each result type.

This is one step on the way to a more robust version of skdiff that we can use to address http://code.google.com/p/skia/issues/detail?id=473 ('PDF gradtext gm image results are nondeterministic')

I have confirmed that skdiff results will not change, using tools/tests/run.sh.
Review URL: https://codereview.appspot.com/6208063

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

12 years agoDisable SSSE3 for Android x86 *ONLY*.
tomhudson@google.com [Wed, 16 May 2012 14:19:46 +0000 (14:19 +0000)]
Disable SSSE3 for Android x86 *ONLY*.
First attempt to do this inadvertently turned it off for everyone;
watch performance numbers. New benchmarks from r3963 should give us
coverage.

http://codereview.appspot.com/6198069/

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

12 years agocan't make the compute-bounds methods private yet :(
reed@google.com [Wed, 16 May 2012 14:15:02 +0000 (14:15 +0000)]
can't make the compute-bounds methods private yet :(

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

12 years agoperform quickReject in drawPoints (which is called by drawLine) just like we
reed@google.com [Wed, 16 May 2012 14:06:02 +0000 (14:06 +0000)]
perform quickReject in drawPoints (which is called by drawLine) just like we
already did in drawRect and drawPath

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

12 years agospeedup SkRect::isFinite() (almost 2x)
reed@google.com [Wed, 16 May 2012 13:35:36 +0000 (13:35 +0000)]
speedup SkRect::isFinite() (almost 2x)
add SkRect:set(p0, p1) for quick bounds of 2 points

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

12 years agoupdate dox for copy-constructor
reed@google.com [Wed, 16 May 2012 13:04:22 +0000 (13:04 +0000)]
update dox for copy-constructor

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

12 years agoAdded baseline golden master images for nexus s.
chudy@google.com [Tue, 15 May 2012 20:55:52 +0000 (20:55 +0000)]
Added baseline golden master images for nexus s.
Review URL: https://codereview.appspot.com/6209068

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

12 years agoadd computeFastBounds to SkPathEffect, so we can attempt quickReject
reed@google.com [Tue, 15 May 2012 20:47:50 +0000 (20:47 +0000)]
add computeFastBounds to SkPathEffect, so we can attempt quickReject
Review URL: https://codereview.appspot.com/6209070

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

12 years agoAdd (8) more benchmarks to capture performance of a pair of blit optimization
tomhudson@google.com [Tue, 15 May 2012 20:09:33 +0000 (20:09 +0000)]
Add (8) more benchmarks to capture performance of a pair of blit optimization
procs.

http://codereview.appspot.com/6209064/

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

12 years agoAdding baseline images for new complexclip2 variants and samplerstress GM
robertphillips@google.com [Tue, 15 May 2012 19:51:48 +0000 (19:51 +0000)]
Adding baseline images for new complexclip2 variants and samplerstress GM

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

12 years agoadd clipped case for dashing to exercise quickReject
reed@google.com [Tue, 15 May 2012 19:50:58 +0000 (19:50 +0000)]
add clipped case for dashing to exercise quickReject

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

12 years agoupdate dox for measureText
reed@google.com [Tue, 15 May 2012 19:25:17 +0000 (19:25 +0000)]
update dox for measureText

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

12 years agoupdate baseline
reed@google.com [Tue, 15 May 2012 19:03:36 +0000 (19:03 +0000)]
update baseline

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

12 years agoadd new images for new test
reed@google.com [Tue, 15 May 2012 18:55:31 +0000 (18:55 +0000)]
add new images for new test

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

12 years agorebaseline after 3943
reed@google.com [Tue, 15 May 2012 18:53:52 +0000 (18:53 +0000)]
rebaseline after 3943

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

12 years agoUpdating complexclip2 baseline images in response to r3943
robertphillips@google.com [Tue, 15 May 2012 18:20:20 +0000 (18:20 +0000)]
Updating complexclip2 baseline images in response to r3943

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

12 years agomake "Partial pixel coverage will be incorrectly blended" debug message conditional
reed@google.com [Tue, 15 May 2012 18:05:50 +0000 (18:05 +0000)]
make "Partial pixel coverage will be incorrectly blended" debug message conditional

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

12 years agoremove null-check in SKPath::Iter::next() -- not needed, and slows us down a little
reed@google.com [Tue, 15 May 2012 17:05:38 +0000 (17:05 +0000)]
remove null-check in SKPath::Iter::next() -- not needed, and slows us down a little

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

12 years agoUpdated AAClips Sample slide and complexclip2 GM to exercise AA clipping
robertphillips@google.com [Tue, 15 May 2012 17:03:16 +0000 (17:03 +0000)]
Updated AAClips Sample slide and complexclip2 GM to exercise AA clipping

http://codereview.appspot.com/6212047/

will require image rebaselining

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

12 years agoConvert AAClipCache's GrRects to GrIRects
robertphillips@google.com [Tue, 15 May 2012 16:47:23 +0000 (16:47 +0000)]
Convert AAClipCache's GrRects to GrIRects

http://codereview.appspot.com/6210057/

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

12 years agofor scalar==float, tis faster to always to MIN and MAX, than to put an ELSE
reed@google.com [Tue, 15 May 2012 15:12:29 +0000 (15:12 +0000)]
for scalar==float, tis faster to always to MIN and MAX, than to put an ELSE
betwixt them.

    if (x < min) min = x; else if (x > max) max = x;

This expression forces the compiler to know if the min expression executed, and
insert a conditional jump before the max. Slow.

    if (x < min) min = x; if (x > max) max = x;

This version allows the compiler to emitt MINSS and MAXSS unconditionally, giving
us a loop with zero branches inside.

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

12 years agoAdd self-test for skdiff, and remove date/time from skdiff output so it passes.
epoger@google.com [Tue, 15 May 2012 14:58:53 +0000 (14:58 +0000)]
Add self-test for skdiff, and remove date/time from skdiff output so it passes.

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

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

12 years agofix Fixed build
reed@google.com [Tue, 15 May 2012 14:32:42 +0000 (14:32 +0000)]
fix Fixed build

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

12 years agoUse x*0 instead of x!=x to detect non-finite values, since x*0 also detects infinities
reed@google.com [Tue, 15 May 2012 14:17:36 +0000 (14:17 +0000)]
Use x*0 instead of x!=x to detect non-finite values, since x*0 also detects infinities
and it is faster (at least faster in SkRect::set).

Add unittest for SkRect::set to see that it correctly detects NaN and infinities.

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

12 years agoadd test for computing the bounds of an array of points (SkRect::set)
reed@google.com [Tue, 15 May 2012 14:14:04 +0000 (14:14 +0000)]
add test for computing the bounds of an array of points (SkRect::set)

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

12 years agopre allocate space for the result (guesstimation) so we don't spend extra time
reed@google.com [Tue, 15 May 2012 13:33:57 +0000 (13:33 +0000)]
pre allocate space for the result (guesstimation) so we don't spend extra time
re-growing while we build the stroke.

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

12 years agoinline the fast case for AutoDrawLoop::next() so we don't slow down simple
reed@google.com [Tue, 15 May 2012 13:24:09 +0000 (13:24 +0000)]
inline the fast case for AutoDrawLoop::next() so we don't slow down simple
draws like drawRect (with no fancy effects)

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

12 years agospecial-case filling narrow rects, where we can be faster than the SSE2 asm
reed@google.com [Tue, 15 May 2012 13:07:48 +0000 (13:07 +0000)]
special-case filling narrow rects, where we can be faster than the SSE2 asm

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

12 years agoMinor refactoring/enhancement of GrSWMaskHelper to prepare for wider use
robertphillips@google.com [Tue, 15 May 2012 12:10:05 +0000 (12:10 +0000)]
Minor refactoring/enhancement of GrSWMaskHelper to prepare for wider use

http://codereview.appspot.com/6188082/

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

12 years agoRename tests/images dir as tests/skdiff
epoger@google.com [Mon, 14 May 2012 20:19:42 +0000 (20:19 +0000)]
Rename tests/images dir as tests/skdiff

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

12 years agoFix warnings in GrGLInterface mac setup, ignoring proc addr returns. There should...
bsalomon@google.com [Mon, 14 May 2012 20:08:39 +0000 (20:08 +0000)]
Fix warnings in GrGLInterface mac setup, ignoring proc addr returns. There should be no functional change as these all return NULL on 10.6 and 10.7.

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

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