tomhudson@google.com [Wed, 22 Feb 2012 18:30:43 +0000 (18:30 +0000)]
SSE2 version of ClampX_ClampY_{no}filter_scale; yields 10-20% speedup in
bitmap_8888 benchmarks on top of last week's SSSE3 patch.
Thanks to Jin Yang.
http://codereview.appspot.com/5685055/
git-svn-id: http://skia.googlecode.com/svn/trunk@3227
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Tue, 21 Feb 2012 19:15:53 +0000 (19:15 +0000)]
Remove incorrect GrAssert calls in GrResourceCache::removeAll
The asserts in GrResourceCache are too aggressive, and assume that all resources are always purged. Locked resources will not be purged.
BUG=114861
Review URL: https://codereview.appspot.com/5674096
git-svn-id: http://skia.googlecode.com/svn/trunk@3226
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 21 Feb 2012 18:53:39 +0000 (18:53 +0000)]
Change append to appendf for call sites with no format arguments.
Original CL: http://codereview.appspot.com/5685062/
Review URL: https://codereview.appspot.com/5686059
git-svn-id: http://skia.googlecode.com/svn/trunk@3225
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Mon, 20 Feb 2012 21:33:22 +0000 (21:33 +0000)]
work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3224
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 17 Feb 2012 22:00:07 +0000 (22:00 +0000)]
Use intrinsics for atomic inc and dec on Windows.
http://codereview.appspot.com/5677080/
git-svn-id: http://skia.googlecode.com/svn/trunk@3223
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 17 Feb 2012 18:56:20 +0000 (18:56 +0000)]
Remove SkFontHost::ValidFontID PART 1: remove only caller.
http://codereview.appspot.com/5654055/
git-svn-id: http://skia.googlecode.com/svn/trunk@3222
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Fri, 17 Feb 2012 14:42:22 +0000 (14:42 +0000)]
Revert r3036. This change breaks loading images as
described in Chromium issue 114107. The Chromium break
may be fixed by WebKit patch 78239, at which time
this patch can be reapplied.
Review URL: https://codereview.appspot.com/5675077
git-svn-id: http://skia.googlecode.com/svn/trunk@3219
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Fri, 17 Feb 2012 14:08:18 +0000 (14:08 +0000)]
Added BSD license language where missing.
See Chromium bug 98464,
Review URL: https://codereview.appspot.com/5671083
git-svn-id: http://skia.googlecode.com/svn/trunk@3218
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 17 Feb 2012 13:49:03 +0000 (13:49 +0000)]
Turn off test in fixed pt build.
git-svn-id: http://skia.googlecode.com/svn/trunk@3217
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 17 Feb 2012 13:38:26 +0000 (13:38 +0000)]
Make cross_prod used in SkPath::cheapComputeDirection fallback to double computation when result is 0. Verbal LGTM from reed.
git-svn-id: http://skia.googlecode.com/svn/trunk@3216
2bbb7eff-a529-9590-31e7-
b0007b416f81
digit@google.com [Thu, 16 Feb 2012 22:06:51 +0000 (22:06 +0000)]
Remove two static initializers from debug builds
Review URL: https://codereview.appspot.com/5622046
git-svn-id: http://skia.googlecode.com/svn/trunk@3215
2bbb7eff-a529-9590-31e7-
b0007b416f81
digit@google.com [Thu, 16 Feb 2012 22:03:26 +0000 (22:03 +0000)]
Remove on static initializer in GrGpu.cpp
This is another go for the patch that was initially
submitted at http://codereview.appspot.com/5504073/ but
crashed the 'gm' unit test.
A problem with the previous implementation is that the
GrStencilSettings ::isDisabled() and ::doesWrite() methods can
modify the object's fFlags member if it is 0, and this will
crash at runtime when doing this for a static constant
object/structure.
I'm not sure why this wasn't triggered previously.
We solve the issue by modifying the implementation of
GR_STATIC_CONST_STENCIL and GR_STATIC_CONST_STENCIL macros to
compute the correct default values for fFlags (which prevents
any member modifications in the above methods).
This requires moving the definition of the disabled/write flags
out of the GrStencilSettings class definition's private section.
Note that the flags are renamed to avoid any confusion and
conflicts, i.e.:
SkIsDisabled_Flag -> SkIsDisabled_StencilFlag
SkNotDisabled_Flag -> SkNotDisabled_StencilFlag
...
Review URL: https://codereview.appspot.com/5616051
git-svn-id: http://skia.googlecode.com/svn/trunk@3214
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Thu, 16 Feb 2012 21:32:03 +0000 (21:32 +0000)]
add missing files
git-svn-id: http://skia.googlecode.com/svn/trunk@3213
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Thu, 16 Feb 2012 21:24:41 +0000 (21:24 +0000)]
work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3212
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 16 Feb 2012 20:04:31 +0000 (20:04 +0000)]
Lazily allocate our global pool for imagerefs
Review URL: https://codereview.appspot.com/5677055
git-svn-id: http://skia.googlecode.com/svn/trunk@3211
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 16 Feb 2012 19:30:13 +0000 (19:30 +0000)]
be sure to mark fLastY with the bottom of the rect in blitRect
git-svn-id: http://skia.googlecode.com/svn/trunk@3210
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 16 Feb 2012 18:56:17 +0000 (18:56 +0000)]
aaclip needs to handle paths with holes
Review URL: https://codereview.appspot.com/5671066
git-svn-id: http://skia.googlecode.com/svn/trunk@3209
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 16 Feb 2012 17:11:25 +0000 (17:11 +0000)]
add a todo
git-svn-id: http://skia.googlecode.com/svn/trunk@3208
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Thu, 16 Feb 2012 15:18:39 +0000 (15:18 +0000)]
Lazily allocate gNameList, and protect its usage behind the global mutex.
https://codereview.appspot.com/5674059
git-svn-id: http://skia.googlecode.com/svn/trunk@3207
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 16 Feb 2012 13:18:48 +0000 (13:18 +0000)]
cast to double
http://codereview.appspot.com/5645064/
git-svn-id: http://skia.googlecode.com/svn/trunk@3206
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 16 Feb 2012 12:40:48 +0000 (12:40 +0000)]
Fix TypefaceCache races.
http://codereview.appspot.com/5656066/
git-svn-id: http://skia.googlecode.com/svn/trunk@3205
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 15 Feb 2012 22:01:16 +0000 (22:01 +0000)]
work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3204
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 15 Feb 2012 21:16:03 +0000 (21:16 +0000)]
Revert 3191
Review URL: http://codereview.appspot.com/5656068/
git-svn-id: http://skia.googlecode.com/svn/trunk@3203
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Wed, 15 Feb 2012 21:03:45 +0000 (21:03 +0000)]
Fix regression where we disable fonts with no specified name
Review URL: https://codereview.appspot.com/5675061
git-svn-id: http://skia.googlecode.com/svn/trunk@3202
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 15 Feb 2012 19:09:54 +0000 (19:09 +0000)]
fix SkFixed build (I hope)
git-svn-id: http://skia.googlecode.com/svn/trunk@3201
2bbb7eff-a529-9590-31e7-
b0007b416f81
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