Commit Graph

1942 Commits

Author SHA1 Message Date
reed@google.com
2812b80570 eliminate unneeded refs/unrefs
git-svn-id: http://skia.googlecode.com/svn/trunk@1900 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 15:46:40 +00:00
tomhudson@google.com
237a461ec9 Instead of turning clipping off during AA, clip to the offscreen tile when
we're writing to it, then restore the onscreen clip when copying it back
to screen. Speeds up rendering of web pages with paths >> tile size.



git-svn-id: http://skia.googlecode.com/svn/trunk@1899 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 15:44:00 +00:00
yangsu@google.com
2ba30c0182 iOSSampleApp can now switch backends during runtime
git-svn-id: http://skia.googlecode.com/svn/trunk@1897 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 15:17:44 +00:00
epoger@google.com
c344abda6b whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1896 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 13:13:35 +00:00
mike@reedtribe.org
948639b823 Remove dead edgebuilding code
git-svn-id: http://skia.googlecode.com/svn/trunk@1893 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 01:28:17 +00:00
vandebo@chromium.org
fb6a53a406 [PDF] Add setPage method to SkPDFDocument.
BUG=312

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1892 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 23:13:19 +00:00
senorblanco@chromium.org
4a947d264b Fix kernel width calculation in GPU-based Gaussian blur. When converting the
sigma value to a kernel width, it should be rounded up.  Otherwise, for small
sigmas, the edge pixels of the kernel may be missing.



git-svn-id: http://skia.googlecode.com/svn/trunk@1891 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 21:48:35 +00:00
bsalomon@google.com
ef427d4712 Add mac baselines for tinybitmap
Review URL: http://codereview.appspot.com/4674048/



git-svn-id: http://skia.googlecode.com/svn/trunk@1890 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 21:31:41 +00:00
bsalomon@google.com
9d04d5c7b5 Add linux tinybitmap gm images
Review URL: http://codereview.appspot.com/4674048/



git-svn-id: http://skia.googlecode.com/svn/trunk@1889 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 21:23:49 +00:00
bsalomon@google.com
1936f26a0f Add tinybitmap gm and windows baselines.
Review URL: http://codereview.appspot.com/4674048/



git-svn-id: http://skia.googlecode.com/svn/trunk@1888 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 21:19:31 +00:00
bsalomon@google.com
5c63865b52 Use texture cache for writePixels temp
Review URL: http://codereview.appspot.com/4757050/



git-svn-id: http://skia.googlecode.com/svn/trunk@1887 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 19:31:59 +00:00
vandebo@chromium.org
b88cfe58e1 [PDF] Make color shaders work correctly.
Make SkPDFShader correctly bail out for color shaders.
Fix the bail out handling code.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1886 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 18:40:32 +00:00
bsalomon@google.com
f204d68c39 Add baselines for tex data gm for mac.
Review URL: http://codereview.appspot.com/4756043/



git-svn-id: http://skia.googlecode.com/svn/trunk@1885 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 15:49:37 +00:00
bungeman@google.com
79bd8772aa GPU strokeAndFill only does the fill
http://codereview.appspot.com/4743047/



git-svn-id: http://skia.googlecode.com/svn/trunk@1884 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 15:34:08 +00:00
bsalomon@google.com
55fbc8c10e Add linux gm baselines for tex data test
Review URL: http://codereview.appspot.com/4756043/



git-svn-id: http://skia.googlecode.com/svn/trunk@1883 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 15:28:06 +00:00
bsalomon@google.com
d9f826c0db flip Y in uploads to bottom-up textures (and add gm test)
Review URL: http://codereview.appspot.com/4756043/



