platform/upstream/libSkiaSharp.git
12 years agoAdd SK_OVERRIDE where appropriate.
tomhudson@google.com [Mon, 5 Mar 2012 18:29:23 +0000 (18:29 +0000)]
Add SK_OVERRIDE where appropriate.

http://codereview.appspot.com/5734044/

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

12 years agoPrealloc space for ~10 segments in GrAAConvexPathRenderer
bsalomon@google.com [Mon, 5 Mar 2012 18:24:07 +0000 (18:24 +0000)]
Prealloc space for ~10 segments in GrAAConvexPathRenderer

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

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

12 years agominor improvement, remove some conditionals in GrAAConvexPathRenderer
bsalomon@google.com [Mon, 5 Mar 2012 17:58:34 +0000 (17:58 +0000)]
minor improvement, remove some conditionals in GrAAConvexPathRenderer

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

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

12 years agoAvoid hairline coverage mul when possible
bsalomon@google.com [Mon, 5 Mar 2012 16:01:18 +0000 (16:01 +0000)]
Avoid hairline coverage mul when possible

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

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

12 years agoRebaseline for r3313.
bungeman@google.com [Mon, 5 Mar 2012 15:31:05 +0000 (15:31 +0000)]
Rebaseline for r3313.

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

12 years agoWhen guessing at the dest, use linear space instead of color space.
bungeman@google.com [Mon, 5 Mar 2012 15:07:25 +0000 (15:07 +0000)]
When guessing at the dest, use linear space instead of color space.
http://codereview.appspot.com/5732044/
--this line, and those below, will be ignored--

M    src/ports/SkFontHost_FreeType.cpp

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

12 years agosimplify GrPathRenderer interface
bsalomon@google.com [Fri, 2 Mar 2012 21:26:50 +0000 (21:26 +0000)]
simplify GrPathRenderer interface

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

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

12 years agoOn Mac, also check for a loca table before calling a font true type.
vandebo@chromium.org [Fri, 2 Mar 2012 21:11:54 +0000 (21:11 +0000)]
On Mac, also check for a loca table before calling a font true type.

Review URL: https://codereview.appspot.com/5720056

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

12 years agoErode and dilate image filter effects, CPU and GPU implementations.
senorblanco@chromium.org [Fri, 2 Mar 2012 21:05:45 +0000 (21:05 +0000)]
Erode and dilate image filter effects, CPU and GPU implementations.

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

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

12 years agoCheck to see if font is TrueType before making TrueType specific calls.
caryclark@google.com [Fri, 2 Mar 2012 20:39:53 +0000 (20:39 +0000)]
Check to see if font is TrueType before making TrueType specific calls.
See chromium bug 116185
Review URL: https://codereview.appspot.com/5731046

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

12 years agoBetter workaround for osx / nv bug
bsalomon@google.com [Fri, 2 Mar 2012 20:36:18 +0000 (20:36 +0000)]
Better workaround for osx / nv bug

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

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

12 years agoRebaseline GPU paths
bsalomon@google.com [Fri, 2 Mar 2012 19:47:18 +0000 (19:47 +0000)]
Rebaseline GPU paths

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

12 years agorebaseline after recent gpu change
reed@google.com [Fri, 2 Mar 2012 19:23:51 +0000 (19:23 +0000)]
rebaseline after recent gpu change

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

12 years agoRemove offscreen supersampler.
bsalomon@google.com [Fri, 2 Mar 2012 18:57:25 +0000 (18:57 +0000)]
Remove offscreen supersampler.

THIS IS EXPECTED TO BREAK MANY GM TESTS. They will be rebaselined.

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

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

12 years agoRestore SkImageDecoder_libjpeg, which may still be used by the Android build.
tomhudson@google.com [Fri, 2 Mar 2012 16:12:14 +0000 (16:12 +0000)]
Restore SkImageDecoder_libjpeg, which may still be used by the Android build.

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

