reed@google.com [Wed, 29 Jun 2011 15:26:59 +0000 (15:26 +0000)]
add rebaselined version, now that we force font smoothing
git-svn-id: http://skia.googlecode.com/svn/trunk@1756
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 15:17:21 +0000 (15:17 +0000)]
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
reed@google.com [Wed, 29 Jun 2011 15:11:41 +0000 (15:11 +0000)]
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
epoger@google.com [Wed, 29 Jun 2011 14:34:52 +0000 (14:34 +0000)]
remove last vestiges of intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1753
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 14:26:14 +0000 (14:26 +0000)]
fix intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1751
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 14:14:24 +0000 (14:14 +0000)]
another intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1750
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 13:55:12 +0000 (13:55 +0000)]
fix intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1749
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 13:41:47 +0000 (13:41 +0000)]
intentional error to exercise buildbot emails
git-svn-id: http://skia.googlecode.com/svn/trunk@1748
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 13:27:56 +0000 (13:27 +0000)]
oops, these are the "correct" initial pdf baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@1747
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 13:00:11 +0000 (13:00 +0000)]
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
reed@google.com [Wed, 29 Jun 2011 12:54:46 +0000 (12:54 +0000)]
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
reed@google.com [Tue, 28 Jun 2011 21:52:34 +0000 (21:52 +0000)]
fix bitmapinfo
git-svn-id: http://skia.googlecode.com/svn/trunk@1744
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 20:54:03 +0000 (20:54 +0000)]
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
senorblanco@chromium.org [Tue, 28 Jun 2011 19:44:03 +0000 (19:44 +0000)]
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
epoger@google.com [Tue, 28 Jun 2011 19:17:28 +0000 (19:17 +0000)]
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
epoger@google.com [Tue, 28 Jun 2011 18:56:47 +0000 (18:56 +0000)]
Add baseline images for new lcdtext within gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1740
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 28 Jun 2011 16:48:56 +0000 (16:48 +0000)]
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
vandebo@chromium.org [Tue, 28 Jun 2011 16:44:00 +0000 (16:44 +0000)]
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
vandebo@chromium.org [Tue, 28 Jun 2011 16:33:21 +0000 (16:33 +0000)]
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
epoger@google.com [Tue, 28 Jun 2011 16:20:27 +0000 (16:20 +0000)]
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
tomhudson@google.com [Tue, 28 Jun 2011 15:19:32 +0000 (15:19 +0000)]
Guard against 0 tolerance in curve subdivision.
git-svn-id: http://skia.googlecode.com/svn/trunk@1735
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 28 Jun 2011 13:53:13 +0000 (13:53 +0000)]
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
reed@google.com [Tue, 28 Jun 2011 12:02:58 +0000 (12:02 +0000)]
fix sign/unsigned warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@1733
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 11:57:12 +0000 (11:57 +0000)]
remove unused and untested SkPath::subdivide()
git-svn-id: http://skia.googlecode.com/svn/trunk@1732
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 11:54:37 +0000 (11:54 +0000)]
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
junov@google.com [Mon, 27 Jun 2011 20:48:23 +0000 (20:48 +0000)]
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
reed@google.com [Mon, 27 Jun 2011 18:38:27 +0000 (18:38 +0000)]
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
vandebo@chromium.org [Mon, 27 Jun 2011 18:12:31 +0000 (18:12 +0000)]
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
reed@google.com [Mon, 27 Jun 2011 18:11:17 +0000 (18:11 +0000)]
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
reed@google.com [Mon, 27 Jun 2011 17:41:22 +0000 (17:41 +0000)]
add ptr/len and SkData versions of Deflate()
git-svn-id: http://skia.googlecode.com/svn/trunk@1726
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 16:44:46 +0000 (16:44 +0000)]
remove obsolete text codepaths
git-svn-id: http://skia.googlecode.com/svn/trunk@1725
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 14:47:50 +0000 (14:47 +0000)]
fix warnings (signed/unsigned, initialization order, parens)
git-svn-id: http://skia.googlecode.com/svn/trunk@1724
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 14:42:15 +0000 (14:42 +0000)]
remove drawShape from canvas api
git-svn-id: http://skia.googlecode.com/svn/trunk@1723
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 24 Jun 2011 23:13:47 +0000 (23:13 +0000)]
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
yangsu@google.com [Fri, 24 Jun 2011 21:09:39 +0000 (21:09 +0000)]
Modified the iOS pdf data code to use steam.copytoData()
git-svn-id: http://skia.googlecode.com/svn/trunk@1721
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 21:01:17 +0000 (21:01 +0000)]
update dox
git-svn-id: http://skia.googlecode.com/svn/trunk@1720
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 20:45:40 +0000 (20:45 +0000)]
use general SkWStream for parameter
git-svn-id: http://skia.googlecode.com/svn/trunk@1719
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 20:06:36 +0000 (20:06 +0000)]
move common code into shared helper function
git-svn-id: http://skia.googlecode.com/svn/trunk@1718
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 19:17:37 +0000 (19:17 +0000)]
fix warning about SkPoint initialization
git-svn-id: http://skia.googlecode.com/svn/trunk@1717
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 24 Jun 2011 19:15:57 +0000 (19:15 +0000)]
Fix bad merge which broke compiles.
git-svn-id: http://skia.googlecode.com/svn/trunk@1716
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 24 Jun 2011 19:14:42 +0000 (19:14 +0000)]
roll back r1705
git-svn-id: http://skia.googlecode.com/svn/trunk@1715
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 19:12:12 +0000 (19:12 +0000)]
replace detach/getStream apis on dynamicwstream with SkData
http://codereview.appspot.com/4657046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1714
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 24 Jun 2011 19:09:09 +0000 (19:09 +0000)]
Alternate approach to enabling PDF in gm (gyp changes)
http://codereview.appspot.com/4631067
git-svn-id: http://skia.googlecode.com/svn/trunk@1713
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 18:56:00 +0000 (18:56 +0000)]
Fixed include statements to correctly link mac/ios libraries
git-svn-id: http://skia.googlecode.com/svn/trunk@1712
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 18:54:08 +0000 (18:54 +0000)]
Added mutex in GetDefaultFont and added the default font to the FontCache when it's first created
git-svn-id: http://skia.googlecode.com/svn/trunk@1711
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 24 Jun 2011 18:30:49 +0000 (18:30 +0000)]
New benchmark for SkMatrix::computeType().
Utility function in SkMatrix to make benchmarking more accurate.
git-svn-id: http://skia.googlecode.com/svn/trunk@1710
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 18:24:59 +0000 (18:24 +0000)]
fix null fFontRef in GetDefaultFont()
http://codereview.appspot.com/4662041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1709
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 18:13:39 +0000 (18:13 +0000)]
add (disabled) tests for common angles
git-svn-id: http://skia.googlecode.com/svn/trunk@1708
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 17:26:53 +0000 (17:26 +0000)]
Updated the references to iOS util files in the iOSSampleApp project file
renamed gpu/src/skia to gpu/ios
git-svn-id: http://skia.googlecode.com/svn/trunk@1707
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 17:20:50 +0000 (17:20 +0000)]
Added utility functions and iOS ports of SkWindow, SkOSFile, SkFontHost, and SkImageDecoder
the iOSSampleApp in experimental currently includes all the following files but only uses SkOSWindow_iOS and SkOSFile_iOS
http://codereview.appspot.com/4657047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1706
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 24 Jun 2011 17:05:17 +0000 (17:05 +0000)]
Add additional source types to xfer mode test.
Review URL: http://codereview.appspot.com/4589051
git-svn-id: http://skia.googlecode.com/svn/trunk@1705
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 16:04:50 +0000 (16:04 +0000)]
Added helper methods for changing samples, getting sample titles, and extracting pdf Data
http://codereview.appspot.com/4626073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1704
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 15:57:30 +0000 (15:57 +0000)]
Sample App ported to an universal iOS app with airprint enabled
git-svn-id: http://skia.googlecode.com/svn/trunk@1703
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 24 Jun 2011 15:53:40 +0000 (15:53 +0000)]
Remove global curve subdivision tolerance from GrPathUtils.
Put in framework for changing curve subdivision tolerance when rendering
offscreen AA tiles; however, comment out actual tolerance changes because
of possible quality issues with simple circles (q.v. Arcs slide of SampleApp).
git-svn-id: http://skia.googlecode.com/svn/trunk@1702
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 24 Jun 2011 15:43:24 +0000 (15:43 +0000)]
Experimental framework for fast quadratic subdivision density computation code.
Lets us test multiple implementations of the code that determines how many
points to divide a quadratic into and guarantee that estimates are within
a factor of two of the conservative computation.
git-svn-id: http://skia.googlecode.com/svn/trunk@1701
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 15:00:28 +0000 (15:00 +0000)]
Changed variables to not conflict with variables/properties in Cocao Touch
git-svn-id: http://skia.googlecode.com/svn/trunk@1700
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 24 Jun 2011 13:58:17 +0000 (13:58 +0000)]
Make images properly depend on utils.
http://codereview.appspot.com/4629068/
git-svn-id: http://skia.googlecode.com/svn/trunk@1699
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 13:11:05 +0000 (13:11 +0000)]
add (replacing SkDataRef)
git-svn-id: http://skia.googlecode.com/svn/trunk@1698
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 13:07:31 +0000 (13:07 +0000)]
rename public SkDataRef to SkData
rename animator's internal SkData to SkDataInput
git-svn-id: http://skia.googlecode.com/svn/trunk@1697
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Thu, 23 Jun 2011 22:27:30 +0000 (22:27 +0000)]
Added platform specific includes
git-svn-id: http://skia.googlecode.com/svn/trunk@1696
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 23 Jun 2011 21:48:04 +0000 (21:48 +0000)]
add copyToData() to dyanamicwstream
git-svn-id: http://skia.googlecode.com/svn/trunk@1695
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 23 Jun 2011 21:43:52 +0000 (21:43 +0000)]
Wrap SkStreams in IStreams instead of copying data around.
http://codereview.appspot.com/4630062/
git-svn-id: http://skia.googlecode.com/svn/trunk@1694
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 23 Jun 2011 21:30:35 +0000 (21:30 +0000)]
whitespace commit
git-svn-id: http://skia.googlecode.com/svn/trunk@1693
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 23 Jun 2011 20:52:37 +0000 (20:52 +0000)]
Added gm/base-MacPro-fixed
http://codereview.appspot.com/4631065
git-svn-id: http://skia.googlecode.com/svn/trunk@1691
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 23 Jun 2011 19:39:49 +0000 (19:39 +0000)]
fix mono bittest
git-svn-id: http://skia.googlecode.com/svn/trunk@1690
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 23 Jun 2011 19:34:50 +0000 (19:34 +0000)]
Allow override of skia_scalar gyp variable using GYP_DEFINES
http://codereview.appspot.com/4631061/
git-svn-id: http://skia.googlecode.com/svn/trunk@1689
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 23 Jun 2011 19:24:28 +0000 (19:24 +0000)]
Add "tools" to "make all"
git-svn-id: http://skia.googlecode.com/svn/trunk@1688
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 23 Jun 2011 15:07:04 +0000 (15:07 +0000)]
detect when our quadratic is really linear for 2-point radial, and don't
divide by zero, but rather just return -c/b
git-svn-id: http://skia.googlecode.com/svn/trunk@1684
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 23 Jun 2011 13:17:30 +0000 (13:17 +0000)]
promote embedded bitmaps for lcd16
git-svn-id: http://skia.googlecode.com/svn/trunk@1679
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 23 Jun 2011 13:14:57 +0000 (13:14 +0000)]
Update BenchGpuTimer.cpp to new interface.
http://codereview.appspot.com/4645055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1678
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 22 Jun 2011 20:42:34 +0000 (20:42 +0000)]
Add image encoder/decoder for Windows.
http://codereview.appspot.com/4634078/
git-svn-id: http://skia.googlecode.com/svn/trunk@1676
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 22 Jun 2011 19:17:28 +0000 (19:17 +0000)]
add toplevel Makefile that works for Mac and Unix
http://codereview.appspot.com/4633063
git-svn-id: http://skia.googlecode.com/svn/trunk@1675
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Wed, 22 Jun 2011 17:16:35 +0000 (17:16 +0000)]
New benchmark to create many random quadratic paths.
Added to try to get a handle on the cost of CPU-side changes to GPU rendering, but probably too noisy to be useful.
git-svn-id: http://skia.googlecode.com/svn/trunk@1674
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 22 Jun 2011 13:26:56 +0000 (13:26 +0000)]
Unify handleTouch and handleClick in SampleApp.
Allow each sample to handle clicks in Android SampleApp.
Remove SampleWindow::handleTouch.
Allow an SkWindow to have multiple clicks.
Add an owner pointer to SkView::Click.
Reviewed at http://codereview.appspot.com/4643052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1673
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 22 Jun 2011 13:19:43 +0000 (13:19 +0000)]
Add support for 8 bits/component glyphs, to
better match the fonts produced by CoreText on OS/X.
M include/config/SkUserConfig.h
M include/core/SkMask.h
M include/core/SkScalerContext.h
M src/core/SkBlitter_ARGB32.cpp
M src/core/SkScalerContext.cpp
M src/core/SkPaint.cpp
M src/gpu/SkGrFontScaler.cpp
M src/ports/SkFontHost_mac_coretext.cpp
M src/ports/SkFontHost_mac.cpp
M gpu/include/GrTypes.h
M gpu/src/GrAtlas.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1672
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 22 Jun 2011 05:01:28 +0000 (05:01 +0000)]
Fix more coverity defects - Uninitialized class fields.
In SkCanvas, SkBitmapCache::Entry, SkDrawLooper
CID=13440,1366,16236,14393
Review URL: http://codereview.appspot.com/4628055
git-svn-id: http://skia.googlecode.com/svn/trunk@1671
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 22 Jun 2011 01:28:17 +0000 (01:28 +0000)]
Fix copy/paste error in GrDrawTarget::AutoStateRestore::set
Review URL: http://codereview.appspot.com/4639063/
git-svn-id: http://skia.googlecode.com/svn/trunk@1670
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 21 Jun 2011 22:26:39 +0000 (22:26 +0000)]
Fix a batch of coverity defects, uninitialized class fields.
In SkClipStack::B2FIter::Clip, SkWriter32, SkClipStack::Rec, SkDeque::F2BIter, SkPDFShader::State
CID 15427,15433,15533,15532,16274,16740
Review URL: http://codereview.appspot.com/4630055
git-svn-id: http://skia.googlecode.com/svn/trunk@1669
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 21 Jun 2011 21:19:41 +0000 (21:19 +0000)]
Fix some problems detected by coverity.
- Uninitialized class member in GSCanonicalEntry and SkPDFDocument.
- Incorrect sign extension in SkPDFFont.
- Dead code in SkPDFUtils.
CID=16262,16272,16273,16275
Review URL: http://codereview.appspot.com/4659041
git-svn-id: http://skia.googlecode.com/svn/trunk@1668
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 21 Jun 2011 21:18:25 +0000 (21:18 +0000)]
fix to free a plot when purging gr font cache
Review URL: http://codereview.appspot.com/4645054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1667
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 21 Jun 2011 20:45:51 +0000 (20:45 +0000)]
Handle possibly NULL deref in comparison
Committed on behalf of groby@chromium.org
OCL=http://codereview.appspot.com/4633058/
CID=16790,16789
Review URL: http://codereview.appspot.com/4654049
git-svn-id: http://skia.googlecode.com/svn/trunk@1666
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 21 Jun 2011 20:32:12 +0000 (20:32 +0000)]
Initialize members to satisfy coverity.
Code review: http://codereview.appspot.com/4657043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1665
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 21 Jun 2011 19:25:44 +0000 (19:25 +0000)]
Remove createDevice decl from SkProxyCanvas.h. Impl has already been removed in r1625.
Review URL: http://codereview.appspot.com/4654047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1664
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 21 Jun 2011 19:24:00 +0000 (19:24 +0000)]
Add option in flattening to write factory names inline, as we are recording.
SkGPipe needs this, since it cannot (unlike SkPicture) see all of the factories
before it hands its data to the reader.
In this mode, the writer embedds the factory name the first time it sees it,
and then after that writes an index (referencing the fFactorySet). The reader
installs an empty array, and as it encounters names, appends them to that array
so that subsequent indices can be used to retrieve the previously named factory.
Some of the existing patheffects did not register their factory names, so those
changes are also part of this CL. Annoyingly, to register your factory using the
current scheme, it has to be in the public section of the class definition.
git-svn-id: http://skia.googlecode.com/svn/trunk@1663
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 21 Jun 2011 18:17:25 +0000 (18:17 +0000)]
Refactor GrDrawTarget vertex/index api
Review URL: http://codereview.appspot.com/4631056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1662
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Tue, 21 Jun 2011 16:01:26 +0000 (16:01 +0000)]
SampleApp fixes.
On Android, delete gWindow before calling application_term, avoiding a crash
each time the app closes. Also make sure the screen is redrawn when resuming.
On Linux, delete gWindow to avoid memory leak.
In general, allow moving from sample 0 to the last sample.
Reviewed at http://codereview.appspot.com/4639060
git-svn-id: http://skia.googlecode.com/svn/trunk@1661
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 21 Jun 2011 15:43:11 +0000 (15:43 +0000)]
change string read/write to store length as full 32-bit value. This simplifies
the internal logic, and allows SkFlattenable to rely on this when distinguishing
between 0 and indices (which will soon be negative) and string-lengths.
git-svn-id: http://skia.googlecode.com/svn/trunk@1660
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Tue, 21 Jun 2011 14:44:57 +0000 (14:44 +0000)]
Add a way to save to PDF in SampleApp on Android and elsewhere.
In Android, add the PDF file to downloads, so it can be opened.
Reviewed at http://codereview.appspot.com/4638052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1659
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Tue, 21 Jun 2011 13:09:32 +0000 (13:09 +0000)]
Changed mac specific files to use ApplicationServices rather than Carbon
http://codereview.appspot.com/4644053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1658
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 21 Jun 2011 12:19:28 +0000 (12:19 +0000)]
update dox
git-svn-id: http://skia.googlecode.com/svn/trunk@1657
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 20 Jun 2011 19:56:53 +0000 (19:56 +0000)]
Revert the changes to gyp/images.gyp in r1654, as apparently they're
necessary for gm to build correctly.
git-svn-id: http://skia.googlecode.com/svn/trunk@1655
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 20 Jun 2011 19:46:42 +0000 (19:46 +0000)]
Remove some files from views.gyp that already being compiled into utils.gyp
(already done for Linux, this change does the same for Mac and Win).
Review URL: http://codereview.appspot.com/4575044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1654
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 20 Jun 2011 14:02:22 +0000 (14:02 +0000)]
whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1652
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 20 Jun 2011 13:21:24 +0000 (13:21 +0000)]
disable gpu tests when scalar==fixed,
add baselines for fixedpoint strokes gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1651
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 20 Jun 2011 13:06:29 +0000 (13:06 +0000)]
add mac desktop baselines for strokes gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1650
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 20 Jun 2011 12:21:04 +0000 (12:21 +0000)]
add initial baselines for strokes gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1649
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 18 Jun 2011 02:00:47 +0000 (02:00 +0000)]
add baselines for new test
git-svn-id: http://skia.googlecode.com/svn/trunk@1648
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 18 Jun 2011 01:56:44 +0000 (01:56 +0000)]
add strokes.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1647
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 18 Jun 2011 01:35:18 +0000 (01:35 +0000)]
inherit from SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1646
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Sat, 18 Jun 2011 00:15:04 +0000 (00:15 +0000)]
add
git-svn-id: http://skia.googlecode.com/svn/trunk@1645
2bbb7eff-a529-9590-31e7-
b0007b416f81