git-svn-id: http://skia.googlecode.com/svn/trunk@1882 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-18 15:25:04 +00:00
yangsu@google.com
74d25b1049 Fixed an #ifdef bug in SkUIView
git-svn-id: http://skia.googlecode.com/svn/trunk@1881 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-17 14:51:52 +00:00
yangsu@google.com
22db8af525 Removed old files in iOSSampleApp
git-svn-id: http://skia.googlecode.com/svn/trunk@1880 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-17 14:44:55 +00:00
yangsu@google.com
c5aeccd8ba Updated iOSSampleApp to display FPS and display in OpenGL
git-svn-id: http://skia.googlecode.com/svn/trunk@1879 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-17 14:42:08 +00:00
epoger@google.com
1b2d6cc94d Add whitespace.txt for no-op changelists.
git-svn-id: http://skia.googlecode.com/svn/trunk@1877 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 18:12:54 +00:00
reed@google.com
970cb5597a convolve GrRefCnt and SkRefCnt
git-svn-id: http://skia.googlecode.com/svn/trunk@1873 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 15:52:28 +00:00
reed@google.com
7f6d6d4571 add validate() and SkAutoRef
git-svn-id: http://skia.googlecode.com/svn/trunk@1872 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 15:25:22 +00:00
senorblanco@chromium.org
e36ddf0131 More GPU blur fixes.
- clamp the max. radius to 128, as the software path does
- use a more accurate radius-to-sigma conversion (0.6 instead of 0.6666)
- make SampleBlur derive from SampleView, not SkView, so benchmark mode ('f')
works
- implement a new BigBlur sample to test large radii

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



git-svn-id: http://skia.googlecode.com/svn/trunk@1871 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 14:28:16 +00:00
reed@google.com
9de4dc9b1e check for non-finite values that can make us overshoot
git-svn-id: http://skia.googlecode.com/svn/trunk@1870 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 14:14:45 +00:00
epoger@google.com
6c841008c4 whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1869 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 14:11:58 +00:00
epoger@google.com
7815e73c65 Implement remaining options in Windows command-line build
(float vs fixed, Debug vs Release, "all" target, etc.)
Review URL: http://codereview.appspot.com/4740041

git-svn-id: http://skia.googlecode.com/svn/trunk@1868 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 13:23:22 +00:00
epoger@google.com
39b6efa1b2 whitespace change to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1867 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-15 13:22:15 +00:00
reed@google.com
8c4a2db81c fix printf output for name when skscalar is fixed
git-svn-id: http://skia.googlecode.com/svn/trunk@1866 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 19:22:19 +00:00
reed@google.com
25df8884bb add bench for building blurs
git-svn-id: http://skia.googlecode.com/svn/trunk@1865 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 19:03:58 +00:00
epoger@google.com
7fd589cfef Fix http://b/issue?id=5030894 ('Not working on windows: python gyp_skia')
git-svn-id: http://skia.googlecode.com/svn/trunk@1864 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 18:55:12 +00:00
epoger@google.com
2d75cc0c16 make gyp_skia runnable from any directory
http://codereview.appspot.com/4720042



git-svn-id: http://skia.googlecode.com/svn/trunk@1863 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 17:31:33 +00:00
reed@google.com
f4fab6c7a5 add now that gpu handles this correctly
git-svn-id: http://skia.googlecode.com/svn/trunk@1862 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 17:14:27 +00:00
bsalomon@google.com
6b73e558ba Undo accidental commit of GrContext.cpp in r1860.
git-svn-id: http://skia.googlecode.com/svn/trunk@1861 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 15:50:53 +00:00
bsalomon@google.com
eb2aa1d0a2 Make CPU->GPU blur path use texture cache
Review URL: http://codereview.appspot.com/4730041/



git-svn-id: http://skia.googlecode.com/svn/trunk@1860 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 15:45:19 +00:00
senorblanco@chromium.org
42dd0f9441 Fix clipping problem in GPU-based blur. The FBOs used for the fast Gaussian
blur were being clipped to the size of the output window, causing the blurred
primitive to be truncated if the FBO was larger than the output window.  Clip
them to the srcRect instead, and restore when done.

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



git-svn-id: http://skia.googlecode.com/svn/trunk@1859 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 15:29:57 +00:00
bsalomon@google.com
84223118f7 Remove some cruft from SampleApp.cpp
Review URL: http://codereview.appspot.com/4724042