12 years agorestore old no-gamma behavior when requested
reed@google.com [Fri, 2 Mar 2012 16:02:07 +0000 (16:02 +0000)]
restore old no-gamma behavior when requested
Review URL: https://codereview.appspot.com/5722047

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

12 years agoRemove libjpeg image decoder, since we've never built it since we changed
tomhudson@google.com [Fri, 2 Mar 2012 15:38:23 +0000 (15:38 +0000)]
Remove libjpeg image decoder, since we've never built it since we changed
to gyp.

http://codereview.appspot.com/5722046/

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

12 years agominor fix: remove unnecessary init
bsalomon@google.com [Fri, 2 Mar 2012 15:08:16 +0000 (15:08 +0000)]
minor fix: remove unnecessary init

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

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

12 years agomove the post cleanup of the rec until after we wack it for maskfilter
reed@google.com [Thu, 1 Mar 2012 22:32:51 +0000 (22:32 +0000)]
move the post cleanup of the rec until after we wack it for maskfilter

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

12 years agoFix cycling through buffers in buffer alloc pool
bsalomon@google.com [Thu, 1 Mar 2012 20:59:28 +0000 (20:59 +0000)]
Fix cycling through buffers in buffer alloc pool

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

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

12 years agorebaseline with unclipped lcd text edges
reed@google.com [Thu, 1 Mar 2012 19:55:27 +0000 (19:55 +0000)]
rebaseline with unclipped lcd text edges

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

12 years agoallow gamma params to be changed in .gyp
reed@google.com [Thu, 1 Mar 2012 19:40:21 +0000 (19:40 +0000)]
allow gamma params to be changed in .gyp

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

12 years agofix clipping of lcd edge pixels
reed@google.com [Thu, 1 Mar 2012 19:38:23 +0000 (19:38 +0000)]
fix clipping of lcd edge pixels

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

12 years agoadd experimental files to encapsulate device-level font settings
reed@google.com [Thu, 1 Mar 2012 19:21:11 +0000 (19:21 +0000)]
add experimental files to encapsulate device-level font settings

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

12 years agowork in progress
caryclark@google.com [Thu, 1 Mar 2012 19:16:31 +0000 (19:16 +0000)]
work in progress

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

12 years agoRemove ref in buffer alloc pool.
bsalomon@google.com [Thu, 1 Mar 2012 16:12:45 +0000 (16:12 +0000)]
Remove ref in buffer alloc pool.

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

12 years agoWorkaround for chrome on mac buffer object performance issue.
bsalomon@google.com [Thu, 1 Mar 2012 15:29:07 +0000 (15:29 +0000)]
Workaround for chrome on mac buffer object performance issue.

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

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

12 years agoremove fragile assert
reed@google.com [Wed, 29 Feb 2012 21:57:36 +0000 (21:57 +0000)]
remove fragile assert

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

12 years agofix edgecase in chopcubic where we computed duplicate tvalues
reed@google.com [Wed, 29 Feb 2012 20:59:24 +0000 (20:59 +0000)]
fix edgecase in chopcubic where we computed duplicate tvalues

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

12 years agorebaseline after gamma tweak
reed@google.com [Wed, 29 Feb 2012 15:35:38 +0000 (15:35 +0000)]
rebaseline after gamma tweak

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

12 years agoapply contrast before blend-gamma-calc
reed@google.com [Wed, 29 Feb 2012 15:08:00 +0000 (15:08 +0000)]
apply contrast before blend-gamma-calc

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

12 years agofix bug and add test for aaclip when blitV is called
reed@google.com [Wed, 29 Feb 2012 13:59:15 +0000 (13:59 +0000)]
fix bug and add test for aaclip when blitV is called

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

12 years agomove SKPaint's defaults (that might be configurable) into a header
reed@google.com [Wed, 29 Feb 2012 13:03:00 +0000 (13:03 +0000)]
move SKPaint's defaults (that might be configurable) into a header

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

