platform/upstream/libSkiaSharp.git
13 years agoadd --match to the help text
reed@google.com [Mon, 25 Jul 2011 14:30:54 +0000 (14:30 +0000)]
add --match to the help text

git-svn-id: http://skia.googlecode.com/svn/trunk@1946 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoreenable rotated freetype fix, but behind #ifndef SK_IGNORE_ROTATED_FREETYPE_FIX,
reed@google.com [Mon, 25 Jul 2011 14:28:57 +0000 (14:28 +0000)]
reenable rotated freetype fix, but behind #ifndef  SK_IGNORE_ROTATED_FREETYPE_FIX,
so chrome can disable it for now.

add --match foo to gm/ so you can run just tests that substring match your pattern (foo)

git-svn-id: http://skia.googlecode.com/svn/trunk@1945 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRevert "[PDF] Refactor SkPDFFont to enable font/cmap subsetting."
vandebo@chromium.org [Sat, 23 Jul 2011 21:13:30 +0000 (21:13 +0000)]
Revert "[PDF] Refactor SkPDFFont to enable font/cmap subsetting."

The PDF xref table is corrupt with this change. Revert until we figure it out.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1944 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Refactor SkPDFFont to enable font/cmap subsetting.
vandebo@chromium.org [Sat, 23 Jul 2011 20:22:53 +0000 (20:22 +0000)]
[PDF] Refactor SkPDFFont to enable font/cmap subsetting.

Patch from Arthur Hsu, original CL: http://codereview.appspot.com/4633050/

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1943 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoTemporary rollback of r1924 to unblock DEPS roll
bsalomon@google.com [Fri, 22 Jul 2011 17:56:19 +0000 (17:56 +0000)]
Temporary rollback of r1924 to unblock DEPS roll
Review URL: http://codereview.appspot.com/4817046/

git-svn-id: http://skia.googlecode.com/svn/trunk@1942 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoImprove GPU blur performance by clearing only when necessary. This gives a
senorblanco@chromium.org [Fri, 22 Jul 2011 15:31:14 +0000 (15:31 +0000)]
Improve GPU blur performance 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, and a 1-pixel border for bilinear upsampling.  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@1941 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd debug symbols to Windows static libraries
epoger@google.com [Fri, 22 Jul 2011 14:41:26 +0000 (14:41 +0000)]
Add debug symbols to Windows static libraries

As requested in http://code.google.com/p/skia/issues/detail?id=320
Review URL: http://codereview.appspot.com/4805050

