Commit Graph

1827 Commits

Author SHA1 Message Date
junov@google.com
22c8bb8ebd Fixing several issues with rendering blurred bitmaps with Ganesh
BUG=http://code.google.com/p/skia/issues/detail?id=305
REVIEW=http://codereview.appspot.com/4630073/



git-svn-id: http://skia.googlecode.com/svn/trunk@1775 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 22:16:06 +00:00
bsalomon@google.com
3582bf9e3d Remove GrAuto*Malloc, replace with SkAuto*Malloc
Review URL: http://codereview.appspot.com/4629088



git-svn-id: http://skia.googlecode.com/svn/trunk@1774 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:32:31 +00:00
reed@google.com
5d2fef0d83 fix asserts in new premul inline function
git-svn-id: http://skia.googlecode.com/svn/trunk@1773 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:17:22 +00:00
reed@google.com
0b8b3bb083 make inline version of premultiply, to speed up gradient creation.
We could speed-up again if we...
- respected kDither and only built 1/2 of the table for non-dither requests
- output simple params to the gpu rather than always a texture
- detected that we have no alpha, and then can skip premul per-entry



git-svn-id: http://skia.googlecode.com/svn/trunk@1772 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:06:22 +00:00
epoger@google.com
e620ad299f Revert r1768
git-svn-id: http://skia.googlecode.com/svn/trunk@1771 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 21:03:02 +00:00
tomhudson@google.com
278cbb452a Enable WebKit/Chromium style logging for Skia.
New macros called in Ganesh functions; by default are compiled away,
in example code resolve to printout, and are compatible with WebKit/Chromium
event logging and GPU profiler.



git-svn-id: http://skia.googlecode.com/svn/trunk@1770 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 19:37:01 +00:00
junov@google.com
4ee7ae5dcf Adding the notion of a volatile bitmap to SkBitmap.
Volatility is a hint that indicates that the contents of a bitmap 
are ephemeral. SkGpuDevice will not preserve volatile bitmaps
in its texture cache, and will use textures from a pool of
keyless (recyclable) textures to avoid the performance hit of
texture allocation and release.

A subsequent change is required in webkit in order to take advantage
of this optimization. putImageData, and other methods that create
temporary bitmaps will have to mark their bitmaps as volatile.
before rendering them through skia.



git-svn-id: http://skia.googlecode.com/svn/trunk@1769 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 17:30:49 +00:00
epoger@google.com
72798e4808 Roll gyp version from 907 to 936
git-svn-id: http://skia.googlecode.com/svn/trunk@1768 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 16:51:49 +00:00
tomhudson@google.com
afec7ba759 Fix bug where equality was used instead of assignment.
git-svn-id: http://skia.googlecode.com/svn/trunk@1767 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 14:47:55 +00:00
tomhudson@google.com
3a1f6a06cc SkStringPrintf helper fucntion + a new unit test for it.
git-svn-id: http://skia.googlecode.com/svn/trunk@1766 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-30 14:39:52 +00:00
epoger@google.com
b371ed1784 Fix LCD text filtering
git-svn-id: http://skia.googlecode.com/svn/trunk@1765 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 21:20:52 +00:00
epoger@google.com
5070d79edd Fix build for old versions of freetype without FT_Library_SetLcdFilter
http://codereview.appspot.com/4625071/



git-svn-id: http://skia.googlecode.com/svn/trunk@1764 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 20:43:14 +00:00
reed@google.com
cd88d7c233 Don't use the CreateWithData variant: not needed, and isn't available in chrome
git-svn-id: http://skia.googlecode.com/svn/trunk@1763 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 20:12:38 +00:00
bsalomon@google.com
0a09eef790 Change true and false to 1 and 0 in macros that are used to conditionally compile code.
Review URL: http://codereview.appspot.com/4664056/



git-svn-id: http://skia.googlecode.com/svn/trunk@1762 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 19:42:58 +00:00
bsalomon@google.com
cb0c5ab54d Fix valgrind reported issue, uninit mem in AutoReleaseGeometry::reset()
Review URL: http://codereview.appspot.com/4667048/




git-svn-id: http://skia.googlecode.com/svn/trunk@1761 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 17:48:17 +00:00
reed@google.com
f83ceb9973 extract a new factory when we get a new device
git-svn-id: http://skia.googlecode.com/svn/trunk@1760 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 17:12:47 +00:00
reed@google.com
ba861ca594 add rebaselined version, now that we force font smoothing
git-svn-id: http://skia.googlecode.com/svn/trunk@1756 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 15:26:59 +00:00
reed@google.com
7dba74cec3 update now that we force font smoothing for the tests
git-svn-id: http://skia.googlecode.com/svn/trunk@1755 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 15:17:21 +00:00
reed@google.com
4be8adc617 explicitly enable font smoothing, in case your mac is hooked to a monitor
that apple think's can't do it (but it realy can)