12 years agoRemove references to svg.gyp from projects that don't use it.
tomhudson@google.com [Tue, 28 Feb 2012 19:03:13 +0000 (19:03 +0000)]
Remove references to svg.gyp from projects that don't use it.
svg is now an orphan and can be deprecated.

http://codereview.appspot.com/5703047/

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

12 years agorebaseline after gamma correction change
reed@google.com [Tue, 28 Feb 2012 18:14:50 +0000 (18:14 +0000)]
rebaseline after gamma correction change

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

12 years agoimplement gamma correction for freetype text.
reed@google.com [Tue, 28 Feb 2012 17:06:02 +0000 (17:06 +0000)]
implement gamma correction for freetype text.
Need to opt-in to have it applied to kA8 text (which chrome can't for a while)
A8 text needs to use Slight hinting to look better, but that is not forced...

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

12 years agowork in progress
caryclark@google.com [Tue, 28 Feb 2012 16:57:05 +0000 (16:57 +0000)]
work in progress

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

12 years agoRemove referenecs to nonexistent file SkImageDecoder_libpvjpeg.c from gyp
tomhudson@google.com [Tue, 28 Feb 2012 16:46:01 +0000 (16:46 +0000)]
Remove referenecs to nonexistent file SkImageDecoder_libpvjpeg.c from gyp

http://codereview.appspot.com/5707046/

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

12 years agohandle checking for large bounds correctly when SkScalar is fixed
reed@google.com [Tue, 28 Feb 2012 16:34:29 +0000 (16:34 +0000)]
handle checking for large bounds correctly when SkScalar is fixed

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

12 years agoImprove SSE2 code for Blending BlitRow functions, producing 10% speedup.
tomhudson@google.com [Tue, 28 Feb 2012 16:15:26 +0000 (16:15 +0000)]
Improve SSE2 code for Blending BlitRow functions, producing 10% speedup.
Courtesy of Evan Nier.

http://codereview.appspot.com/5518045/

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

12 years agoSSE2 version of ClampX_ClampY_{no}filter_affine, courtesy of Jin Yang.
tomhudson@google.com [Tue, 28 Feb 2012 15:41:49 +0000 (15:41 +0000)]
SSE2 version of ClampX_ClampY_{no}filter_affine, courtesy of Jin Yang.
Speeds up drawing rotated bitmaps by 20-30%.

http://codereview.appspot.com/5700076/

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

12 years agosince SkScalarCeil/Floor do not explicitly detect overflows from float->int,
reed@google.com [Tue, 28 Feb 2012 15:32:42 +0000 (15:32 +0000)]
since SkScalarCeil/Floor do not explicitly detect overflows from float->int,
create special version of roundOut that checks if the result can fit, and if
not we abort the draw. 32bits (or 30 for antialiasing) should be enough for
anyone...

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

12 years agoreverting r3268 because of test failures
junov@chromium.org [Tue, 28 Feb 2012 15:27:59 +0000 (15:27 +0000)]
reverting r3268 because of test failures

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

12 years agobuild fix
junov@chromium.org [Tue, 28 Feb 2012 15:08:55 +0000 (15:08 +0000)]
build fix

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

12 years agoSkDeferredCanvas, performance: small refactor to remove unnecessary conditional branc...
junov@chromium.org [Tue, 28 Feb 2012 15:02:06 +0000 (15:02 +0000)]
SkDeferredCanvas, performance: small refactor to remove unnecessary conditional branches on all canvas API calls

REVIEW=http://codereview.appspot.com/5700086/

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

12 years agoDisable check for large bounds in antipath
reed@google.com [Mon, 27 Feb 2012 22:10:21 +0000 (22:10 +0000)]
Disable check for large bounds in antipath

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

12 years agofix reorder initialization warning
djsollen@google.com [Mon, 27 Feb 2012 16:22:48 +0000 (16:22 +0000)]
fix reorder initialization warning

http://codereview.appspot.com/5699084/

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

12 years agoreapply r3259 (that was reverted) with fix.
djsollen@google.com [Mon, 27 Feb 2012 16:17:59 +0000 (16:17 +0000)]
reapply r3259 (that was reverted) with fix.

The SkASSERT was incorrect and failing on debug runs.
Review URL: https://codereview.appspot.com/5699071

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

12 years agoCoding style corrections in SkDeferredCanvas.cpp: brace placement, 80col, etc.
junov@chromium.org [Fri, 24 Feb 2012 22:06:27 +0000 (22:06 +0000)]
Coding style corrections in SkDeferredCanvas.cpp: brace placement, 80col, etc.

unreviewed.

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

12 years agoModify SkDeferredCanvas so that it uses its inherited SkCanvas to track matrix and...
junov@chromium.org [Fri, 24 Feb 2012 21:54:07 +0000 (21:54 +0000)]
Modify SkDeferredCanvas so that it uses its inherited SkCanvas to track matrix and clipping state
Removed 'virtual' from a few canvas methods that no longer need it thanks to this change.

BUG=http://code.google.com/p/skia/issues/detail?id=506
TEST=Canvas unit test
REVIEW=http://codereview.appspot.com/5697052/

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

12 years agoreverting r3259 because of gm/test failure.
djsollen@google.com [Fri, 24 Feb 2012 21:21:51 +0000 (21:21 +0000)]
reverting r3259 because of gm/test failure.

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

12 years agoEnable quickRejectY in SkCanvas to be inlined.
djsollen@google.com [Fri, 24 Feb 2012 21:03:42 +0000 (21:03 +0000)]
Enable quickRejectY in SkCanvas to be inlined.

This CL was tested against the picturePlayback bench and
showed an approx 10-13% improvement on Android when playing
back text.
Review URL: https://codereview.appspot.com/5687083

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

12 years agoreverting r3257 because of gm failure.
junov@chromium.org [Fri, 24 Feb 2012 20:44:56 +0000 (20:44 +0000)]
reverting r3257 because of gm failure.

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

12 years agoFix copy/paste issue in GrInOrderDrawBuffer.
bsalomon@google.com [Fri, 24 Feb 2012 20:11:52 +0000 (20:11 +0000)]
Fix copy/paste issue in GrInOrderDrawBuffer.

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

12 years agoModify SkDeferredCanvas so that it uses its inherited SkCanvas to track matrix and...
junov@chromium.org [Fri, 24 Feb 2012 20:07:08 +0000 (20:07 +0000)]
Modify SkDeferredCanvas so that it uses its inherited SkCanvas to track matrix and clipping state
Removed 'virtual' from a few canvas methods that no longer need it thanks to this change.

BUG=http://code.google.com/p/skia/issues/detail?id=506
TEST=Canvas unit test
REVIEW=http://codereview.appspot.com/5697052/

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

12 years agoRemove SkFontHost::ValidFontID PART 2: remove definition and skia callers not that...
bungeman@google.com [Fri, 24 Feb 2012 19:56:33 +0000 (19:56 +0000)]
Remove SkFontHost::ValidFontID PART 2: remove definition and skia callers not that Chrome's font host has been updated.
See also https://chromiumcodereview.appspot.com/9347043/
http://codereview.appspot.com/5654055/

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

12 years agoRemove unused member from GrInOrderDrawBuffer
bsalomon@google.com [Fri, 24 Feb 2012 19:51:53 +0000 (19:51 +0000)]
Remove unused member from GrInOrderDrawBuffer

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

12 years agoEnable Android GM to produce PNG images.
djsollen@google.com [Fri, 24 Feb 2012 19:45:16 +0000 (19:45 +0000)]
Enable Android GM to produce PNG images.

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

12 years agocheck for null-device in iterator
reed@google.com [Fri, 24 Feb 2012 16:38:58 +0000 (16:38 +0000)]
check for null-device in iterator

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

12 years agorebaseline after recent gpu fix
reed@google.com [Fri, 24 Feb 2012 15:39:12 +0000 (15:39 +0000)]
rebaseline after recent gpu fix

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

12 years agoadd SkCreateDataProviderFromStream to SkCGUtils
reed@google.com [Fri, 24 Feb 2012 15:29:00 +0000 (15:29 +0000)]
add SkCreateDataProviderFromStream to SkCGUtils
implement SkFontHost create_from_file/stream using SkCGUtils

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

12 years agoFix typo in the gyp file.
djsollen@google.com [Fri, 24 Feb 2012 14:10:44 +0000 (14:10 +0000)]
Fix typo in the gyp file.

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

12 years agoEnable hardware float for all armv7 and add NDK required linker flags
djsollen@google.com [Fri, 24 Feb 2012 14:09:02 +0000 (14:09 +0000)]
Enable hardware float for all armv7 and add NDK required linker flags

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

12 years agoFix for crash in SkDeferredCanvas when optional SkPaint argument is NULL
junov@chromium.org [Thu, 23 Feb 2012 21:34:34 +0000 (21:34 +0000)]
Fix for crash in SkDeferredCanvas when optional SkPaint argument is NULL

BUG=http://code.google.com/p/skia/issues/detail?id=505
TEST=Canvas unit test
REVIEW=http://codereview.appspot.com/5699054/

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

12 years agoAdd a bench for picture playback.
djsollen@google.com [Thu, 23 Feb 2012 20:57:09 +0000 (20:57 +0000)]
Add a bench for picture playback.
Review URL: https://codereview.appspot.com/5694053

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

12 years agoRebaseline GM images for r3241
bsalomon@google.com [Thu, 23 Feb 2012 19:44:53 +0000 (19:44 +0000)]
Rebaseline GM images for r3241

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

12 years agoFix math in coverage_to_alpha() (renamed coverage_to_partial_alpha()), behind
tomhudson@google.com [Thu, 23 Feb 2012 19:34:34 +0000 (19:34 +0000)]
Fix math in coverage_to_alpha() (renamed coverage_to_partial_alpha()), behind
a #define so that we can stage coping with the huge amount of rebaselining
necessary.

http://codereview.appspot.com/5696049/

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

12 years agoalways allocate (only) the width of the clip for the AA row, since it will
reed@google.com [Thu, 23 Feb 2012 19:20:19 +0000 (19:20 +0000)]
always allocate (only) the width of the clip for the AA row, since it will
already be clamped to 32K (our impl limit at the moment.)

add unittest to confirm this fix

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

12 years agoIn convex path renderer, translate polygon to origin for fanPt computation
bsalomon@google.com [Thu, 23 Feb 2012 19:18:37 +0000 (19:18 +0000)]
In convex path renderer, translate polygon to origin for fanPt computation

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

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

12 years agoremove bogus assert (leftover from some long-forgotten debugging session)
reed@google.com [Thu, 23 Feb 2012 18:06:19 +0000 (18:06 +0000)]
remove bogus assert (leftover from some long-forgotten debugging session)

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

12 years agoFix memory leak in GetTableData() and add unittests for it
reed@google.com [Thu, 23 Feb 2012 16:15:58 +0000 (16:15 +0000)]
Fix memory leak in GetTableData() and add unittests for it
Review URL: https://codereview.appspot.com/5693048

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

12 years agodon't require tableCount>0 since some platform fonts may not support that
reed@google.com [Thu, 23 Feb 2012 15:45:17 +0000 (15:45 +0000)]
don't require tableCount>0 since some platform fonts may not support that

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

12 years agoGPU device preserves pixel values across read/write/read of unpremul pixel values
bsalomon@google.com [Thu, 23 Feb 2012 15:39:54 +0000 (15:39 +0000)]
GPU device preserves pixel values across read/write/read of unpremul pixel values

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

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

12 years agoremove 'OS/2' table from known-sizes, since its size is not always the same
reed@google.com [Thu, 23 Feb 2012 15:11:42 +0000 (15:11 +0000)]
remove 'OS/2' table from known-sizes, since its size is not always the same

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

12 years agoFixing Canvas unit test to correctly verify object flattening in SkPicture
junov@chromium.org [Thu, 23 Feb 2012 14:59:22 +0000 (14:59 +0000)]
Fixing Canvas unit test to correctly verify object flattening in SkPicture

BUG=http://code.google.com/p/skia/issues/detail?id=507
TEST=Canvas unit test
REVIEW=http://codereview.appspot.com/5685082/

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

12 years agoFix line endings.
bsalomon@google.com [Thu, 23 Feb 2012 14:54:49 +0000 (14:54 +0000)]
Fix line endings.

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

12 years agoadd unittest for FontHost (just tables at the moment)
reed@google.com [Thu, 23 Feb 2012 14:51:10 +0000 (14:51 +0000)]
add unittest for FontHost (just tables at the moment)

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

12 years agoremove unused variable
bsalomon@google.com [Thu, 23 Feb 2012 14:49:35 +0000 (14:49 +0000)]
remove unused variable

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

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

12 years agoProvide fallbacks for web fonts.
caryclark@google.com [Thu, 23 Feb 2012 14:02:38 +0000 (14:02 +0000)]
Provide fallbacks for web fonts.

This fixes http://code.google.com/p/chromium/issues/detail?id=114531
Review URL: https://codereview.appspot.com/5683078

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

12 years agoUse nested template expansions to implement Config8888 conversions.
bsalomon@google.com [Wed, 22 Feb 2012 21:25:34 +0000 (21:25 +0000)]
Use nested template expansions to implement Config8888 conversions.
Review URL: https://codereview.appspot.com/5690068

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

12 years agoDisabling failing unit test on linux
junov@chromium.org [Wed, 22 Feb 2012 21:24:41 +0000 (21:24 +0000)]
Disabling failing unit test on linux

TBR=reed
TEST=unit test CanvasTest
BUG=http://code.google.com/p/skia/issues/detail?id=507

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

12 years agoAdding more unit testing for SkCanvas and derived classes.
junov@chromium.org [Wed, 22 Feb 2012 21:00:42 +0000 (21:00 +0000)]
Adding more unit testing for SkCanvas and derived classes.

BUG=http://code.google.com/p/skia/issues/detail?id=481
REVIEW=http://codereview.appspot.com/5674077/
TEST=unit test CanvasTest

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

12 years agoSSE2 version of ClampX_ClampY_{no}filter_scale; yields 10-20% speedup in
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

12 years agoRemove incorrect GrAssert calls in GrResourceCache::removeAll
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

12 years agoChange append to appendf for call sites with no format arguments.
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

12 years agowork in progress
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

12 years agoUse intrinsics for atomic inc and dec on Windows.
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

12 years agoRemove SkFontHost::ValidFontID PART 1: remove only caller.
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

12 years agoRevert r3036. This change breaks loading images as
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

12 years agoAdded BSD license language where missing.
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

12 years agoTurn off test in fixed pt build.
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

12 years agoMake cross_prod used in SkPath::cheapComputeDirection fallback to double computation...
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

12 years agoRemove two static initializers from debug builds
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

12 years agoRemove on static initializer in GrGpu.cpp
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

12 years agoadd missing files
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

12 years agowork in progress
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

12 years agoLazily allocate our global pool for imagerefs
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

12 years agobe sure to mark fLastY with the bottom of the rect in blitRect
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

12 years agoaaclip needs to handle paths with holes
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

12 years agoadd a todo
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