git-svn-id: http://skia.googlecode.com/svn/trunk@1858 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 14:45:44 +00:00
bsalomon@google.com
098e96df6a Add DeviceManager to SampleWindow
Review URL: http://codereview.appspot.com/4715045/


git-svn-id: http://skia.googlecode.com/svn/trunk@1857 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 14:30:46 +00:00
tomhudson@google.com
7d04280a68 Extends skdiff to handle commands of the form
skdiff --chromium-release baseDir outputDir
  skdiff --chromium-debug baseDir outputDir
where baseDir is typically ../chromium/src.

Handles Chromium/WebKit layout tests: recursively traverses the
layout-test-results directory and compares -expected and -actual PNGs,
building a webpage showing the two images, their difference image,
and statistics, sorted by % of pixels difference. Respects all the
standard skdiff flags.

Also changes command line options named with words from starting with
a single hyphen to starting with two, falling in line with standards:
--threshold, --sortbymismatch, etc.



git-svn-id: http://skia.googlecode.com/svn/trunk@1856 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-14 13:15:55 +00:00
yangsu@google.com
bd3e3202ad Updated SkUIView to use the current code, added a default gl interface for ios
http://codereview.appspot.com/4717043/


git-svn-id: http://skia.googlecode.com/svn/trunk@1855 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 22:05:00 +00:00
bsalomon@google.com
0b96a84ca1 Remove unused SkGpuDevice functions, add GrRenderTarget handle getters
Code Review: http://codereview.appspot.com/4718041/



git-svn-id: http://skia.googlecode.com/svn/trunk@1854 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 21:53:49 +00:00
epoger@google.com
0fb2125814 enable "make XXX" command-line builds on Windows
http://codereview.appspot.com/4717044/



git-svn-id: http://skia.googlecode.com/svn/trunk@1853 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 21:30:14 +00:00
bungeman@google.com
ba7983e55c Fix build break from 1851.
In fixed point, kMPersp2 is a magic number, not SK_Scalar1.


git-svn-id: http://skia.googlecode.com/svn/trunk@1852 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 20:18:16 +00:00
bungeman@google.com
1ddd7c3928 Change pdfTransform to asAffine.
http://codereview.appspot.com/4704044/



git-svn-id: http://skia.googlecode.com/svn/trunk@1851 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 19:41:55 +00:00
reed@google.com
da44067ec9 since I can't make GDI's lcd text pretty when we're rotated, detect that
and force us into grayscale.



git-svn-id: http://skia.googlecode.com/svn/trunk@1850 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 18:02:28 +00:00
bsalomon@google.com
b3b8dfa313 Fix path iter returned pt on close, test path close pt in unit test.
Review URL: http://codereview.appspot.com/4715044/



git-svn-id: http://skia.googlecode.com/svn/trunk@1849 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 17:44:36 +00:00
tomhudson@google.com
4e3059868f In skdiff, merge paths into the struct that holds the filename, to enable
1. better support reading from multiple input directories, and
2. allow filenames to differ between reference and novel images.



git-svn-id: http://skia.googlecode.com/svn/trunk@1848 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 17:42:46 +00:00
reed@google.com
e8fab0111d add more scalerrec filtering, in prep for handling unhinted
git-svn-id: http://skia.googlecode.com/svn/trunk@1847 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 15:25:33 +00:00
reed@google.com
30b74fc1d3 send output to printf as well, for commandlines
git-svn-id: http://skia.googlecode.com/svn/trunk@1846 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 15:16:42 +00:00
reed@google.com
2377b52ee4 add more angles, and test lineartext
git-svn-id: http://skia.googlecode.com/svn/trunk@1844 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-13 14:06:19 +00:00
ctguil@chromium.org
8dcf74f276 Modified to add support to print in the margins of pdf documents
Review URL: http://codereview.appspot.com/4657087

git-svn-id: http://skia.googlecode.com/svn/trunk@1843 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-12 21:56:27 +00:00