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