platform/upstream/libSkiaSharp.git
12 years agoGPU blit speedup: avoid texture filtering and texture domain when not necessary
junov@chromium.org [Fri, 16 Mar 2012 20:54:17 +0000 (20:54 +0000)]
GPU blit speedup: avoid texture filtering and texture domain when not necessary

BUG=crbug.com/102284
REVIEW=http://codereview.appspot.com/5836047/
TEST=code path already covered by gm/nocolorbleed gm/bitmapfilters and others

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

12 years ago[PDF] Fix shaders when the initial transform has a translation.
vandebo@chromium.org [Fri, 16 Mar 2012 19:50:37 +0000 (19:50 +0000)]
[PDF] Fix shaders when the initial transform has a translation.

Fixes chromium bug 115041

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

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

12 years agoAdd libjpeg.gyp that wraps third_party/externals/libjpeg/libjpeg.gyp
epoger@google.com [Fri, 16 Mar 2012 19:01:38 +0000 (19:01 +0000)]
Add libjpeg.gyp that wraps third_party/externals/libjpeg/libjpeg.gyp
Review URL: https://codereview.appspot.com/5848046

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

12 years agoAdd os_posix gyp variable, nesting variables dicts as needed to do so.
epoger@google.com [Fri, 16 Mar 2012 18:28:24 +0000 (18:28 +0000)]
Add os_posix gyp variable, nesting variables dicts as needed to do so.
Review URL: https://codereview.appspot.com/5845050

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

12 years agoSkip unnecessary copies in GrPaint operator ==
bsalomon@google.com [Fri, 16 Mar 2012 17:50:37 +0000 (17:50 +0000)]
Skip unnecessary copies in GrPaint operator ==

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

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

12 years agoDelete 'obsolete' directory, most of whose contents have been there more than a year.
tomhudson@google.com [Fri, 16 Mar 2012 17:16:25 +0000 (17:16 +0000)]
Delete 'obsolete' directory, most of whose contents have been there more than a year.

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

12 years agoCall reset() in text context rather than set to SkMatrix::I(). Perf improvement in...
bsalomon@google.com [Fri, 16 Mar 2012 15:41:40 +0000 (15:41 +0000)]
Call reset() in text context rather than set to SkMatrix::I(). Perf improvement in bench.

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

12 years agoadd IRect variant of getBounds()
reed@google.com [Fri, 16 Mar 2012 14:58:07 +0000 (14:58 +0000)]
add IRect variant of getBounds()

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

12 years agodecal mode babystep
reed@google.com [Fri, 16 Mar 2012 14:38:06 +0000 (14:38 +0000)]
decal mode babystep

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

12 years agoSplit GrTextContext into baseclass and subclass
bsalomon@google.com [Fri, 16 Mar 2012 14:02:46 +0000 (14:02 +0000)]
Split GrTextContext into baseclass and subclass

This is a step towards enabling alternate text rendering code paths (GLyphy in particular)

Committed on behalf of baranowski@chromium.org

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

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

12 years agoMake all gyp targets automatically include common.gypi
epoger@google.com [Fri, 16 Mar 2012 13:52:49 +0000 (13:52 +0000)]
Make all gyp targets automatically include common.gypi

Do this, rather than including common.gypi explicitly in all our gyp files, so that gyp files we use but do not maintain (e.g., third_party/externals/libjpeg/libjpeg.gyp) will include common.gypi too.
Review URL: https://codereview.appspot.com/5820068

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

12 years agoforward declare SkRect
reed@google.com [Thu, 15 Mar 2012 21:18:11 +0000 (21:18 +0000)]
forward declare SkRect

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

12 years agoadd getBounds() helper
reed@google.com [Thu, 15 Mar 2012 21:17:03 +0000 (21:17 +0000)]
add getBounds() helper

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

12 years agoupdate baseline
reed@google.com [Thu, 15 Mar 2012 19:52:39 +0000 (19:52 +0000)]
update baseline

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