git-svn-id: http://skia.googlecode.com/svn/trunk@1940 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] fix off by one in setPage.
vandebo@chromium.org [Fri, 22 Jul 2011 01:48:55 +0000 (01:48 +0000)]
[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

13 years agoRevert r1937 while I try to figure out the GM failures.
senorblanco@chromium.org [Thu, 21 Jul 2011 22:16:05 +0000 (22:16 +0000)]
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

13 years agoImprove GPU blur speed by clearing only when necessary. This gives a
senorblanco@chromium.org [Thu, 21 Jul 2011 22:07:53 +0000 (22:07 +0000)]
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

13 years agoremove forward declaration and reference to extinct SkDeviceFactory
reed@google.com [Thu, 21 Jul 2011 18:00:46 +0000 (18:00 +0000)]
remove forward declaration and reference to extinct SkDeviceFactory

git-svn-id: http://skia.googlecode.com/svn/trunk@1931 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd gm/base-win-fixed baseline images
epoger@google.com [Thu, 21 Jul 2011 16:24:52 +0000 (16:24 +0000)]
Add gm/base-win-fixed baseline images

git-svn-id: http://skia.googlecode.com/svn/trunk@1930 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix gradients_degenerate test case for SKIA_SCALAR_IS_FIXED
epoger@google.com [Thu, 21 Jul 2011 15:50:33 +0000 (15:50 +0000)]
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

13 years agorebaseline with unhinted rotated text in freetype
reed@google.com [Thu, 21 Jul 2011 15:11:50 +0000 (15:11 +0000)]
rebaseline with unhinted rotated text in freetype

git-svn-id: http://skia.googlecode.com/svn/trunk@1927 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agorebaseline now that freetype is unhinted when rotated
reed@google.com [Thu, 21 Jul 2011 14:34:03 +0000 (14:34 +0000)]
rebaseline now that freetype is unhinted when rotated

git-svn-id: http://skia.googlecode.com/svn/trunk@1926 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoIn experimental/SkSetPoly3To3_A.cpp, rename div() to divide() to resolve namespace...
epoger@google.com [Thu, 21 Jul 2011 14:18:48 +0000 (14:18 +0000)]
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

13 years agodisable hinting when rotated, since it looks bad
reed@google.com [Thu, 21 Jul 2011 14:12:36 +0000 (14:12 +0000)]
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

13 years agoFix SkFlate.cpp when SK_ZLIB_INCLUDE is not #defined.
epoger@google.com [Thu, 21 Jul 2011 13:56:34 +0000 (13:56 +0000)]
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

13 years agowhitespace change
epoger@google.com [Wed, 20 Jul 2011 21:47:53 +0000 (21:47 +0000)]
whitespace change

git-svn-id: http://skia.googlecode.com/svn/trunk@1919 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agohave == always return bool, never int
reed@google.com [Wed, 20 Jul 2011 19:55:42 +0000 (19:55 +0000)]
have == always return bool, never int

git-svn-id: http://skia.googlecode.com/svn/trunk@1915 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoreplace SkRefPtr for parameters with simple pointers
reed@google.com [Wed, 20 Jul 2011 18:43:19 +0000 (18:43 +0000)]
replace SkRefPtr for parameters with simple pointers

git-svn-id: http://skia.googlecode.com/svn/trunk@1913 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Use insert and append helpers for POD data.
vandebo@chromium.org [Wed, 20 Jul 2011 18:39:20 +0000 (18:39 +0000)]
[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

13 years ago[PDF] Make stream compression optional on a per device basis.
vandebo@chromium.org [Wed, 20 Jul 2011 17:39:01 +0000 (17:39 +0000)]
[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

13 years agofix Capitalization of static methods
reed@google.com [Wed, 20 Jul 2011 17:20:28 +0000 (17:20 +0000)]
fix Capitalization of static methods

git-svn-id: http://skia.googlecode.com/svn/trunk@1910 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agohelpers for append and insert when the value is a POD.
reed@google.com [Wed, 20 Jul 2011 12:14:33 +0000 (12:14 +0000)]
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

13 years ago[PDF] Fix substitute resources size calculation.
vandebo@chromium.org [Wed, 20 Jul 2011 00:33:53 +0000 (00:33 +0000)]
[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

13 years agoFix GPU blur cacheing bug. Sometimes, the texture cache serves us textures of
senorblanco@chromium.org [Tue, 19 Jul 2011 21:22:13 +0000 (21:22 +0000)]
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

13 years agoremove these for now, since each WIN machine can have different lcd
reed@google.com [Tue, 19 Jul 2011 19:20:30 +0000 (19:20 +0000)]
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

13 years agorebaseline with new gpu-based blurricator
reed@google.com [Tue, 19 Jul 2011 19:18:21 +0000 (19:18 +0000)]
rebaseline with new gpu-based blurricator

git-svn-id: http://skia.googlecode.com/svn/trunk@1905 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoexport function to return a typeface's LOGFONT
reed@google.com [Tue, 19 Jul 2011 19:08:33 +0000 (19:08 +0000)]
export function to return a typeface's LOGFONT

git-svn-id: http://skia.googlecode.com/svn/trunk@1903 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agonew baselines now that we're executing the blurs directly on the gpu
reed@google.com [Tue, 19 Jul 2011 18:06:42 +0000 (18:06 +0000)]
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

13 years agoEnable the GPU-based blur by default in Skia, and provide a #define to disable
senorblanco@chromium.org [Tue, 19 Jul 2011 16:40:58 +0000 (16:40 +0000)]
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

13 years agoeliminate unneeded refs/unrefs
reed@google.com [Tue, 19 Jul 2011 15:46:40 +0000 (15:46 +0000)]
eliminate unneeded refs/unrefs

git-svn-id: http://skia.googlecode.com/svn/trunk@1900 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoInstead of turning clipping off during AA, clip to the offscreen tile when
tomhudson@google.com [Tue, 19 Jul 2011 15:44:00 +0000 (15:44 +0000)]
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

13 years agoiOSSampleApp can now switch backends during runtime
yangsu@google.com [Tue, 19 Jul 2011 15:17:44 +0000 (15:17 +0000)]
iOSSampleApp can now switch backends during runtime

git-svn-id: http://skia.googlecode.com/svn/trunk@1897 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agowhitespace commit to trigger buildbot
epoger@google.com [Tue, 19 Jul 2011 13:13:35 +0000 (13:13 +0000)]
whitespace commit to trigger buildbot

git-svn-id: http://skia.googlecode.com/svn/trunk@1896 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRemove dead edgebuilding code
mike@reedtribe.org [Tue, 19 Jul 2011 01:28:17 +0000 (01:28 +0000)]
Remove dead edgebuilding code

git-svn-id: http://skia.googlecode.com/svn/trunk@1893 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Add setPage method to SkPDFDocument.
vandebo@chromium.org [Mon, 18 Jul 2011 23:13:19 +0000 (23:13 +0000)]
[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

13 years agoFix kernel width calculation in GPU-based Gaussian blur. When converting the
senorblanco@chromium.org [Mon, 18 Jul 2011 21:48:35 +0000 (21:48 +0000)]
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

13 years agoAdd mac baselines for tinybitmap
bsalomon@google.com [Mon, 18 Jul 2011 21:31:41 +0000 (21:31 +0000)]
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

13 years agoAdd linux tinybitmap gm images
bsalomon@google.com [Mon, 18 Jul 2011 21:23:49 +0000 (21:23 +0000)]
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

13 years agoAdd tinybitmap gm and windows baselines.
bsalomon@google.com [Mon, 18 Jul 2011 21:19:31 +0000 (21:19 +0000)]
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

13 years agoUse texture cache for writePixels temp
bsalomon@google.com [Mon, 18 Jul 2011 19:31:59 +0000 (19:31 +0000)]
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

13 years ago[PDF] Make color shaders work correctly.
vandebo@chromium.org [Mon, 18 Jul 2011 18:40:32 +0000 (18:40 +0000)]
[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

13 years agoAdd baselines for tex data gm for mac.
bsalomon@google.com [Mon, 18 Jul 2011 15:49:37 +0000 (15:49 +0000)]
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

13 years agoGPU strokeAndFill only does the fill
bungeman@google.com [Mon, 18 Jul 2011 15:34:08 +0000 (15:34 +0000)]
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

13 years agoAdd linux gm baselines for tex data test
bsalomon@google.com [Mon, 18 Jul 2011 15:28:06 +0000 (15:28 +0000)]
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

13 years agoflip Y in uploads to bottom-up textures (and add gm test)
bsalomon@google.com [Mon, 18 Jul 2011 15:25:04 +0000 (15:25 +0000)]
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

13 years agoFixed an #ifdef bug in SkUIView
yangsu@google.com [Sun, 17 Jul 2011 14:51:52 +0000 (14:51 +0000)]
Fixed an #ifdef bug in SkUIView

git-svn-id: http://skia.googlecode.com/svn/trunk@1881 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRemoved old files in iOSSampleApp
yangsu@google.com [Sun, 17 Jul 2011 14:44:55 +0000 (14:44 +0000)]
Removed old files in iOSSampleApp

git-svn-id: http://skia.googlecode.com/svn/trunk@1880 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoUpdated iOSSampleApp to display FPS and display in OpenGL
yangsu@google.com [Sun, 17 Jul 2011 14:42:08 +0000 (14:42 +0000)]
Updated iOSSampleApp to display FPS and display in OpenGL

git-svn-id: http://skia.googlecode.com/svn/trunk@1879 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd whitespace.txt for no-op changelists.
epoger@google.com [Fri, 15 Jul 2011 18:12:54 +0000 (18:12 +0000)]
Add whitespace.txt for no-op changelists.

git-svn-id: http://skia.googlecode.com/svn/trunk@1877 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoconvolve GrRefCnt and SkRefCnt
reed@google.com [Fri, 15 Jul 2011 15:52:28 +0000 (15:52 +0000)]
convolve GrRefCnt and SkRefCnt

git-svn-id: http://skia.googlecode.com/svn/trunk@1873 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd validate() and SkAutoRef
reed@google.com [Fri, 15 Jul 2011 15:25:22 +0000 (15:25 +0000)]
add validate() and SkAutoRef

git-svn-id: http://skia.googlecode.com/svn/trunk@1872 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMore GPU blur fixes.
senorblanco@chromium.org [Fri, 15 Jul 2011 14:28:16 +0000 (14:28 +0000)]
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

13 years agocheck for non-finite values that can make us overshoot
reed@google.com [Fri, 15 Jul 2011 14:14:45 +0000 (14:14 +0000)]
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

13 years agowhitespace commit to trigger buildbot
epoger@google.com [Fri, 15 Jul 2011 14:11:58 +0000 (14:11 +0000)]
whitespace commit to trigger buildbot

git-svn-id: http://skia.googlecode.com/svn/trunk@1869 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoImplement remaining options in Windows command-line build
epoger@google.com [Fri, 15 Jul 2011 13:23:22 +0000 (13:23 +0000)]
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

13 years agowhitespace change to trigger buildbot
epoger@google.com [Fri, 15 Jul 2011 13:22:15 +0000 (13:22 +0000)]
whitespace change to trigger buildbot

git-svn-id: http://skia.googlecode.com/svn/trunk@1867 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix printf output for name when skscalar is fixed
reed@google.com [Thu, 14 Jul 2011 19:22:19 +0000 (19:22 +0000)]
fix printf output for name when skscalar is fixed

git-svn-id: http://skia.googlecode.com/svn/trunk@1866 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd bench for building blurs
reed@google.com [Thu, 14 Jul 2011 19:03:58 +0000 (19:03 +0000)]
add bench for building blurs

git-svn-id: http://skia.googlecode.com/svn/trunk@1865 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix http://b/issue?id=5030894 ('Not working on windows: python gyp_skia')
epoger@google.com [Thu, 14 Jul 2011 18:55:12 +0000 (18:55 +0000)]
Fix 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

13 years agomake gyp_skia runnable from any directory
epoger@google.com [Thu, 14 Jul 2011 17:31:33 +0000 (17:31 +0000)]
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

13 years agoadd now that gpu handles this correctly
reed@google.com [Thu, 14 Jul 2011 17:14:27 +0000 (17:14 +0000)]
add now that gpu handles this correctly

git-svn-id: http://skia.googlecode.com/svn/trunk@1862 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoUndo accidental commit of GrContext.cpp in r1860.
bsalomon@google.com [Thu, 14 Jul 2011 15:50:53 +0000 (15:50 +0000)]
Undo accidental commit of GrContext.cpp in r1860.

git-svn-id: http://skia.googlecode.com/svn/trunk@1861 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake CPU->GPU blur path use texture cache
bsalomon@google.com [Thu, 14 Jul 2011 15:45:19 +0000 (15:45 +0000)]
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

13 years agoFix clipping problem in GPU-based blur. The FBOs used for the fast Gaussian
senorblanco@chromium.org [Thu, 14 Jul 2011 15:29:57 +0000 (15:29 +0000)]
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

13 years agoRemove some cruft from SampleApp.cpp
bsalomon@google.com [Thu, 14 Jul 2011 14:45:44 +0000 (14:45 +0000)]
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

13 years agoAdd DeviceManager to SampleWindow
bsalomon@google.com [Thu, 14 Jul 2011 14:30:46 +0000 (14:30 +0000)]
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

13 years agoExtends skdiff to handle commands of the form
tomhudson@google.com [Thu, 14 Jul 2011 13:15:55 +0000 (13:15 +0000)]
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

13 years agoUpdated SkUIView to use the current code, added a default gl interface for ios
yangsu@google.com [Wed, 13 Jul 2011 22:05:00 +0000 (22:05 +0000)]
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

13 years agoRemove unused SkGpuDevice functions, add GrRenderTarget handle getters
bsalomon@google.com [Wed, 13 Jul 2011 21:53:49 +0000 (21:53 +0000)]
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

13 years agoenable "make XXX" command-line builds on Windows
epoger@google.com [Wed, 13 Jul 2011 21:30:14 +0000 (21:30 +0000)]
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

13 years agoFix build break from 1851.
bungeman@google.com [Wed, 13 Jul 2011 20:18:16 +0000 (20:18 +0000)]
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

13 years agoChange pdfTransform to asAffine.
bungeman@google.com [Wed, 13 Jul 2011 19:41:55 +0000 (19:41 +0000)]
Change pdfTransform to asAffine.
http://codereview.appspot.com/4704044/

git-svn-id: http://skia.googlecode.com/svn/trunk@1851 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agosince I can't make GDI's lcd text pretty when we're rotated, detect that
reed@google.com [Wed, 13 Jul 2011 18:02:28 +0000 (18:02 +0000)]
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

13 years agoFix path iter returned pt on close, test path close pt in unit test.
bsalomon@google.com [Wed, 13 Jul 2011 17:44:36 +0000 (17:44 +0000)]
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

13 years agoIn skdiff, merge paths into the struct that holds the filename, to enable
tomhudson@google.com [Wed, 13 Jul 2011 17:42:46 +0000 (17:42 +0000)]
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

13 years agoadd more scalerrec filtering, in prep for handling unhinted
reed@google.com [Wed, 13 Jul 2011 15:25:33 +0000 (15:25 +0000)]
add more scalerrec filtering, in prep for handling unhinted

git-svn-id: http://skia.googlecode.com/svn/trunk@1847 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agosend output to printf as well, for commandlines
reed@google.com [Wed, 13 Jul 2011 15:16:42 +0000 (15:16 +0000)]
send output to printf as well, for commandlines

git-svn-id: http://skia.googlecode.com/svn/trunk@1846 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd more angles, and test lineartext
reed@google.com [Wed, 13 Jul 2011 14:06:19 +0000 (14:06 +0000)]
add more angles, and test lineartext

git-svn-id: http://skia.googlecode.com/svn/trunk@1844 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoModified to add support to print in the margins of pdf documents
ctguil@chromium.org [Tue, 12 Jul 2011 21:56:27 +0000 (21:56 +0000)]
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

13 years agoGPU-based blur cleanup. Clean up some issues raised in code review:
senorblanco@chromium.org [Tue, 12 Jul 2011 19:44:51 +0000 (19:44 +0000)]
GPU-based blur cleanup.  Clean up some issues raised in code review:

- convolveRect() is too low-level; made it private and exposed convolveInX() and
convolveInY() instead
- added GrAutoTextureEntry to automatically unlock a texture entry
- the clipping and bounder checks were returning false from
drawWithGPUMaskFilter(), causing the software blur to kick in; return true
instead
- the Windows build was giving a spurious warning about reading an uninitialized
variable; rearrange the code to fix it

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1842 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRemove a few old uses of SK_RESTRICT on references.
tomhudson@google.com [Tue, 12 Jul 2011 19:19:03 +0000 (19:19 +0000)]
Remove a few old uses of SK_RESTRICT on references.
Conditionally #defines SK_RESTRICT to be __restrict on Win32;
this successfully compiles in VS2008.

git-svn-id: http://skia.googlecode.com/svn/trunk@1841 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix windows build (unreviewed).
senorblanco@chromium.org [Tue, 12 Jul 2011 17:02:06 +0000 (17:02 +0000)]
Fix windows build (unreviewed).

git-svn-id: http://skia.googlecode.com/svn/trunk@1840 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoImplement blur types for GPU-based Gaussian blur.
senorblanco@chromium.org [Tue, 12 Jul 2011 16:54:59 +0000 (16:54 +0000)]
Implement blur types for GPU-based Gaussian blur.

Implements the remaining blur types (inner, outer, solid) in the
GPU-based Gaussian blur.  They are implemented using a post-upsampling blending
pass.  Also includes some code cleanup and comments.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1839 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago"make" script to enable command-line build on Windows
epoger@google.com [Mon, 11 Jul 2011 19:52:00 +0000 (19:52 +0000)]
"make" script to enable command-line build on Windows
http://codereview.appspot.com/4685051/

git-svn-id: http://skia.googlecode.com/svn/trunk@1838 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agopass correct value for black
reed@google.com [Mon, 11 Jul 2011 12:24:41 +0000 (12:24 +0000)]
pass correct value for black

git-svn-id: http://skia.googlecode.com/svn/trunk@1836 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agolimit clip to fixed-point range, so our edges don't overflow
reed@google.com [Mon, 11 Jul 2011 12:21:30 +0000 (12:21 +0000)]
limit clip to fixed-point range, so our edges don't overflow

git-svn-id: http://skia.googlecode.com/svn/trunk@1835 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd new baselines
mike@reedtribe.org [Sat, 9 Jul 2011 01:55:55 +0000 (01:55 +0000)]
add new baselines

git-svn-id: http://skia.googlecode.com/svn/trunk@1834 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agorebaseline
mike@reedtribe.org [Sat, 9 Jul 2011 01:51:52 +0000 (01:51 +0000)]
rebaseline

git-svn-id: http://skia.googlecode.com/svn/trunk@1833 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd sample for 2ptradial where we divide by zero
reed@google.com [Fri, 8 Jul 2011 20:12:55 +0000 (20:12 +0000)]
add sample for 2ptradial where we divide by zero

git-svn-id: http://skia.googlecode.com/svn/trunk@1832 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agobe sure to allocate space for kDone_DrawOp before we write it (thanks Yang)
reed@google.com [Fri, 8 Jul 2011 18:53:39 +0000 (18:53 +0000)]
be sure to allocate space for kDone_DrawOp before we write it (thanks Yang)

git-svn-id: http://skia.googlecode.com/svn/trunk@1831 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoGPU-based Gaussian blur.
senorblanco@chromium.org [Fri, 8 Jul 2011 18:03:33 +0000 (18:03 +0000)]
GPU-based Gaussian blur.

This is a first stab at implementing a GPU-based
Gaussian blur in Ganesh.  The convolution shader is implemented as a new
filtering mode.  There are several known issues:

- no support for blur types other than "normal"
- FBO truncation problem at high zoom values
- uses bilinear for upsampling instead of Mitchell

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1830 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoReplace vsnprintf with vsnprintf_s; add code to reproduce issue to StringTest;
tomhudson@google.com [Fri, 8 Jul 2011 17:49:22 +0000 (17:49 +0000)]
Replace vsnprintf with vsnprintf_s; add code to reproduce issue to StringTest;
fix another Windows test failure.

git-svn-id: http://skia.googlecode.com/svn/trunk@1829 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoModulate color shader's alpha with paint alpha when setting up gpu paint (fixes Sampl...
bsalomon@google.com [Fri, 8 Jul 2011 16:55:04 +0000 (16:55 +0000)]
Modulate color shader's alpha with paint alpha when setting up gpu paint (fixes SampleTinyBitmap)

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1828 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd gm baselines for windows
bsalomon@google.com [Fri, 8 Jul 2011 16:47:44 +0000 (16:47 +0000)]
Add gm baselines for windows

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1827 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agolittle bit of gyp cleanup (fixes windows build of sktime_unix)
bsalomon@google.com [Fri, 8 Jul 2011 16:10:53 +0000 (16:10 +0000)]
little bit of gyp cleanup (fixes windows build of sktime_unix)

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1826 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoReplace reference parameter with pointer so that we can pass NULL
tomhudson@google.com [Fri, 8 Jul 2011 14:41:12 +0000 (14:41 +0000)]
Replace reference parameter with pointer so that we can pass NULL
in SkDrawPaint::add(); check the pointer when it's used to avoid
dereferencing NULL.

Add title to Animator sample slide.

git-svn-id: http://skia.googlecode.com/svn/trunk@1825 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove dead code
reed@google.com [Thu, 7 Jul 2011 20:04:22 +0000 (20:04 +0000)]
remove dead code

git-svn-id: http://skia.googlecode.com/svn/trunk@1824 2bbb7eff-a529-9590-31e7-b0007b416f81