bsalomon@google.com [Wed, 15 Feb 2012 18:49:41 +0000 (18:49 +0000)]
Fix a case missed in r3198 where left/right direction of setOrthog matters (matrix computed from a degenerate quad).
git-svn-id: http://skia.googlecode.com/svn/trunk@3200
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Wed, 15 Feb 2012 18:49:15 +0000 (18:49 +0000)]
Merge changes from the android repo upstream to Skia
Review URL: https://codereview.appspot.com/5545070
git-svn-id: http://skia.googlecode.com/svn/trunk@3199
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 15 Feb 2012 16:52:51 +0000 (16:52 +0000)]
Use cheapComputeDirection to determine normal facing in GrAAConvexPathRenderer
Review URL: http://codereview.appspot.com/5649083/
git-svn-id: http://skia.googlecode.com/svn/trunk@3198
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 15 Feb 2012 14:50:29 +0000 (14:50 +0000)]
suport A8 grayscale text with COLOR_LUMINANCE build option
git-svn-id: http://skia.googlecode.com/svn/trunk@3197
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 15 Feb 2012 14:10:42 +0000 (14:10 +0000)]
Misc small fixes to unblock skia roll.
git-svn-id: http://skia.googlecode.com/svn/trunk@3196
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 14 Feb 2012 19:49:19 +0000 (19:49 +0000)]
hack to enable SSSE3 on Macs
Review URL: https://codereview.appspot.com/5649091
git-svn-id: http://skia.googlecode.com/svn/trunk@3195
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 14 Feb 2012 19:42:39 +0000 (19:42 +0000)]
Attempt to make Windows and Mac compilers happy after breakage in r3193.
Verified that changes in parameter signatures
git-svn-id: http://skia.googlecode.com/svn/trunk@3194
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 14 Feb 2012 18:28:54 +0000 (18:28 +0000)]
Add SSSE3 acceleration for S32_{opaque,alpha}_D32_filter_DX; should yield
25% speedup on 64b architectures, something smaller but still valuable on
32b.
Adds new files, breaking client gyps.
http://codereview.appspot.com/5515044/
git-svn-id: http://skia.googlecode.com/svn/trunk@3193
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 14 Feb 2012 17:26:04 +0000 (17:26 +0000)]
Fix compile errors.
git-svn-id: http://skia.googlecode.com/svn/trunk@3192
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 14 Feb 2012 17:03:16 +0000 (17:03 +0000)]
Add test to detect bias in conversion of frag shader floats to bytes
Review URL: http://codereview.appspot.com/5669045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3191
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 14 Feb 2012 16:12:49 +0000 (16:12 +0000)]
add test for colored text drawing (hopefully gamma corrected)
git-svn-id: http://skia.googlecode.com/svn/trunk@3190
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 14 Feb 2012 16:01:15 +0000 (16:01 +0000)]
SSE2 version of blit_lcd16, courtesy of Jin Yang.
Yields 25-30% speedup on Windows (32b), 4-7% on Linux (64b, less register
pressure), not invoked on Mac (lcd text is 32b instead of 16b).
Followup: GDI system settings on Windows can suppress LCD text for small
fonts, interfering with our benchmarks.
(http://code.google.com/p/skia/issues/detail?id=483)
http://codereview.appspot.com/5617058/
git-svn-id: http://skia.googlecode.com/svn/trunk@3189
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 14 Feb 2012 15:43:01 +0000 (15:43 +0000)]
Fix include paths in non-standard targets.
git-svn-id: http://skia.googlecode.com/svn/trunk@3187
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 14 Feb 2012 15:31:03 +0000 (15:31 +0000)]
Update cross-platform #include paths to new include/gpu/gl directory
(aka cowboy fix 3185).
git-svn-id: http://skia.googlecode.com/svn/trunk@3186
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 14 Feb 2012 15:11:59 +0000 (15:11 +0000)]
Move GL-specific include files to their own subdirectory, to better
coexist alongside D3D backend.
Requires gyp change.
http://codereview.appspot.com/5665045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3185
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 14 Feb 2012 14:53:59 +0000 (14:53 +0000)]
Set LCD font smoothing to "medium" for gm on Mac, regardless of system settings
http://code.google.com/p/skia/issues/detail?id=382 ('make gm results consistent regardless of system LCDtext settings')
Review URL: https://codereview.appspot.com/5661043
git-svn-id: http://skia.googlecode.com/svn/trunk@3184
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 14 Feb 2012 14:09:57 +0000 (14:09 +0000)]
Make GLCaps be standalone and be a member of GrGLContextInfo
Review URL: http://codereview.appspot.com/5654084/
git-svn-id: http://skia.googlecode.com/svn/trunk@3183
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Mon, 13 Feb 2012 22:27:58 +0000 (22:27 +0000)]
Adding missing SkIntToScalar to resolve DeferredCanvas unit test failures with fixed-point build
TBR=reed
TEST=DeferredCanvas unit test
git-svn-id: http://skia.googlecode.com/svn/trunk@3182
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Mon, 13 Feb 2012 21:53:45 +0000 (21:53 +0000)]
Adding API and unit testing for deferred canvas clearing/purging
REVIEW=http://codereview.appspot.com/5646057/
TEST=DeferredCanvas unit test
git-svn-id: http://skia.googlecode.com/svn/trunk@3181
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 13 Feb 2012 21:37:57 +0000 (21:37 +0000)]
if SK_USE_COLOR_LUMINANCE is defined, then we store 2 bits of each component
to create a per-component-luminance value for the fonthost to use. Only supported
on Mac at the moment (but still disabled by default)
git-svn-id: http://skia.googlecode.com/svn/trunk@3180
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Mon, 13 Feb 2012 15:46:26 +0000 (15:46 +0000)]
Prevent the memset16 ARM opt from failing when count is 0.
Review URL: http://codereview.appspot.com/5639051
git-svn-id: http://skia.googlecode.com/svn/trunk@3173
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 13 Feb 2012 15:18:34 +0000 (15:18 +0000)]
Add path effect GM
Review URL: http://codereview.appspot.com/5649069/
git-svn-id: http://skia.googlecode.com/svn/trunk@3172
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 13 Feb 2012 14:49:09 +0000 (14:49 +0000)]
path effect on a very thin line should not be discarded
Review URL: http://codereview.appspot.com/5649069/
git-svn-id: http://skia.googlecode.com/svn/trunk@3171
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 13 Feb 2012 14:39:16 +0000 (14:39 +0000)]
Use GrGLContextInfo in shader generator
Review URL: http://codereview.appspot.com/5645083/
git-svn-id: http://skia.googlecode.com/svn/trunk@3170
2bbb7eff-a529-9590-31e7-
b0007b416f81
thakis@chromium.org [Fri, 10 Feb 2012 22:49:31 +0000 (22:49 +0000)]
Remove extra SK_API
(It's already on the class, not needed on the method too.)
Review URL: http://codereview.appspot.com/5649057/
Patch from Dominic Mazzoni <dmazzoni@chromium.org>!
git-svn-id: http://skia.googlecode.com/svn/trunk@3169
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 10 Feb 2012 22:01:45 +0000 (22:01 +0000)]
enable color-luminance in font cache (disabled by default)
git-svn-id: http://skia.googlecode.com/svn/trunk@3168
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 10 Feb 2012 21:35:35 +0000 (21:35 +0000)]
Add copyright and #ifndef / #define
git-svn-id: http://skia.googlecode.com/svn/trunk@3167
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 10 Feb 2012 21:35:06 +0000 (21:35 +0000)]
Add two files missed in r3165; most critically the gyp!
git-svn-id: http://skia.googlecode.com/svn/trunk@3166
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 10 Feb 2012 21:01:00 +0000 (21:01 +0000)]
Move GL-specific source code to make room for D3D back end.
git-svn-id: http://skia.googlecode.com/svn/trunk@3165
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 10 Feb 2012 20:38:14 +0000 (20:38 +0000)]
Fix CFBundleIdentifier of SampleApp
This allows SampleApp to pick up the following setting to force on LCD font smoothing:
defaults write com.googlecode.skia.SampleApp AppleFontSmoothing -int 2
See http://code.google.com/p/skia/issues/detail?id=382 ('make gm results consistent regardless of system LCDtext settings')
git-svn-id: http://skia.googlecode.com/svn/trunk@3164
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 10 Feb 2012 20:25:36 +0000 (20:25 +0000)]
Fix dumb error of starting loop with 0 instead of 1 that uses shift to increment.
git-svn-id: http://skia.googlecode.com/svn/trunk@3163
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 10 Feb 2012 20:05:18 +0000 (20:05 +0000)]
Add GrGLContextInfo
Review URL: http://codereview.appspot.com/5653060/
git-svn-id: http://skia.googlecode.com/svn/trunk@3162
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 10 Feb 2012 15:56:06 +0000 (15:56 +0000)]
Pull GLSL helpers out of GrGLProgram.cpp
Review URL: http://codereview.appspot.com/5652047/
git-svn-id: http://skia.googlecode.com/svn/trunk@3161
2bbb7eff-a529-9590-31e7-
b0007b416f81
thakis@chromium.org [Thu, 9 Feb 2012 22:09:41 +0000 (22:09 +0000)]
Mark SkColorFilter and SkCreateCGImageRefWithColorspace as SK_API.
Required for the chromium/mac components build.
BUG=chromium:90078
Review URL: https://codereview.appspot.com/5642073/
git-svn-id: http://skia.googlecode.com/svn/trunk@3160
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Thu, 9 Feb 2012 22:04:27 +0000 (22:04 +0000)]
work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3159
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 9 Feb 2012 16:07:08 +0000 (16:07 +0000)]
Add SK_API to SkPixelRef and TextureCacheEntry.
Review URL: http://codereview.appspot.com/5649044/
git-svn-id: http://skia.googlecode.com/svn/trunk@3158
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 9 Feb 2012 15:25:13 +0000 (15:25 +0000)]
Make SkGLContext's FBO creation more robust (allows test apps to run on Intel GPUs)
Review URL: http://codereview.appspot.com/5647059/
git-svn-id: http://skia.googlecode.com/svn/trunk@3157
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 9 Feb 2012 13:53:48 +0000 (13:53 +0000)]
Turn on read pixels test for raster backend
Review URL: http://codereview.appspot.com/5643070/
git-svn-id: http://skia.googlecode.com/svn/trunk@3156
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 8 Feb 2012 20:27:16 +0000 (20:27 +0000)]
Export the texture pixelref classes via SK_API. This is necessary to reference
them from another DLL in the windows shared build.
Review URL: http://codereview.appspot.com/5646056/
git-svn-id: http://skia.googlecode.com/svn/trunk@3155
2bbb7eff-a529-9590-31e7-
b0007b416f81
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