12 years agoupdate baseline
reed@google.com [Thu, 15 Mar 2012 19:51:54 +0000 (19:51 +0000)]
update baseline

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

12 years agoClose a couple of minor memory leaks, add a valgrind suppression file to
tomhudson@google.com [Thu, 15 Mar 2012 18:16:39 +0000 (18:16 +0000)]
Close a couple of minor memory leaks, add a valgrind suppression file to
mute complaints about apparent driver bugs.

http://codereview.appspot.com/5837046/

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

12 years agoChange vertex buffer size for draw buffer. Hopefully helps with some of the perf...
bsalomon@google.com [Thu, 15 Mar 2012 17:47:06 +0000 (17:47 +0000)]
Change vertex buffer size for draw buffer. Hopefully helps with some of the perf regression of r3382 on txt drawing.

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

12 years agoFix broken android build
djsollen@google.com [Thu, 15 Mar 2012 16:04:27 +0000 (16:04 +0000)]
Fix broken android build

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

12 years agoAdd CreateFallbackForScript to SkTypeface for Android.
djsollen@google.com [Thu, 15 Mar 2012 15:49:51 +0000 (15:49 +0000)]
Add CreateFallbackForScript to SkTypeface for Android.

WebKit uses HarfBuzz directly to do Complex Text Layout, so it needs to get the
proper SkTypeface to pass it to HarfBuzz. However, on Android, fallback scripts
have no name, and we can only get them by file name each time (CreateFromFile).
This actually breaks the semantics of SkTypeface, which states 'The ID should
be unique for the underlying font file/data, not unique per typeface instance.'

And add 2 helper function to convert between FallbackScripts enum and font file
name. These are useful for WebKit's FontCache, which needs string as key.

https://codereview.appspot.com/5797066/

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

12 years agoCleanup sample slide for drawTextOnPath
djsollen@google.com [Thu, 15 Mar 2012 15:01:34 +0000 (15:01 +0000)]
Cleanup sample slide for drawTextOnPath
Review URL: https://codereview.appspot.com/5834048

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

12 years agoPerform degenerate check in device coords in convex path renderer
bsalomon@google.com [Thu, 15 Mar 2012 14:40:46 +0000 (14:40 +0000)]
Perform degenerate check in device coords in convex path renderer

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

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

12 years agodon't clamp the stopScale to 0 unless it originally exceeded the clip. This is
reed@google.com [Thu, 15 Mar 2012 14:34:40 +0000 (14:34 +0000)]
don't clamp the stopScale to 0 unless it originally exceeded the clip. This is
a tweak on the fix in 3366, but in that earlier change, I mistakenly changed
> to >=. This CL just restores the compare to >

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

12 years agoRebaseline GMs from r3397
bsalomon@google.com [Thu, 15 Mar 2012 14:21:49 +0000 (14:21 +0000)]
Rebaseline GMs from r3397

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

12 years agoAllow compiler to optimize applying quadratic UV matrix to verts
bsalomon@google.com [Thu, 15 Mar 2012 13:51:08 +0000 (13:51 +0000)]
Allow compiler to optimize applying quadratic UV matrix to verts

Code Review: http://codereview.appspot.com/5833048/

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

12 years agoClose an (incidental) memory leak in gmmain.
tomhudson@google.com [Thu, 15 Mar 2012 13:39:51 +0000 (13:39 +0000)]
Close an (incidental) memory leak in gmmain.
Create a suppressions file for gm so that valgrind doesn't warn about
dubious actions the driver takes. There *may* be one of those that we
could do something about...

http://codereview.appspot.com/5820056/

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

12 years agoExpand SkMatrix type mask from uint8 to uint32, aligning the struct
tomhudson@google.com [Thu, 15 Mar 2012 13:07:25 +0000 (13:07 +0000)]
Expand SkMatrix type mask from uint8 to uint32, aligning the struct
so there's no uninitialized padding and potentially allowing future
expansion.

