Commit Graph

3408 Commits

Author SHA1 Message Date
vandebo@chromium.org
386dfc049b [PDF] Handle failures of matrix inversion
Previously reviewed in https://codereview.appspot.com/6033047.  Rolled back
because of unrelated fixed-point bugs.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@3715 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 22:31:52 +00:00
vandebo@chromium.org
c39c8674c9 Fix some fixed-point bugs.
Review URL: https://codereview.appspot.com/6047046

git-svn-id: http://skia.googlecode.com/svn/trunk@3714 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 21:46:18 +00:00
reed@google.com
99b300ed9d chop hairlines against 32K bounds, since that is our limit (currently)
for a fixedpoint implementation.



git-svn-id: http://skia.googlecode.com/svn/trunk@3713 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 20:43:47 +00:00
vandebo@chromium.org
8aa66b6f76 Revert "[PDF] Handle failures of matrix inversion" while I investigate fixed point failures.
This reverts commit r3711

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

git-svn-id: http://skia.googlecode.com/svn/trunk@3712 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 20:37:37 +00:00
vandebo@chromium.org
ebad2d9e20 [PDF] Handle failures of matrix inversion.
Review URL: https://codereview.appspot.com/6033047

git-svn-id: http://skia.googlecode.com/svn/trunk@3711 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 20:19:03 +00:00
bsalomon@google.com
b72f203fc4 Fix reset of scissor state in onResetContext
Review URL: http://codereview.appspot.com/6061046/



git-svn-id: http://skia.googlecode.com/svn/trunk@3709 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 19:29:51 +00:00
reed@google.com
f11508d7f4 expose font-table APIs to SkTypeface
Review URL: https://codereview.appspot.com/6050046

git-svn-id: http://skia.googlecode.com/svn/trunk@3707 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 18:01:31 +00:00
bsalomon@google.com
f3488ebaac Revert r3705 for fixed pt failures.
git-svn-id: http://skia.googlecode.com/svn/trunk@3706 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 15:38:20 +00:00
bsalomon@google.com
c047d414a4 track oval in SkPath
Committed on behalf of Guanqun.Lu@gmail.com

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



