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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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