http://codereview.appspot.com/5824056/
http://code.google.com/p/skia/issues/detail?id=354

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

12 years agomake commonBitmap un-virtual. That was a leftover from previous subclassing
reed@google.com [Thu, 15 Mar 2012 12:10:47 +0000 (12:10 +0000)]
make commonBitmap un-virtual. That was a leftover from previous subclassing
I think.

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

12 years agoupdate test
reed@google.com [Wed, 14 Mar 2012 20:15:47 +0000 (20:15 +0000)]
update test

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

12 years agoadd baselines
reed@google.com [Wed, 14 Mar 2012 20:15:04 +0000 (20:15 +0000)]
add baselines

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

12 years agoadd baselines
reed@google.com [Wed, 14 Mar 2012 20:12:36 +0000 (20:12 +0000)]
add baselines

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

12 years agounittest for kUTF32_TextEncoding
reed@google.com [Wed, 14 Mar 2012 20:05:35 +0000 (20:05 +0000)]
unittest for kUTF32_TextEncoding

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

12 years agoadd baselines
reed@google.com [Wed, 14 Mar 2012 20:05:13 +0000 (20:05 +0000)]
add baselines

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

12 years agotweak gm bounds to better fit the content
reed@google.com [Wed, 14 Mar 2012 20:00:42 +0000 (20:00 +0000)]
tweak gm bounds to better fit the content
remove assert that is too strict if the src is the dst of a prev draw
(where alpha might be 0xFE, even if it *should* be 0xFF)

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

12 years agoadd kUTF32_TextEncoding
reed@google.com [Wed, 14 Mar 2012 19:41:55 +0000 (19:41 +0000)]
add kUTF32_TextEncoding

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

12 years agoFix four memory leaks uncovered by valgrinding gm tests.
vandebo@chromium.org [Wed, 14 Mar 2012 18:34:15 +0000 (18:34 +0000)]
Fix four memory leaks uncovered by valgrinding gm tests.

All are triggered by PDF code.
 Two are missing unref's on SkData.
 One is a missing unref on a SkAdvancedTypefaceMetrics.
 The last is missing destruction of SkClipStack internal state.

BUG=526

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

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

12 years agoDisable overly heavy benchmark - 15x slower than any other benchmark
tomhudson@google.com [Wed, 14 Mar 2012 18:33:54 +0000 (18:33 +0000)]
Disable overly heavy benchmark - 15x slower than any other benchmark
and not giving us particularly important information. It may be useful
to occasionally reactivate it when trying to optimize rectangle blits,
but otherwise it was a waste to have clogging up the performance bots.

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

12 years agoThis update fixes the problem with GLX failing to find a valid configuration on Linux...
robertphillips@google.com [Wed, 14 Mar 2012 18:06:26 +0000 (18:06 +0000)]
This update fixes the problem with GLX failing to find a valid configuration on Linux laptops (Issue 513).

The base issue here was that the default GLX implementation on some Linux laptops lies about its version numbering. Code in SkNativeGLContext_unix.cpp was checking the version number to avoid using FBConfigs in versions prior to 1.3 and thus incorrectly stopped processing.

To resolve this a separate configuration path has been added that uses the pre-1.3 method (i.e., XGetVisualInfo and glXGetConfig). The run-time version check has also been removed and a #define has been added to toggle between the two implementations. This allows the FBConfig method to be used with the wayward GLX implementation while the legacy method can be used with older implementations.

Please see http://codereview.appspot.com/5823049/ for more information.

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

12 years agoRebaselines from r3382 for bots that completed before bot reset.
bsalomon@google.com [Wed, 14 Mar 2012 14:13:11 +0000 (14:13 +0000)]
Rebaselines from r3382 for bots that completed before bot reset.

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

12 years agoBatch path draws.
bsalomon@google.com [Wed, 14 Mar 2012 13:27:54 +0000 (13:27 +0000)]
Batch path draws.

THIS IS EXPECTED TO SUBTLY CHANGE ONE GM IMAGE, WILL REBASELINE.

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

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