git-svn-id: http://skia.googlecode.com/svn/trunk@3705 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 15:22:06 +00:00
reed@google.com
bddbc45b0b we have to explicitly pin the results from sect_with_horizontal, since even with
doubles we can get the wrong results (computed X value outside of [start...stop].

added regression test inside the code

fixes bug in Fuzzer samplecode



git-svn-id: http://skia.googlecode.com/svn/trunk@3704 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 14:43:38 +00:00
bsalomon@google.com
8a189b0632 Add coverage AA support for SampleApp root layers (windows only)
Review URL: http://codereview.appspot.com/6043045/




git-svn-id: http://skia.googlecode.com/svn/trunk@3703 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 12:43:00 +00:00
caryclark@google.com
78e17130f3 work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3702 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-17 11:40:34 +00:00
caryclark@google.com
95bfdedb37 Add cast to support 64 bit.
http://code.google.com/p/skia/issues/detail?id=524
Review URL: https://codereview.appspot.com/6038053

git-svn-id: http://skia.googlecode.com/svn/trunk@3701 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 19:21:30 +00:00
bsalomon@google.com
82a7bfcb2d add defer canvas to bench
Committed on behalf of Guanqun.Lu@gmail.com

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


git-svn-id: http://skia.googlecode.com/svn/trunk@3700 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 19:11:17 +00:00
justinlin@google.com
fffb2f1bda Add SK_SYSTEM_ZLIB define.
Review URL: https://codereview.appspot.com/5991067

git-svn-id: http://skia.googlecode.com/svn/trunk@3699 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 19:10:21 +00:00
robertphillips@google.com
1e945b7e70 Minor refactoring to pull GrClipMaskManager into its own files
http://codereview.appspot.com/5978055/



git-svn-id: http://skia.googlecode.com/svn/trunk@3697 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 18:03:03 +00:00
tomhudson@google.com
13eaaaa75a Allow specifying multiple configs for bench, e.g. -config 8888 -config GPU.
Patch courtesy of Guanqun Lu.

http://codereview.appspot.com/6031057/



git-svn-id: http://skia.googlecode.com/svn/trunk@3696 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 18:00:40 +00:00
reed@google.com
c3bebf4673 rebaseline for fixes to cubic clipping
git-svn-id: http://skia.googlecode.com/svn/trunk@3695 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 17:14:36 +00:00
reed@google.com
10d02b6ba9 need to invert the alpha computation for single scanline on innerfill
found by Fuzzer



git-svn-id: http://skia.googlecode.com/svn/trunk@3694 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 17:12:38 +00:00
reed@google.com
a9abac2c75 rebaseline for quad clipper fix
git-svn-id: http://skia.googlecode.com/svn/trunk@3693 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 17:07:57 +00:00
robertphillips@google.com
730ebe5e00 First pass at stencil clip mask refactoring
http://codereview.appspot.com/6031043/



git-svn-id: http://skia.googlecode.com/svn/trunk@3692 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 16:33:13 +00:00
reed@google.com
a90aa53498 fix clamping when we chop a cubic
Review URL: https://codereview.appspot.com/6039048

git-svn-id: http://skia.googlecode.com/svn/trunk@3691 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 16:27:09 +00:00
robertphillips@google.com
0dd84a399a Minor code cleanup of Debug GL Interface
http://codereview.appspot.com/6032043/



git-svn-id: http://skia.googlecode.com/svn/trunk@3690 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 16:24:35 +00:00
robertphillips@google.com
6853e808a4 Addressed more Windows compiler complaint issues
http://codereview.appspot.com/6007056/



git-svn-id: http://skia.googlecode.com/svn/trunk@3689 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 15:50:18 +00:00
epoger@google.com
4f8975ea0f roll out http://code.google.com/p/skia/source/detail?r=3687 because Mac 10.6 bot is failing
git-svn-id: http://skia.googlecode.com/svn/trunk@3688 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 15:49:04 +00:00
epoger@google.com
cff7f5bbf5 Make Mac build generate both 32-bit and 64-bit code.
BUG=http://code.google.com/p/skia/issues/detail?id=524
Review URL: https://codereview.appspot.com/6022057

git-svn-id: http://skia.googlecode.com/svn/trunk@3687 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 15:14:22 +00:00
epoger@google.com
66ef614693 Fix 64-bit build on Mac
BUG=http://code.google.com/p/skia/issues/detail?id=524
Thanks to mmaerean@adobe.com for the patch.
Review URL: https://codereview.appspot.com/6022058

git-svn-id: http://skia.googlecode.com/svn/trunk@3686 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 15:04:45 +00:00
robertphillips@google.com
fa1d29112d Propagated AA flags through Ganesh's clip stack (in preparation for GL AA clipping)
http://codereview.appspot.com/6038051/



git-svn-id: http://skia.googlecode.com/svn/trunk@3685 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 14:49:14 +00:00
bsalomon@google.com
d0b95896d6 Revert r3681 due to fixed point failures in tests.
git-svn-id: http://skia.googlecode.com/svn/trunk@3684 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 14:41:02 +00:00
bsalomon@google.com
0b26c15876 Add file missing from r3682 checkin
git-svn-id: http://skia.googlecode.com/svn/trunk@3683 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 14:19:32 +00:00
bsalomon@google.com
580a99c58f add gm circles
Committed on behalf of Guanqun.Lu@gmail.com

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




git-svn-id: http://skia.googlecode.com/svn/trunk@3682 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 14:10:47 +00:00
bsalomon@google.com
8d75bf6ab3 add isSimilarityTransform() and some tests
Committed on behalf of Guanqun.Lu@gmail.com

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




git-svn-id: http://skia.googlecode.com/svn/trunk@3681 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 14:06:50 +00:00
reed@google.com
0b107d7b05 rebaseline after clamp fix to quad clipper in rev. 3677
git-svn-id: http://skia.googlecode.com/svn/trunk@3680 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-16 12:19:42 +00:00
mike@reedtribe.org
90bf427001 proper handling if SkMatrix::invert failes, addresses hack fix in rev. 3657
git-svn-id: http://skia.googlecode.com/svn/trunk@3679 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-14 19:06:16 +00:00
mike@reedtribe.org
6093e65829 dd DrawPathTest to gyp
add regression tests for bug 533



git-svn-id: http://skia.googlecode.com/svn/trunk@3678 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-14 12:55:17 +00:00
reed@google.com
e01403096c pin the edge points to the clip, rather than just calling clamp_ge/le in the
quad chopper. This fixes some gaps we were seeing when the float match lost
precisions.

fixes http://code.google.com/p/skia/issues/detail?id=533



git-svn-id: http://skia.googlecode.com/svn/trunk@3677 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 21:04:55 +00:00
vandebo@chromium.org
b054990307 [PDF] If matrix inversion fails, use the identity matrix.
BUG=chrome:123078

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

git-svn-id: http://skia.googlecode.com/svn/trunk@3676 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 20:45:46 +00:00
caryclark@google.com
32a0fb051f Some fonts do not measure correctly in Mountain Lion,
carrying over a bug from Lion. Add the check
appropriately.
Review URL: https://codereview.appspot.com/6026045

git-svn-id: http://skia.googlecode.com/svn/trunk@3675 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 16:05:44 +00:00
reed@google.com
5e508b9156 rebaseline after SkScalarNearlyZero() change (< to <=) rev. 3652
git-svn-id: http://skia.googlecode.com/svn/trunk@3674 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 15:29:12 +00:00
epoger@google.com
40d338dee0 Revert gm baseline deletions from r3653 and r3656, so I can rebaseline them with proper diffs
Review URL: https://codereview.appspot.com/6021047

git-svn-id: http://skia.googlecode.com/svn/trunk@3673 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 15:02:57 +00:00
epoger@google.com
99ec9220ca exercise buildbot change in r3671
git-svn-id: http://skia.googlecode.com/svn/trunk@3672 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 14:27:49 +00:00
reed@google.com
90c07ea1d0 replace getTotalClipStack() with replayClips()+ClipVisitor
git-svn-id: http://skia.googlecode.com/svn/trunk@3670 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-13 13:50:27 +00:00
robertphillips@google.com
670ff9ae7f Fixed uninitialized memory issue on Linux when running "gm --debuggl"
http://codereview.appspot.com/6012052/



git-svn-id: http://skia.googlecode.com/svn/trunk@3666 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 19:53:31 +00:00
reed@google.com
f3edf9fdc9 add SK_WARN_UNUSED_RESULT warning to SkPathMeasure methods that might leave
POD var-arguments uninitialized.



git-svn-id: http://skia.googlecode.com/svn/trunk@3665 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 19:44:38 +00:00
epoger@google.com
1610a685e0 Make download_baselines.py download *all* platforms, if none are specified.
Simplifies the Skia rebaselining process... updated the --help pages in both scripts, too.

BUG=http://code.google.com/p/skia/issues/detail?id=486
Review URL: https://codereview.appspot.com/6016045

git-svn-id: http://skia.googlecode.com/svn/trunk@3664 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 18:02:25 +00:00
epoger@google.com
70f8bfea3e rename compare-baselines.py and download-baselines.py using underscores instead of hyphens, as per python requirements
git-svn-id: http://skia.googlecode.com/svn/trunk@3663 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 17:17:59 +00:00
epoger@google.com
01f78702f1 If skdiff encounters image size mismatch, do not display diff images
Currently, if skdiff encounters images whose expected and actual dimensions do not match, it will attempt (incorrectly) to display diffs.  Better to not display the diffs at all than to display misleading diffs...
Review URL: https://codereview.appspot.com/6015049

git-svn-id: http://skia.googlecode.com/svn/trunk@3662 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 16:32:04 +00:00
reed@google.com
a707f60874 mark getTotalClip as deprecated
remove unimplemented (and duplicate) getTotalClipBounds



git-svn-id: http://skia.googlecode.com/svn/trunk@3661 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 16:12:16 +00:00
bungeman@google.com
875eb9835a Fix crash with LCD vertical text.
https://codereview.appspot.com/6012050/


git-svn-id: http://skia.googlecode.com/svn/trunk@3660 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 15:53:23 +00:00
reed@google.com
2eb5bb1e28 can't perform fast top_bottom cull if the text is vertical
git-svn-id: http://skia.googlecode.com/svn/trunk@3659 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-04-12 14:27:42 +00:00