vandebo@chromium.org
00223fab51
[PDF] fix off by one in setPage.
...
TBR=ctguil@chromium.org
Review URL: http://codereview.appspot.com/4807045
git-svn-id: http://skia.googlecode.com/svn/trunk@1939 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-22 01:48:55 +00:00
senorblanco@chromium.org
fdaf2b9f8b
Revert r1937 while I try to figure out the GM failures.
...
(Unreviewed; build fix).
git-svn-id: http://skia.googlecode.com/svn/trunk@1938 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 22:16:05 +00:00
senorblanco@chromium.org
b7f28d6ecd
Improve GPU blur speed by clearing only when necessary. This gives a
...
1.8X speedup on the Blurs sample, and 2.3X on the BigBlur sample.
We don't need to clear while downsampling, since each step reads only the pixels
written in the previous step. We can avoid destination clears before
convolution by disabling blending. We also don't need to clear when upsampling,
since the upsample step also only reads pixels written by the convolution. The
only clears we then need to do are on each side of the srcRect used for
convolution. Since our srcRect is always offset to (0, 0), we only need to
clear on the right and bottom.
Review URL: http://codereview.appspot.com/4803048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1937 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 22:07:53 +00:00
reed@google.com
6dc745506e
remove forward declaration and reference to extinct SkDeviceFactory
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1931 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 18:00:46 +00:00
epoger@google.com
bfe6c5fc83
Add gm/base-win-fixed baseline images
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1930 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 16:24:52 +00:00
epoger@google.com
59f3abf146
fix gradients_degenerate test case for SKIA_SCALAR_IS_FIXED
...
http://codereview.appspot.com/4811046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1928 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 15:50:33 +00:00
reed@google.com
db10340859
rebaseline with unhinted rotated text in freetype
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1927 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 15:11:50 +00:00
reed@google.com
62e8366999
rebaseline now that freetype is unhinted when rotated
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1926 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 14:34:03 +00:00
epoger@google.com
525644095b
In experimental/SkSetPoly3To3_A.cpp, rename div() to divide() to resolve namespace collision in Windows.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1925 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 14:18:48 +00:00
reed@google.com
8ed436c9b0
disable hinting when rotated, since it looks bad
...
we do the same thing on windows (mac seems to handle rotation fine)
git-svn-id: http://skia.googlecode.com/svn/trunk@1924 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 14:12:36 +00:00
epoger@google.com
b14ef7315a
Fix SkFlate.cpp when SK_ZLIB_INCLUDE is not #defined.
...
This was failing for Windows builds since r1911.
git-svn-id: http://skia.googlecode.com/svn/trunk@1923 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-21 13:56:34 +00:00
epoger@google.com
65d8dd9fe5
whitespace change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1919 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 21:47:53 +00:00
reed@google.com
b530ef5869
have == always return bool, never int
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1915 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 19:55:42 +00:00
reed@google.com
1feb33068b
replace SkRefPtr for parameters with simple pointers
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1913 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 18:43:19 +00:00
vandebo@chromium.org
06f7f4051e
[PDF] Use insert and append helpers for POD data.
...
BUG=251
Review URL: http://codereview.appspot.com/4815044
git-svn-id: http://skia.googlecode.com/svn/trunk@1912 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 18:39:20 +00:00
vandebo@chromium.org
421d6443fb
[PDF] Make stream compression optional on a per device basis.
...
There are a lot of small pieces to make this change work:
- SkPDFDocument (and SkPDFCatalog) take flags to disable compression (and font embedding - not implemented yet, can disable font subsetting for now).
- SkPDFStream now defers compression until the size/emit step.
- Classes that *had* a stream (because they didn't know the stream size at construction time) now *are* streams to make the substitution work correctly.
- The SkPDFShader implementation got pulled apart into two classes, one that is a SkPDFDict, and one that is a SkPDFStream (making the common ancestor SkPDFObject).
- Added helper methods in SkPDFObject for children that have simple resource lists.
- Added an iterator to SkPDFDict so that a substitute SkPDFStream can get a copy of the stream dictionary.
- Change SkPDFDocument to have a pointer to an SkPDFCatalog to remove a new circular header reference.
Review URL: http://codereview.appspot.com/4700045
git-svn-id: http://skia.googlecode.com/svn/trunk@1911 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 17:39:01 +00:00
reed@google.com
f6c3ebdeb1
fix Capitalization of static methods
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1910 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 17:20:28 +00:00
reed@google.com
c789cf1c6f
helpers for append and insert when the value is a POD.
...
reduces code-size and perf: fewer refs/unrefs
git-svn-id: http://skia.googlecode.com/svn/trunk@1909 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 12:14:33 +00:00
vandebo@chromium.org
f5181a496d
[PDF] Fix substitute resources size calculation.
...
Review URL: http://codereview.appspot.com/4803041
git-svn-id: http://skia.googlecode.com/svn/trunk@1908 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-20 00:33:53 +00:00
senorblanco@chromium.org
422b67d745
Fix GPU blur cacheing bug. Sometimes, the texture cache serves us textures of
...
different sizes for srcTexture and dstTexture (this is fair; they're supposed
to be approximate). Code was assuming otherwise while downsampling; fix is to
reapply the scale on each downsample. (Yes, I could cache these reciprocals
if and when they prove to be a hot spot).
Also, use setIDiv(w,h) everywhere for conciseness.
Review URL: http://codereview.appspot.com/4798041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1907 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 21:22:13 +00:00
reed@google.com
6c858246f5
remove these for now, since each WIN machine can have different lcd
...
settings. can be fixed if we programmatically jam in some setting.
If these are gone, gm will complain, but will not return failure to the
bot.
git-svn-id: http://skia.googlecode.com/svn/trunk@1906 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 19:20:30 +00:00
reed@google.com
c9fb65a120
rebaseline with new gpu-based blurricator
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1905 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 19:18:21 +00:00
reed@google.com
db77a6a9a9
export function to return a typeface's LOGFONT
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1903 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 19:08:33 +00:00
reed@google.com
29c612928b
new baselines now that we're executing the blurs directly on the gpu
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1902 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 18:06:42 +00:00
senorblanco@chromium.org
a479fc75ad
Enable the GPU-based blur by default in Skia, and provide a #define to disable
...
it (SK_DISABLE_GPU_BLUR).
Note: this change will break some the GM test results. I've attempted to
rebaseline MacPro float results; more to come.
Review URL: http://codereview.appspot.com/4784043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1901 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-07-19 16:40:58 +00:00
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