12 years agoenable fractionalint (64bit) math in bitmap procs
reed@google.com [Wed, 14 Mar 2012 12:21:17 +0000 (12:21 +0000)]
enable fractionalint (64bit) math in bitmap procs

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

12 years agoadd baselines
reed@google.com [Wed, 14 Mar 2012 12:19:00 +0000 (12:19 +0000)]
add baselines

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

12 years agoadd baselines
reed@google.com [Wed, 14 Mar 2012 12:17:44 +0000 (12:17 +0000)]
add baselines

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

12 years agoadd baselines
reed@google.com [Wed, 14 Mar 2012 12:15:07 +0000 (12:15 +0000)]
add baselines

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

12 years agoneed to pack the two values into a 32bit long
mike@reedtribe.org [Wed, 14 Mar 2012 02:04:40 +0000 (02:04 +0000)]
need to pack the two values into a 32bit long

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

12 years agoadd build option to revert hairline-clipping fix from 3366
reed@google.com [Tue, 13 Mar 2012 17:29:54 +0000 (17:29 +0000)]
add build option to revert hairline-clipping fix from 3366

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

12 years agoRebaseline for r3374.
bungeman@google.com [Tue, 13 Mar 2012 15:42:26 +0000 (15:42 +0000)]
Rebaseline for r3374.

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

12 years agoUse floats for mask table for accuracy.
bungeman@google.com [Tue, 13 Mar 2012 14:55:12 +0000 (14:55 +0000)]
Use floats for mask table for accuracy.
http://codereview.appspot.com/5783099/

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

12 years agoFix missing return statement
bsalomon@google.com [Tue, 13 Mar 2012 14:41:19 +0000 (14:41 +0000)]
Fix missing return statement

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

12 years agoAdd option to automatically flush GrInOrderDrawBuffer based on previewing vtx/idx...
bsalomon@google.com [Tue, 13 Mar 2012 14:32:07 +0000 (14:32 +0000)]
Add option to automatically flush GrInOrderDrawBuffer based on previewing vtx/idx request sizes

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

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

12 years agoChange interface on GrDrawTarget to reserve vtx/idx space at same time
bsalomon@google.com [Tue, 13 Mar 2012 12:40:53 +0000 (12:40 +0000)]
Change interface on GrDrawTarget to reserve vtx/idx space at same time

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

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

12 years agopromote floats to scalars for the fixed-point build
reed@google.com [Mon, 12 Mar 2012 21:31:00 +0000 (21:31 +0000)]
promote floats to scalars for the fixed-point build

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

12 years agodon't draw in constructor (makes debugging harder)
reed@google.com [Mon, 12 Mar 2012 21:14:09 +0000 (21:14 +0000)]
don't draw in constructor (makes debugging harder)

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

12 years agoadd init() method, so we don't draw in our constructor (makes debugging harder)
reed@google.com [Mon, 12 Mar 2012 21:13:48 +0000 (21:13 +0000)]
add init() method, so we don't draw in our constructor (makes debugging harder)

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

12 years agoadd unittest for rev. 3366 -- clipping antihairlines
reed@google.com [Mon, 12 Mar 2012 21:11:18 +0000 (21:11 +0000)]
add unittest for rev. 3366 -- clipping antihairlines

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

12 years agoif we are extending past our clip in antihairlines, don't draw that last
reed@google.com [Mon, 12 Mar 2012 20:26:17 +0000 (20:26 +0000)]
if we are extending past our clip in antihairlines, don't draw that last
row/col (setting its scale to 0), so we don't violate the clip-rule and
possibly double-draw the last pixel.

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

12 years agodetect all masks, and don't use masksuperblitter with those
reed@google.com [Mon, 12 Mar 2012 16:09:06 +0000 (16:09 +0000)]
detect all masks, and don't use masksuperblitter with those

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

