vandebo@chromium.org [Wed, 8 Feb 2012 17:01:54 +0000 (17:01 +0000)]
Add SK_API to SkTableColorFilter
Patch from dmazzoni@chromium.org original CL: http://codereview.appspot.com/5645055/
Review URL: https://codereview.appspot.com/5642060
git-svn-id: http://skia.googlecode.com/svn/trunk@3153
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 7 Feb 2012 22:10:51 +0000 (22:10 +0000)]
work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3151
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 7 Feb 2012 21:30:21 +0000 (21:30 +0000)]
Add more TT table definitions and create fake enum typedef.
git-svn-id: http://skia.googlecode.com/svn/trunk@3150
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 7 Feb 2012 21:25:33 +0000 (21:25 +0000)]
store luminance in a new field
Review URL: https://codereview.appspot.com/5644047
git-svn-id: http://skia.googlecode.com/svn/trunk@3149
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 7 Feb 2012 20:47:38 +0000 (20:47 +0000)]
Move SkBase64 to utils, allow user defined encoding.
git-svn-id: http://skia.googlecode.com/svn/trunk@3148
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Tue, 7 Feb 2012 16:27:57 +0000 (16:27 +0000)]
Fixing backing store access in SkDeferredCanvas.
Chromium CL required for rolling skia DEPS past this change is posted here: https://chromiumcodereview.appspot.com/9341003/
BUG=http://code.google.com/p/skia/issues/detail?id=475
REVIEW=http://codereview.appspot.com/5626047/
TEST=DeferredCanvas unit test
git-svn-id: http://skia.googlecode.com/svn/trunk@3147
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 7 Feb 2012 16:06:47 +0000 (16:06 +0000)]
Reland 3144 with assertion fix.
git-svn-id: http://skia.googlecode.com/svn/trunk@3146
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 7 Feb 2012 15:57:36 +0000 (15:57 +0000)]
revert 3144
git-svn-id: http://skia.googlecode.com/svn/trunk@3145
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 7 Feb 2012 15:44:39 +0000 (15:44 +0000)]
Allow chrome to limit the number of FBO status checks
Review URL: https://codereview.appspot.com/5635052
git-svn-id: http://skia.googlecode.com/svn/trunk@3144
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 6 Feb 2012 19:05:51 +0000 (19:05 +0000)]
use macro SkFixedRoundToInt where necessary
http://codereview.appspot.com/5617047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3142
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Fri, 3 Feb 2012 22:07:47 +0000 (22:07 +0000)]
save work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3141
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Fri, 3 Feb 2012 18:32:38 +0000 (18:32 +0000)]
Removing some dead code in SkDeferredCanvas
REVIEW=http://codereview.appspot.com/5620062/
git-svn-id: http://skia.googlecode.com/svn/trunk@3140
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 3 Feb 2012 14:32:34 +0000 (14:32 +0000)]
Improve default behavior of compare-baselines script.
Now it can typically be called without any command-line arguments.
Review URL: https://codereview.appspot.com/5615057
git-svn-id: http://skia.googlecode.com/svn/trunk@3139
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 2 Feb 2012 20:50:36 +0000 (20:50 +0000)]
Make skdiff always generate white diffs alongside actual pixel diffs
(and some associated improvement to the output)
Review URL: https://codereview.appspot.com/5616059
git-svn-id: http://skia.googlecode.com/svn/trunk@3138
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 2 Feb 2012 20:41:45 +0000 (20:41 +0000)]
Disable optimization of certain bit-shift operations on Visual Studio 2010 only
to address http://code.google.com/p/skia/issues/detail?id=472
Review URL: https://codereview.appspot.com/5607058
git-svn-id: http://skia.googlecode.com/svn/trunk@3137
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 2 Feb 2012 19:53:13 +0000 (19:53 +0000)]
add baselines for macpro
git-svn-id: http://skia.googlecode.com/svn/trunk@3136
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 2 Feb 2012 19:33:08 +0000 (19:33 +0000)]
rearrange functions to group clamp, repeat, mirror helpers together.
git-svn-id: http://skia.googlecode.com/svn/trunk@3135
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 2 Feb 2012 19:25:03 +0000 (19:25 +0000)]
add baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@3134
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 2 Feb 2012 19:23:35 +0000 (19:23 +0000)]
add baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@3133
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 2 Feb 2012 19:20:41 +0000 (19:20 +0000)]
rebaseline following rev. 3126 "dithering 32bit radial gradients"
git-svn-id: http://skia.googlecode.com/svn/trunk@3132
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 2 Feb 2012 19:15:21 +0000 (19:15 +0000)]
Open type table definitions.
http://codereview.appspot.com/5577064/
git-svn-id: http://skia.googlecode.com/svn/trunk@3131
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 2 Feb 2012 18:39:40 +0000 (18:39 +0000)]
Delete download-baselines-old script, we don't need it anymore.
Review URL: https://codereview.appspot.com/5615047
git-svn-id: http://skia.googlecode.com/svn/trunk@3130
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 2 Feb 2012 17:38:01 +0000 (17:38 +0000)]
Update new baselines for dithered radial gradients (r3126)
after visual review.
git-svn-id: http://skia.googlecode.com/svn/trunk@3129
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 2 Feb 2012 16:49:49 +0000 (16:49 +0000)]
Create compare-baselines tool to compare locally generated and checked-in GMs.
Review URL: https://codereview.appspot.com/5616056
git-svn-id: http://skia.googlecode.com/svn/trunk@3128
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 2 Feb 2012 15:00:19 +0000 (15:00 +0000)]
Don't change convexity status of a path after a moveTo
Review URL: http://codereview.appspot.com/5581048/
git-svn-id: http://skia.googlecode.com/svn/trunk@3127
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 2 Feb 2012 14:11:18 +0000 (14:11 +0000)]
Add dithering to 32b radial gradients. Behind the same #ifdef as dithered
32b linear gradients so that we don't impact clients unexpectedly.
This commit *will* break GM.
http://codereview.appspot.com/5599050/
git-svn-id: http://skia.googlecode.com/svn/trunk@3126
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 31 Jan 2012 20:46:32 +0000 (20:46 +0000)]
[GPU]: Handle degenerate quads when computing UV matrix from control points
Review URL: http://codereview.appspot.com/5602045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3125
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 31 Jan 2012 18:44:34 +0000 (18:44 +0000)]
When adding a convex shape to a path, mark path as convex if path is initially degenerate.
Review URL: http://codereview.appspot.com/5504073/
git-svn-id: http://skia.googlecode.com/svn/trunk@3124
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Tue, 31 Jan 2012 18:35:30 +0000 (18:35 +0000)]
Expose '--notexturecache' command line argument to gm.
Pass '--notexturecache' to gm to resize the Ganesh texture cache to 0. This stresses Ganesh's behaviour after a cache purge operation.
Review URL: https://codereview.appspot.com/5569079
git-svn-id: http://skia.googlecode.com/svn/trunk@3123
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 31 Jan 2012 17:18:58 +0000 (17:18 +0000)]
Roll out r3117 to alleviate code.google.com/p/skia/issues/detail?id=471 ('filltypespersp gm test fails with KERN_PROTECTION_FAILURE on Lion')
git-svn-id: http://skia.googlecode.com/svn/trunk@3122
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 Jan 2012 15:42:29 +0000 (15:42 +0000)]
add additional tests for path direction with multiple pts on y-max
git-svn-id: http://skia.googlecode.com/svn/trunk@3121
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 Jan 2012 15:40:32 +0000 (15:40 +0000)]
rebaseline after new convexpath code in gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@3120
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 Jan 2012 15:25:22 +0000 (15:25 +0000)]
fall through to cross-product if the y-max-baseline returns a degenerate line
(i.e. maxIndex == minIndex)
git-svn-id: http://skia.googlecode.com/svn/trunk@3119
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 31 Jan 2012 15:19:21 +0000 (15:19 +0000)]
Fix degenerate test in convex path renderer
Review URL: http://codereview.appspot.com/5581058/
git-svn-id: http://skia.googlecode.com/svn/trunk@3118
2bbb7eff-a529-9590-31e7-
b0007b416f81
digit@google.com [Tue, 31 Jan 2012 15:16:10 +0000 (15:16 +0000)]
Remove one static initializer in src/gpu/GrGpu.cpp
Review URL: https://codereview.appspot.com/5504073
git-svn-id: http://skia.googlecode.com/svn/trunk@3117
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 Jan 2012 15:15:36 +0000 (15:15 +0000)]
handle multiple points all at the y-max when computing direction
git-svn-id: http://skia.googlecode.com/svn/trunk@3116
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 31 Jan 2012 15:14:08 +0000 (15:14 +0000)]
Make SkImageEncoder_CG report more failures to its caller.
Review URL: https://codereview.appspot.com/5580052
git-svn-id: http://skia.googlecode.com/svn/trunk@3115
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 31 Jan 2012 14:44:13 +0000 (14:44 +0000)]
increase height to include entire circle for large radial
git-svn-id: http://skia.googlecode.com/svn/trunk@3114
2bbb7eff-a529-9590-31e7-
b0007b416f81
digit@google.com [Tue, 31 Jan 2012 14:43:55 +0000 (14:43 +0000)]
Fix Android build
Review URL: https://codereview.appspot.com/5492054
git-svn-id: http://skia.googlecode.com/svn/trunk@3113
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 31 Jan 2012 13:35:56 +0000 (13:35 +0000)]
Add code path for Gr client to resolve an Gr-created MSAA render target.
Review URL: http://codereview.appspot.com/5580049/
git-svn-id: http://skia.googlecode.com/svn/trunk@3112
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 30 Jan 2012 21:21:24 +0000 (21:21 +0000)]
Rebaseline GMs changed by convex path renderer.
git-svn-id: http://skia.googlecode.com/svn/trunk@3111
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 30 Jan 2012 20:51:25 +0000 (20:51 +0000)]
use contour with global ymax to determine direction
git-svn-id: http://skia.googlecode.com/svn/trunk@3110
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 30 Jan 2012 20:25:23 +0000 (20:25 +0000)]
Enable convex path renderer.
NOTE: THIS WILL CAUSE BOTS TO FAIL GM ON THE GPU.
These tests will be rebaslined.
Review URL: http://codereview.appspot.com/5601052/
git-svn-id: http://skia.googlecode.com/svn/trunk@3109
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Mon, 30 Jan 2012 20:12:10 +0000 (20:12 +0000)]
Add missing SkFloatToScalar() calls to fix the build.
git-svn-id: http://skia.googlecode.com/svn/trunk@3108
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Mon, 30 Jan 2012 20:00:13 +0000 (20:00 +0000)]
New radial gradient GM to observe banding and dithering effects.
Gray transparent disk in the center, shading to black transparent at edges.
git-svn-id: http://skia.googlecode.com/svn/trunk@3107
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 30 Jan 2012 18:09:31 +0000 (18:09 +0000)]
Remove GrAALevel enum, use explicit sample count
Review URL: http://codereview.appspot.com/5600045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3106
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 30 Jan 2012 17:36:27 +0000 (17:36 +0000)]
add bandage to pin out-of-range values when converting our integral clip bounds to
a SkRect (when SkScalar==fixed). Eliminates a (valid) assert, but does not really
return the "correct" value (which can't be represented in SkRect).
git-svn-id: http://skia.googlecode.com/svn/trunk@3105
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 30 Jan 2012 17:09:45 +0000 (17:09 +0000)]
inject a 32767 bounded cliprect before using SuperSampler blitter, to avoid
crash/assert when our run-array is larger than int16_t. Better fix may be to
"tile" the drawing, so we never see a clip that's too wide, and perhaps this
technique can help us avoid disabling AA for large parths (not sure tho).
git-svn-id: http://skia.googlecode.com/svn/trunk@3104
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 30 Jan 2012 15:41:43 +0000 (15:41 +0000)]
extend fastbounds impls to include maskfilters and drawloopers. This allows
us to perform quick-rejects when drawing objects with shadows (esp. text).
WebKit draws shadows w/ a looper (fg and shadow) and a maskfilter on the
shadow layer.
git-svn-id: http://skia.googlecode.com/svn/trunk@3103
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Mon, 30 Jan 2012 14:53:22 +0000 (14:53 +0000)]
Adding a flush method to SkCanvas
BUG=http://code.google.com/p/skia/issues/detail?id=467
REVIEW=http://codereview.appspot.com/5600044/
TEST=gm uses the new code path on all its test cases
git-svn-id: http://skia.googlecode.com/svn/trunk@3102
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 30 Jan 2012 14:28:39 +0000 (14:28 +0000)]
Reland r3078 (original failures that led to revert were problems with the bot)
git-svn-id: http://skia.googlecode.com/svn/trunk@3101
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 30 Jan 2012 14:07:26 +0000 (14:07 +0000)]
fix compilation errors when VISUALIZE_COMPLEX_CLIP is set (debug assist code path)
Review URL: http://codereview.appspot.com/5596043/
git-svn-id: http://skia.googlecode.com/svn/trunk@3100
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 30 Jan 2012 14:02:44 +0000 (14:02 +0000)]
code cleanup for single_pass_path() and remove enum GrConvexHint
Review URL: code cleanup for single_pass_path() and remove enum GrConvexHint
git-svn-id: http://skia.googlecode.com/svn/trunk@3099
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sat, 28 Jan 2012 01:45:11 +0000 (01:45 +0000)]
Formatting cleanup: remove extra whitespace
Change by arthurhsu@chromium.org, original CL: http://codereview.appspot.com/5587049/
Review URL: https://codereview.appspot.com/5594043
git-svn-id: http://skia.googlecode.com/svn/trunk@3098
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Fri, 27 Jan 2012 19:12:00 +0000 (19:12 +0000)]
Expose functionality to purge the GPU texture cache while running SampleApp.
Press 'p' to purge the cache. A summary of the number of bytes of video memory
released is output to the command prompt.
Review URL: https://codereview.appspot.com/5587045
git-svn-id: http://skia.googlecode.com/svn/trunk@3097
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Fri, 27 Jan 2012 16:52:38 +0000 (16:52 +0000)]
add formatting to suppress compiler warning
Review URL: https://codereview.appspot.com/5586043
git-svn-id: http://skia.googlecode.com/svn/trunk@3095
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 27 Jan 2012 00:47:24 +0000 (00:47 +0000)]
Rip out GrPlatformSurface (has been deprecated for some time, use GrPlatformTexture or GrPlatformRenderTarget instead)
Review URL: http://codereview.appspot.com/5576052/
git-svn-id: http://skia.googlecode.com/svn/trunk@3094
2bbb7eff-a529-9590-31e7-
b0007b416f81
digit@google.com [Thu, 26 Jan 2012 21:26:40 +0000 (21:26 +0000)]
posix: Avoid static initializers in static/global mutexes
This patch removes static initializers related to static and
global mutexes from the final library's machine code when
building on a pthread-capable system.
We use PTHREAD_MUTEX_INITIALIZER to perform POD-style
initialization. You need a line like the following to declare
a global mutex with it:
SkBaseMutex gMutex = { PTHREAD_MUTEX_INITIALIZER };
We introduce the SK_DECLARE_STATIC_MUTEX and SK_DECLARE_GLOBAL_MUTEX
macros to be able to declare static/global mutexes in the source tree
uniformly.
SkMutex is now defined as a sub-class of SkBaseMutex, with standard
construction/destruction semantics. This is useful if the mutex
object is a member of another C++ class, or allocated dynamically.
We also modify a few places to refer to SkBaseMutex instead of a
SkMutex, where it makes sense. Generally speaking, client code
should hold and use pointers to SkBaseMutex whenever they can
now.
We defined a new built-time macro named SK_USE_POSIX_THREADS
to indicate that we're using a pthread-based SkThread.h
interface. The macro will also be used in future patches
to implement other helper thread synchronization classes.
Finally, we inline the acquire() and release() functions in the
case of Posix to improve performance a bit.
Running: 'bench -repeat 10 -match mutex' on an Android device or
a 2.4GHz Xeon Linux desktop shows the following improvements:
Before After
Galaxy Nexus 1.64 1.45
Nexus S 1.47 1.16
Xoom 1.86 1.66
Xeon 0.36 0.31
This removes 5 static mutex initializers from the library
Review URL: https://codereview.appspot.com/5501066
git-svn-id: http://skia.googlecode.com/svn/trunk@3091
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 26 Jan 2012 20:33:19 +0000 (20:33 +0000)]
Change background color and add paths to convexpaths gm
git-svn-id: http://skia.googlecode.com/svn/trunk@3090
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 26 Jan 2012 04:13:31 +0000 (04:13 +0000)]
need to include SkColorFilter.h since we reference some methods on it
in our inline functions.
git-svn-id: http://skia.googlecode.com/svn/trunk@3089
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 25 Jan 2012 21:53:53 +0000 (21:53 +0000)]
Make SkRegion::operator== a member function, rather than a privately-declared
friend. Without this, calling code has access to operator==, but can fail to
link because the implementation is assumed to have static linkage.
http://codereview.appspot.com/5577047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3088
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 25 Jan 2012 18:57:23 +0000 (18:57 +0000)]
Intersection work in progress
Review URL: https://codereview.appspot.com/5576043
git-svn-id: http://skia.googlecode.com/svn/trunk@3087
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 25 Jan 2012 16:47:04 +0000 (16:47 +0000)]
fix vertical bold text on mac
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@3086
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 25 Jan 2012 16:04:18 +0000 (16:04 +0000)]
disable SPEW_PURGE_STATUS
git-svn-id: http://skia.googlecode.com/svn/trunk@3085
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 24 Jan 2012 04:27:11 +0000 (04:27 +0000)]
whitespace change to trigger Skia buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@3082
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 24 Jan 2012 02:31:42 +0000 (02:31 +0000)]
Prefer a texture pixel ref to a render target pixel ref when creating an SkGpuDevice
Review URL: http://codereview.appspot.com/5570050/
git-svn-id: http://skia.googlecode.com/svn/trunk@3081
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 24 Jan 2012 02:23:07 +0000 (02:23 +0000)]
Whitespace commit to check if lion / win bots are hosed.
git-svn-id: http://skia.googlecode.com/svn/trunk@3080
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Sat, 21 Jan 2012 15:03:39 +0000 (15:03 +0000)]
revert 3078
git-svn-id: http://skia.googlecode.com/svn/trunk@3079
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Sat, 21 Jan 2012 14:48:36 +0000 (14:48 +0000)]
fix interior issues in convex path renderer
git-svn-id: http://skia.googlecode.com/svn/trunk@3078
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 20 Jan 2012 13:59:14 +0000 (13:59 +0000)]
Temporarily allow linear interpolation of 2-color vertical gradients to be
turned off. With a Chromium gyp change to add
SK_SIMPLE_TWOCOLOR_VERTICAL_GRADIENTS, this reduces the rebaselining from
r3073 from ~200 to ~20.
codereview.appspot.com/5558055/
git-svn-id: http://skia.googlecode.com/svn/trunk@3077
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 Jan 2012 19:59:22 +0000 (19:59 +0000)]
Fix a warning in libtess in Release builds; define NDEBUG in Release on all
platforms.
BUG: http://code.google.com/p/skia/issues/detail?id=456
Review URL: http://codereview.appspot.com/5555054/
git-svn-id: http://skia.googlecode.com/svn/trunk@3076
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 Jan 2012 16:16:52 +0000 (16:16 +0000)]
Add flag to disable gl error checking when allocating gpu objects
Review URL: http://codereview.appspot.com/5558052/
git-svn-id: http://skia.googlecode.com/svn/trunk@3075
2bbb7eff-a529-9590-31e7-
b0007b416f81
schenney@chromium.org [Thu, 19 Jan 2012 15:31:01 +0000 (15:31 +0000)]
Cleanup of SkPath code to remove SK_OLD_EMPTY_PATH_BEHAVIOR and other
dead code. The patch also renames kAfterClose_SegmentState for the
SkPath::Iter class, to kEmptyContour_SegmentState which more
accurately reflects the meaning of the state. The Iter can be in that
state initially, before anything has been seen, let alone a close.
BUG=445
TEST=Covered by existing tests.
Review URL: https://codereview.appspot.com/5532091
git-svn-id: http://skia.googlecode.com/svn/trunk@3074
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 19 Jan 2012 14:23:24 +0000 (14:23 +0000)]
rebaseline with fix to drawAsAHairline
git-svn-id: http://skia.googlecode.com/svn/trunk@3073
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Wed, 18 Jan 2012 21:28:01 +0000 (21:28 +0000)]
Interpolate vertical linear gradients for improved quality.
Consolidate interpolation functions, add new faster more accurate dithering
interpolator.
git-svn-id: http://skia.googlecode.com/svn/trunk@3072
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 18 Jan 2012 21:00:54 +0000 (21:00 +0000)]
Rebaseline hairmodes GM at r3070
git-svn-id: http://skia.googlecode.com/svn/trunk@3071
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 18 Jan 2012 20:34:00 +0000 (20:34 +0000)]
Pull xfer mode test out of generic draw-as-hairline test. Use coverage rather than alpha to draw hairlines < 1pix wide in GPU.
Review URL: http://codereview.appspot.com/5528112/
git-svn-id: http://skia.googlecode.com/svn/trunk@3070
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 18 Jan 2012 20:29:56 +0000 (20:29 +0000)]
Fix mimetypes for all checked-in GM baselines (no image content changes)
git-svn-id: http://skia.googlecode.com/svn/trunk@3069
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 18 Jan 2012 20:11:13 +0000 (20:11 +0000)]
Stop writing out XPS baselines until we resolve skia issue 455
BUG=455
TBR=bungeman
Review URL: https://codereview.appspot.com/5554052
git-svn-id: http://skia.googlecode.com/svn/trunk@3068
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 18 Jan 2012 19:51:55 +0000 (19:51 +0000)]
Turn clipping back on in OSAA pass 1. Skip default cons on GrDrawState when saving off a GrDrawTarget's state.
Review URL: http://codereview.appspot.com/5553051/
git-svn-id: http://skia.googlecode.com/svn/trunk@3067
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 18 Jan 2012 19:20:39 +0000 (19:20 +0000)]
Remove apparent SkIntToScalar(SkScalar) call in SkScalerContext_FreeType
This change seems to fix the following assertion failure we have been seeing
in the Skia_Linux_Fixed_Debug build since http://code.google.com/p/skia/source/detail?r=3059 :
drawing... bitmapfilters [540 330]
../include/core/SkFixed.h:67: failed assertion "n >= -32768 && n <= 32767"
Review URL: https://codereview.appspot.com/5557049
git-svn-id: http://skia.googlecode.com/svn/trunk@3066
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Wed, 18 Jan 2012 18:56:34 +0000 (18:56 +0000)]
Updating gm's usage message
git-svn-id: http://skia.googlecode.com/svn/trunk@3065
2bbb7eff-a529-9590-31e7-
b0007b416f81
schenney@chromium.org [Wed, 18 Jan 2012 18:06:10 +0000 (18:06 +0000)]
Somehow this change was missing from the previous commit.
git-svn-id: http://skia.googlecode.com/svn/trunk@3063
2bbb7eff-a529-9590-31e7-
b0007b416f81
schenney@chromium.org [Wed, 18 Jan 2012 18:02:10 +0000 (18:02 +0000)]
Fixing the behavior of SkPathMeasure to reflect changes in SkPath::Iter.
This implementation modifies SkPath::Iter extensively to avoid copying
the points when used to measure path length.
BUG=446
TEST=tests/PathMeasureTest.cpp
Review URL: https://codereview.appspot.com/5533074
git-svn-id: http://skia.googlecode.com/svn/trunk@3062
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 Jan 2012 17:06:35 +0000 (17:06 +0000)]
add GenA8FromLCD as a hack to force GDI to create the A8 mask from the LCD
results, rather than asking GDI directly for A8 (which it sometimes decides
to interpret as BW)
git-svn-id: http://skia.googlecode.com/svn/trunk@3061
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 18 Jan 2012 17:02:15 +0000 (17:02 +0000)]
Landing change from codereview.appspot.com/5540063/
git-svn-id: http://skia.googlecode.com/svn/trunk@3060
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Wed, 18 Jan 2012 16:21:08 +0000 (16:21 +0000)]
Adding class SkDeferredCanvas for deferred rendering.
TEST=added a new pass to gm, so all gm tests are run through SkDeferredCanvas
REVIEW=http://codereview.appspot.com/5430058/
git-svn-id: http://skia.googlecode.com/svn/trunk@3059
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 17 Jan 2012 21:26:05 +0000 (21:26 +0000)]
Change download-baselines script to download images from skia-autogen SVN repo
I have copied the old version (which downloads the images from the buildbots
directly, but only works with our Mac buildbots) to download-baselines-old,
so we can use either version during a transition period.
Another difference: the new version sets the mimetype property of all image
files in the baseline_subdir, even those that have not changed.
BUG=386
http://code.google.com/p/skia/issues/detail?id=386 ('make buildbots write out RunGM image results to a browsable directory')
Review URL: https://codereview.appspot.com/5544056
git-svn-id: http://skia.googlecode.com/svn/trunk@3058
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 21:03:05 +0000 (21:03 +0000)]
Attempt to reland 3054
git-svn-id: http://skia.googlecode.com/svn/trunk@3056
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 20:14:58 +0000 (20:14 +0000)]
Revert r3054 for failing tests
git-svn-id: http://skia.googlecode.com/svn/trunk@3055
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 19:58:34 +0000 (19:58 +0000)]
Add constant coverage to GrDrawState
Review URL: http://codereview.appspot.com/5543052/
git-svn-id: http://skia.googlecode.com/svn/trunk@3054
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 17 Jan 2012 19:20:02 +0000 (19:20 +0000)]
whitespace change to trigger Skia buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@3053
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 Jan 2012 18:26:38 +0000 (18:26 +0000)]
if the y-max has neighbors (prev and next) with the same Y values, then the
cross will be 0, but we can still know the direction by looking at the change
in X
Fixes the hypen in #7 of this bug http://code.google.com/p/chromium/issues/detail?id=109370
git-svn-id: http://skia.googlecode.com/svn/trunk@3049
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 Jan 2012 18:23:36 +0000 (18:23 +0000)]
rebaseline following change to subpixel positioning
git-svn-id: http://skia.googlecode.com/svn/trunk@3048
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 17 Jan 2012 17:23:22 +0000 (17:23 +0000)]
whitespace change to tri
gger Skia buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@3047
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 16:28:34 +0000 (16:28 +0000)]
Incorporate changes related to Tom's post-hoc comments on the convex path renderer.
git-svn-id: http://skia.googlecode.com/svn/trunk@3045
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 16:16:49 +0000 (16:16 +0000)]
fix assert
git-svn-id: http://skia.googlecode.com/svn/trunk@3044
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 16:01:37 +0000 (16:01 +0000)]
Add GrDrawState reset
Review URL: http://codereview.appspot.com/5543059/
git-svn-id: http://skia.googlecode.com/svn/trunk@3043
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 14:39:21 +0000 (14:39 +0000)]
second try to fix assert
git-svn-id: http://skia.googlecode.com/svn/trunk@3042
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 Jan 2012 14:31:23 +0000 (14:31 +0000)]
Change static asserts of scalar type to runtime asserts (re r3040)
git-svn-id: http://skia.googlecode.com/svn/trunk@3041
2bbb7eff-a529-9590-31e7-
b0007b416f81