Commit Graph

447 Commits

Author SHA1 Message Date
reed@android.com
ec10d21eb9 remove obsolete SK_BUILD_FOR_BREW conditional
git-svn-id: http://skia.googlecode.com/svn/trunk@473 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-12 22:58:35 +00:00
reed@android.com
9d3a985aa3 add glyph->unichar query (inverse of a cmap)
git-svn-id: http://skia.googlecode.com/svn/trunk@472 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-08 14:07:42 +00:00
reed@android.com
d0a529d028 fix memory leak
git-svn-id: http://skia.googlecode.com/svn/trunk@471 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-08 14:01:41 +00:00
agl@chromium.org
99e1b90d5b Add parens in order to make conditional correct.
I've been coding in Go too much and forgot that C is broken.

git-svn-id: http://skia.googlecode.com/svn/trunk@470 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-05 01:19:44 +00:00
agl@chromium.org
13c8558e37 Fix r466 which was causing Chromium valgrind failures.
See the added comment for details.

TBR=reed (since it's a build fix)

git-svn-id: http://skia.googlecode.com/svn/trunk@469 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-04 23:56:43 +00:00
reed@android.com
474a12c497 Added a virtual to SkBounder, called by text, that passes
the glyph's ID as well as its bounds. Made the universal
doIRect() non-abstract so that a child class can override
either the general flavor or the text flavor.



git-svn-id: http://skia.googlecode.com/svn/trunk@468 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-04 19:35:33 +00:00
reed@android.com
69975b0fce chant __ARM_ARCH_4__ to __ARM_ARCH_4T__, to reflect known android targets
git-svn-id: http://skia.googlecode.com/svn/trunk@467 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-04 19:23:32 +00:00
agl@chromium.org
e95c91e6d9 Add flag to enable bitmap strikes.
http://codereview.appspot.com/183096

git-svn-id: http://skia.googlecode.com/svn/trunk@466 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-01-04 18:27:55 +00:00
reed@android.com
030d8e68e2 add new file
git-svn-id: http://skia.googlecode.com/svn/trunk@465 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-21 18:34:13 +00:00
agl@chromium.org
55747ccdfb Native client build fix.
Patch from David Sehr.

Signed-off-by: Adam Langley <agl@chromium.org>

http://codereview.appspot.com/180090

git-svn-id: http://skia.googlecode.com/svn/trunk@464 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-18 22:50:15 +00:00
reed@android.com
19061bab94 update to include all files
git-svn-id: http://skia.googlecode.com/svn/trunk@463 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-18 21:36:42 +00:00
reed@android.com
e51daa756c remove old file
git-svn-id: http://skia.googlecode.com/svn/trunk@462 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-18 21:34:16 +00:00
reed@android.com
e191b16fda update windows port
git-svn-id: http://skia.googlecode.com/svn/trunk@461 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-18 21:33:39 +00:00
reed@android.com
63debae4c1 initial checkin for visualstudio build support
git-svn-id: http://skia.googlecode.com/svn/trunk@460 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-16 17:25:43 +00:00
reed@android.com
200645d50e fix repeat/mirror for new larger 16bit cache
update gm images



git-svn-id: http://skia.googlecode.com/svn/trunk@459 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-14 16:41:57 +00:00
reed@android.com
512a87641f make the 16bit cache larger, to handle multiple colors in the gradient w/o
obvious artifacts. We need a more comprehensive fix for all gradients (32bit
and 16bit) when we have a large number of colors (or they are spaced out very
non-linearly), to avoid banding.



git-svn-id: http://skia.googlecode.com/svn/trunk@458 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-14 15:25:36 +00:00
agl@chromium.org
447bcfa889 Initialise fDeviceCMDirty
http://codereview.appspot.com/176050

git-svn-id: http://skia.googlecode.com/svn/trunk@457 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-12 00:06:17 +00:00
senorblanco@chromium.org
f3f0bd71b8 SSE2-ified S32_alpha_D32_filter_DX (refactoring to come). Also shaved a few
cycles off the SSE2 blends.

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



git-svn-id: http://skia.googlecode.com/svn/trunk@456 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-10 22:46:31 +00:00
reed@android.com
c6a3cd63ba rebase the gm images, given the new chopping edgelist builder
git-svn-id: http://skia.googlecode.com/svn/trunk@455 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-10 21:13:00 +00:00
reed@android.com
59ed9f6c85 Eenable new chopping edgelist builder by default. If it sticks well, I'll
remove the old code-path in a subsequent CL



git-svn-id: http://skia.googlecode.com/svn/trunk@454 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-10 21:10:58 +00:00
reed@android.com
b757f8d20c reinstate the empty check, and always initialize the format field
git-svn-id: http://skia.googlecode.com/svn/trunk@453 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-08 22:02:26 +00:00
reed@android.com
cb60844b34 add drawData() to canvas, to record data blobs
git-svn-id: http://skia.googlecode.com/svn/trunk@452 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-04 21:32:27 +00:00
senorblanco@chromium.org
b1501a3cde Fix warning (struct forward-declared as class).
Review URL:  http://codereview.appspot.com/164061


git-svn-id: http://skia.googlecode.com/svn/trunk@451 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-04 19:53:28 +00:00
agl@chromium.org
297a11cbc6 Remove check for empty devPath
Removes check for empty devPath since it was causing an assertion failure on
Mac OS X when drawing small fonts within the browser action badges.

BUG=none
TEST=none

Patch by andybons1.

http://codereview.appspot.com/163056

git-svn-id: http://skia.googlecode.com/svn/trunk@450 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-02 22:24:40 +00:00
senorblanco@chromium.org
aa4f0c682d Debug build fix (unreviewed).
git-svn-id: http://skia.googlecode.com/svn/trunk@449 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-12-01 13:36:19 +00:00
senorblanco@chromium.org
dc7de745dd More SSE2 optimizations. This CL implements an SSE2 version of S32_bitmap_D32_filter_DX, and uses aligned loads and stores for dst, in all blending.
Review URL:  http://codereview.appspot.com/157141



git-svn-id: http://skia.googlecode.com/svn/trunk@448 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-30 20:00:29 +00:00
reed@android.com
a3d901099d add unittest for IntersectLine, used by hairlines
git-svn-id: http://skia.googlecode.com/svn/trunk@447 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-30 12:48:33 +00:00
senorblanco@chromium.org
7767cd87fd Win32 build fix (unreviewed).
git-svn-id: http://skia.googlecode.com/svn/trunk@446 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-25 17:14:32 +00:00
reed@android.com
55e76b209c outset the bounds if we're in hairline before quick-reject in SkDraw.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@445 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-23 21:46:47 +00:00
reed@android.com
4417740a48 add SampleCode::GetAnimTime() so slides go through a central location for
animation timing. This allows us to "freeze" time in order to do things like
draw multiple times to test clipping.



git-svn-id: http://skia.googlecode.com/svn/trunk@444 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-23 21:07:51 +00:00
reed@android.com
e522ca5d5f fix winding bug in lineclipper
expose path.dump() all the time
UP arrow now toggles a grid of clip rects in sample app



git-svn-id: http://skia.googlecode.com/svn/trunk@443 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-23 20:10:41 +00:00
reed@android.com
90209caa68 doh. make the new S16 and U16 checkers inline
git-svn-id: http://skia.googlecode.com/svn/trunk@442 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-21 19:58:04 +00:00
reed@android.com
d457775787 add checks for exceeding 16bits, and apply those for glyphs in getMetrics()
git-svn-id: http://skia.googlecode.com/svn/trunk@441 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-21 02:48:11 +00:00
reed@android.com
8d52841110 change guard to use ANDROID and __arm__, so it doesn't break non-arm android
configs (e.g. simulator)



git-svn-id: http://skia.googlecode.com/svn/trunk@440 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-20 22:15:22 +00:00
senorblanco@chromium.org
0c547bca50 Build fix for WIN64 (unreviewed).
git-svn-id: http://skia.googlecode.com/svn/trunk@439 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-20 18:55:44 +00:00
senorblanco@chromium.org
9a62fa7052 Remove SK_USE_OLD_255_TO_256.
Review URL:  http://codereview.appspot.com/156057/show.



git-svn-id: http://skia.googlecode.com/svn/trunk@438 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-20 04:25:41 +00:00
reed@android.com
3f0785e0c6 fix index-out-of-range constant
git-svn-id: http://skia.googlecode.com/svn/trunk@437 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-19 21:41:57 +00:00
reed@android.com
e28ff55d98 retool clipping in hairlines to catch huge coordinates
git-svn-id: http://skia.googlecode.com/svn/trunk@436 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-19 20:46:39 +00:00
agl@chromium.org
28bee9591d Exclude Android-only cpu-features.h from non-Android builds.
This is needed when building Chromium for ARM.

Patch by Joel Stanley <joel@chromium.org>

git-svn-id: http://skia.googlecode.com/svn/trunk@435 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-19 03:21:57 +00:00
reed@android.com
181172d564 return early if we hit overflow when chopping on the left (i.e. the entire
segment is effectively to the left)



git-svn-id: http://skia.googlecode.com/svn/trunk@434 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-19 03:02:38 +00:00
reed@android.com
ca80a64f5b add impl for memset32
git-svn-id: http://skia.googlecode.com/svn/trunk@433 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-18 17:43:10 +00:00
reed@android.com
909994fbae new scanconversion technique
This technique geometrically clips all segments against the clip bounds,
ensuring that we never send a value to the edgelist that might overflow in
fixedpoint.

Current disabled in SkScan_Path.cpp by a #define. There are a few minor pixel
differences between this and the old technique, as found by the gm tool, so
at the moment this new code is off by default.



git-svn-id: http://skia.googlecode.com/svn/trunk@432 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-18 16:09:51 +00:00
reed@android.com
bb13586591 fix typos in cubic clipper
git-svn-id: http://skia.googlecode.com/svn/trunk@431 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-18 13:47:40 +00:00
reed@android.com
3a0cd7f0e8 add explicit clamping after chopping w/ t to ensure we're in the clip
git-svn-id: http://skia.googlecode.com/svn/trunk@430 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-17 19:39:51 +00:00
reed@android.com
77f0ef726f add quadclipping utility, plus sample test
git-svn-id: http://skia.googlecode.com/svn/trunk@429 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-17 18:47:52 +00:00
senorblanco@chromium.org
4e753558fc More SSE2-ification; fix for gcc -msse2.
Review URL:  http://codereview.appspot.com/154163



git-svn-id: http://skia.googlecode.com/svn/trunk@428 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-16 21:09:00 +00:00
reed@android.com
70149060a7 add lineclipper, and test case
git-svn-id: http://skia.googlecode.com/svn/trunk@427 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-16 20:39:43 +00:00
reed@android.com
e72fee513a add onSendClickToChildren to views, so a view can capture all clicks.
speedup some of the unittests that were too slow
minor cleanup in SkScan_Path, in prep for larger changes



git-svn-id: http://skia.googlecode.com/svn/trunk@426 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-16 14:52:01 +00:00
reed@android.com
f0f4e9abba remove const modifiers on function return types (unneeded, and caused an error
on some gccs).



git-svn-id: http://skia.googlecode.com/svn/trunk@425 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-13 19:00:49 +00:00
reed@android.com
1d15d37ab9 fix rotation around 2nd axis
git-svn-id: http://skia.googlecode.com/svn/trunk@424 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-11-10 17:58:47 +00:00