12 years agoUpdating SkAvoidXferMode to use new 4byte interp function.
djsollen@google.com [Mon, 12 Mar 2012 14:39:20 +0000 (14:39 +0000)]
Updating SkAvoidXferMode to use new 4byte interp function.
Review URL: https://codereview.appspot.com/5795058

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

12 years agoadd SkFourByteInterp256 variant, when the caller has already scaled the last
reed@google.com [Mon, 12 Mar 2012 14:25:18 +0000 (14:25 +0000)]
add SkFourByteInterp256 variant, when the caller has already scaled the last
parameter to 0..256

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

12 years agoadd/delete some comments to path renderer interface
bsalomon@google.com [Mon, 12 Mar 2012 13:15:33 +0000 (13:15 +0000)]
add/delete some comments to path renderer interface

Submitted by Guanqun.Lu@gmail.com

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

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

12 years ago[PDF] Fix memory hungry inefficiency in pdf resource tracking.
vandebo@chromium.org [Fri, 9 Mar 2012 22:16:58 +0000 (22:16 +0000)]
[PDF] Fix memory hungry inefficiency in pdf resource tracking.

When moving the content of a device into a PDF object like SkPDFFormXObject
or SkPDFShader does, we only need the top level resources in the new object's
resource list, not the recursive set of objects.  Otherwise, when you
put a form on a form on form, etc, references to the objects multiply.

This fixed http://crbug.com/117321

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

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

12 years agoRebaseline for r3358.
bungeman@google.com [Fri, 9 Mar 2012 20:52:05 +0000 (20:52 +0000)]
Rebaseline for r3358.

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

12 years agoUse default lcd filter until we have the means to specify one.
bungeman@google.com [Fri, 9 Mar 2012 20:31:17 +0000 (20:31 +0000)]
Use default lcd filter until we have the means to specify one.

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

12 years agodon't flip the fractional bits (low 4) for bilerp when in kMirror_TileMode
reed@google.com [Fri, 9 Mar 2012 19:59:46 +0000 (19:59 +0000)]
don't flip the fractional bits (low 4) for bilerp when in kMirror_TileMode
Review URL: https://codereview.appspot.com/5795043

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

12 years ago[PDF] Fix some fixed/float-point mismatches for image shaders.
vandebo@chromium.org [Fri, 9 Mar 2012 17:18:50 +0000 (17:18 +0000)]
[PDF] Fix some fixed/float-point mismatches for image shaders.

BUG=520

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

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

12 years agoIf we try to clip against a path and the path only contains a rect, treat it as a...
tomhudson@google.com [Fri, 9 Mar 2012 16:48:20 +0000 (16:48 +0000)]
If we try to clip against a path and the path only contains a rect, treat it as a clip against a rect.
(Works around a performance issue: JavaScript Canvas2D API only provides canvas.clipPath(), and we don't
optimize path clips nearly as much as we can rects; this shows up more in Ganesh than in the software
rasterizer.)

http://codereview.appspot.com/5795044/

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

12 years agowhitespace change to trigger Skia buildbot
epoger@google.com [Fri, 9 Mar 2012 11:40:45 +0000 (11:40 +0000)]
whitespace change to trigger Skia buildbot

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

12 years agoadd more modes/flags to giantbitmap test
reed@google.com [Thu, 8 Mar 2012 22:13:39 +0000 (22:13 +0000)]
add more modes/flags to giantbitmap test

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

12 years agodefer any drawing until our first time, so we don't do it in our
reed@google.com [Thu, 8 Mar 2012 22:13:04 +0000 (22:13 +0000)]
defer any drawing until our first time, so we don't do it in our
constructor (which may get called multiple times)

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

12 years agoreenable vertical lcd support
reed@google.com [Thu, 8 Mar 2012 21:57:12 +0000 (21:57 +0000)]
reenable vertical lcd support

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

12 years agodelete for now, as I rework this test
reed@google.com [Thu, 8 Mar 2012 20:49:27 +0000 (20:49 +0000)]
delete for now, as I rework this test

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