git-svn-id: http://skia.googlecode.com/svn/trunk@1754 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 15:11:41 +00:00
epoger@google.com
f65817c3c0 remove last vestiges of intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1753 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 14:34:52 +00:00
epoger@google.com
33250842da fix intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1751 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 14:26:14 +00:00
epoger@google.com
601d1baa75 another intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1750 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 14:14:24 +00:00
epoger@google.com
3721a7a053 fix intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1749 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 13:55:12 +00:00
epoger@google.com
2278a7809e intentional error to exercise buildbot emails
git-svn-id: http://skia.googlecode.com/svn/trunk@1748 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 13:41:47 +00:00
reed@google.com
37100ec0a5 oops, these are the "correct" initial pdf baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@1747 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 13:27:56 +00:00
reed@google.com
44b6feb928 add initial pdf gm images. These have not be manually checked for correctness.
git-svn-id: http://skia.googlecode.com/svn/trunk@1746 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 13:00:11 +00:00
reed@google.com
46cce91f48 create bitmaps from pdf output for comparison purposes (mac only at the moment)
git-svn-id: http://skia.googlecode.com/svn/trunk@1745 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-29 12:54:46 +00:00
reed@google.com
9c16bc020f fix bitmapinfo
git-svn-id: http://skia.googlecode.com/svn/trunk@1744 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 21:52:34 +00:00
reed@google.com
292ade6625 add mac utility to turn a pdf into a bitmap
git-svn-id: http://skia.googlecode.com/svn/trunk@1743 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 20:54:03 +00:00
senorblanco@chromium.org
78b8253c0a Parse SampleApp command line for a test name. If an argument is passed to
SampleApp on the command line, interpret it as a test name.  If it's a valid
test, open that test at startup.

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



git-svn-id: http://skia.googlecode.com/svn/trunk@1742 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 19:44:03 +00:00
epoger@google.com
4809fc8629 Add base-linux and base-linux-fixed images for lcdtext test in gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1741 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 19:17:28 +00:00
epoger@google.com
63fdcac915 Add baseline images for new lcdtext within gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1740 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 18:56:47 +00:00
epoger@google.com
eaacf47005 make toplevel Makefile pass MAKEFLAGS to out/Makefile
http://codereview.appspot.com/4661052



git-svn-id: http://skia.googlecode.com/svn/trunk@1739 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 16:48:56 +00:00
vandebo@chromium.org
d9e75020e3 Fix Mac compile - missing comma.
Review URL: http://codereview.appspot.com/4625073

git-svn-id: http://skia.googlecode.com/svn/trunk@1738 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 16:44:00 +00:00
vandebo@chromium.org
98dfb05a85 Fix core text font metrics - scale to em size and convert float to int
Review URL: http://codereview.appspot.com/4654070

git-svn-id: http://skia.googlecode.com/svn/trunk@1737 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 16:33:21 +00:00
epoger@google.com
213c42bb69 Create new lcdtext page within gm
http://codereview.appspot.com/4654071



git-svn-id: http://skia.googlecode.com/svn/trunk@1736 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 16:20:27 +00:00
tomhudson@google.com
c10a88825d Guard against 0 tolerance in curve subdivision.
git-svn-id: http://skia.googlecode.com/svn/trunk@1735 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 15:19:32 +00:00
tomhudson@google.com
9ac4a89d35 Change output format of dump() to make VS2008 happy.
codereview.appspot.com/4629071/



git-svn-id: http://skia.googlecode.com/svn/trunk@1734 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 13:53:13 +00:00
reed@google.com
13649ce32f fix sign/unsigned warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@1733 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 12:02:58 +00:00
reed@google.com
33114e0e59 remove unused and untested SkPath::subdivide()
git-svn-id: http://skia.googlecode.com/svn/trunk@1732 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 11:57:12 +00:00
reed@google.com
3aaf6a0c87 fix exceeds_dist: don't double the loop counter (the caller has done that)
git-svn-id: http://skia.googlecode.com/svn/trunk@1731 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-28 11:54:37 +00:00
junov@google.com
d935cfbd79 Adding support for shadows when drawing bitmaps with skia gpu device
Added code to handle this case in SkGpuDevice::drawBitmap
Added test to cover this use case in SampleTextureDomain.cpp

BUG=http://code.google.com/p/chromium/issues/detail?id=83440
REVIEW=http://codereview.appspot.com/4530068/



git-svn-id: http://skia.googlecode.com/svn/trunk@1730 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 20:48:23 +00:00
reed@google.com
21031e9ee8 fix div-by-zero (triggers debugging assert when scalar=fixed) and add master
(raster only) images for degenerate gradient test



git-svn-id: http://skia.googlecode.com/svn/trunk@1729 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 18:38:27 +00:00
vandebo@chromium.org
3e7b280b72 Fix compiler warning triggered by non-understanding of assert.
Review URL: http://codereview.appspot.com/4666043

git-svn-id: http://skia.googlecode.com/svn/trunk@1728 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 18:12:31 +00:00
reed@google.com
ac864a945c add test for degenerate 2point gradients (needs pdf and gpu fixes)
git-svn-id: http://skia.googlecode.com/svn/trunk@1727 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 18:11:17 +00:00
reed@google.com
314e9b3ba0 add ptr/len and SkData versions of Deflate()
git-svn-id: http://skia.googlecode.com/svn/trunk@1726 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 17:41:22 +00:00
reed@google.com
effc5016f0 remove obsolete text codepaths
git-svn-id: http://skia.googlecode.com/svn/trunk@1725 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 16:44:46 +00:00
reed@google.com
67908f2fae fix warnings (signed/unsigned, initialization order, parens)
git-svn-id: http://skia.googlecode.com/svn/trunk@1724 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 14:47:50 +00:00
reed@google.com
5667afc5cb remove drawShape from canvas api
git-svn-id: http://skia.googlecode.com/svn/trunk@1723 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-27 14:42:15 +00:00
vandebo@chromium.org
0f1c95cd67 Add a zlib target that the pdf target can depend on.
- make drawTextOnPath (now used by shadertext) a non fatal NOT_IMPLEMENTED on PDF.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1722 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-24 23:13:47 +00:00