12 years agodisable 64bit opt for now, as I debug skew failure in DRT
reed@google.com [Thu, 8 Mar 2012 20:48:28 +0000 (20:48 +0000)]
disable 64bit opt for now, as I debug skew failure in DRT

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

12 years agoapply FractionalInt improvement to rotated
reed@google.com [Thu, 8 Mar 2012 20:13:46 +0000 (20:13 +0000)]
apply FractionalInt improvement to rotated

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

12 years agouse floats to compute texture matrix / coords
bsalomon@google.com [Thu, 8 Mar 2012 19:53:02 +0000 (19:53 +0000)]
use floats to compute texture matrix / coords

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

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

12 years agoRebaseline for r3344.
bungeman@google.com [Thu, 8 Mar 2012 19:49:28 +0000 (19:49 +0000)]
Rebaseline for r3344.

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

12 years ago[PDF] Treat TTF Fonts that report zero glyphs as other font type.
vandebo@chromium.org [Thu, 8 Mar 2012 19:41:01 +0000 (19:41 +0000)]
[PDF] Treat TTF Fonts that report zero glyphs as other font type.

Fix crbug.com/117322 crash

Patch from Arthur Hsu, Original CL: http://codereview.appspot.com/5786057/

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

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

12 years agoDon't override the user's hinting level.
bungeman@google.com [Thu, 8 Mar 2012 19:19:51 +0000 (19:19 +0000)]
Don't override the user's hinting level.
http://codereview.appspot.com/5792049/

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

12 years agoTurn off pedantic check that causes too much noise in GL logs.
bsalomon@google.com [Thu, 8 Mar 2012 16:45:22 +0000 (16:45 +0000)]
Turn off pedantic check that causes too much noise in GL logs.

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

12 years agoMisc bug fix in GrInOrderDrawBuffer
bsalomon@google.com [Thu, 8 Mar 2012 16:41:42 +0000 (16:41 +0000)]
Misc bug fix in GrInOrderDrawBuffer

Code review: http://codereview.appspot.com/5787054/

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

12 years agoAnnotate overridden functions with SK_OVERRIDE in OverView class.
bsalomon@google.com [Thu, 8 Mar 2012 16:20:16 +0000 (16:20 +0000)]
Annotate overridden functions with SK_OVERRIDE in OverView class.

R=bsalomon@google.com

Signed-off-by: Thiago Farina <tfarina@chromium.org>
Committed on behalf of tfarina@chromium.org
Review URL: https://codereview.appspot.com/5752057/

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

12 years agoreturn false if the typeface cannot be found
reed@google.com [Thu, 8 Mar 2012 16:10:57 +0000 (16:10 +0000)]
return false if the typeface cannot be found
from https://codereview.appspot.com/5756059/

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

12 years agoFix GrBufferAllocPool to include padding in bytes used for an allocation
bsalomon@google.com [Thu, 8 Mar 2012 15:10:39 +0000 (15:10 +0000)]
Fix GrBufferAllocPool to include padding in bytes used for an allocation
Review URL: http://codereview.appspot.com/5784053/

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

12 years agodisable PDF for now, until http://code.google.com/p/skia/issues/detail?id=520
reed@google.com [Thu, 8 Mar 2012 14:40:07 +0000 (14:40 +0000)]
disable PDF for now, until code.google.com/p/skia/issues/detail?id=520
is fixed

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

12 years agoadd new baselines (still need to debug gpu version)
reed@google.com [Wed, 7 Mar 2012 21:50:37 +0000 (21:50 +0000)]
add new baselines (still need to debug gpu version)

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

12 years agouse higher precision (64bit) fixed-point for matrix proc
reed@google.com [Wed, 7 Mar 2012 21:47:41 +0000 (21:47 +0000)]
use higher precision (64bit) fixed-point for matrix proc
Review URL: https://codereview.appspot.com/5772044

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

12 years agomake pathrenderers release their geometry before returning
bsalomon@google.com [Wed, 7 Mar 2012 19:13:28 +0000 (19:13 +0000)]
make pathrenderers release their geometry before returning

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

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

12 years agoAdd libjpeg source as third_party/externals dependency
epoger@google.com [Wed, 7 Mar 2012 17:15:54 +0000 (17:15 +0000)]
Add libjpeg source as third_party/externals dependency
Review URL: https://codereview.appspot.com/5773043

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

12 years agoadd bench for various interp techniques used in bitmapshader_matrix
reed@google.com [Wed, 7 Mar 2012 12:36:07 +0000 (12:36 +0000)]
add bench for various interp techniques used in bitmapshader_matrix

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

12 years agoChange skia_target_arch != arm to skia_target_arch == x86 in gyp files
bsalomon@google.com [Tue, 6 Mar 2012 20:43:53 +0000 (20:43 +0000)]
Change skia_target_arch != arm to skia_target_arch == x86 in gyp files

BUG= http://code.google.com/p/skia/issues/detail?id=478

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

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

12 years agoSSSE3 code for drawing rotated bitmaps; produces 25-30% speedup.
tomhudson@google.com [Tue, 6 Mar 2012 14:59:04 +0000 (14:59 +0000)]
SSSE3 code for drawing rotated bitmaps; produces 25-30% speedup.
Courtesy of Jin Yang.

http://codereview.appspot.com/5704055/

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

12 years agowork in progress
caryclark@google.com [Mon, 5 Mar 2012 22:01:21 +0000 (22:01 +0000)]
work in progress
of note, all edge walker tests succeed at this point

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

12 years agoFix debug build: move assertions to GrContext callers, not static callees.
senorblanco@chromium.org [Mon, 5 Mar 2012 20:53:36 +0000 (20:53 +0000)]
Fix debug build:  move assertions to GrContext callers, not static callees.

Debug build fix; unreviewed.

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

12 years agoRecommit r3321 with fix for path orientation reversal.
bsalomon@google.com [Mon, 5 Mar 2012 20:50:10 +0000 (20:50 +0000)]
Recommit r3321 with fix for path orientation reversal.

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

12 years agoRefactor Gaussian blur and morphology from SkGpuDevice into GrContext.
senorblanco@chromium.org [Mon, 5 Mar 2012 20:41:22 +0000 (20:41 +0000)]
Refactor Gaussian blur and morphology from SkGpuDevice into GrContext.

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

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

12 years agoRevert accidentally checked in gm image in r3323.
bsalomon@google.com [Mon, 5 Mar 2012 20:29:22 +0000 (20:29 +0000)]
Revert accidentally checked in gm image in r3323.

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

12 years agoRevert r3321 because of GM failure
bsalomon@google.com [Mon, 5 Mar 2012 20:13:48 +0000 (20:13 +0000)]
Revert r3321 because of GM failure

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

12 years agomake skpaint2grpaint functions be local to skgpudevice.cpp
bsalomon@google.com [Mon, 5 Mar 2012 19:57:21 +0000 (19:57 +0000)]
make skpaint2grpaint functions be local to skgpudevice.cpp

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

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

12 years agoAvoid making a copy of the path in GrAAConvexPathRenderer
bsalomon@google.com [Mon, 5 Mar 2012 19:55:43 +0000 (19:55 +0000)]
Avoid making a copy of the path in GrAAConvexPathRenderer

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

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

12 years agoFix copy paste error in test ref counting.
vandebo@chromium.org [Mon, 5 Mar 2012 19:14:37 +0000 (19:14 +0000)]
Fix copy paste error in test ref counting.

TBR=reed@google.com

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

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

12 years ago[PDF] Fix name objects containing characters > 0x80 and add a test.
vandebo@chromium.org [Mon, 5 Mar 2012 18:44:33 +0000 (18:44 +0000)]
[PDF] Fix name objects containing characters > 0x80 and add a test.

This fixes chrome bug http://crbug.com/115258

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

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

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