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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
yangsu@google.com [Thu, 7 Jul 2011 19:50:59 +0000 (19:50 +0000)]
Changed Bundler identifier to com.google in iOSSampleApp
git-svn-id: http://skia.googlecode.com/svn/trunk@1823
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Thu, 7 Jul 2011 19:45:39 +0000 (19:45 +0000)]
Fixed iOSSampleApp dependencies
git-svn-id: http://skia.googlecode.com/svn/trunk@1822
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Thu, 7 Jul 2011 19:34:18 +0000 (19:34 +0000)]
Deleted the #endif that's caused the compiler erro
git-svn-id: http://skia.googlecode.com/svn/trunk@1821
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Thu, 7 Jul 2011 19:26:42 +0000 (19:26 +0000)]
Updated iOSSampleApp and related files.
Removed include guard in SkTime_Unix.cpp, which the iOSSampleApp now uses.
git-svn-id: http://skia.googlecode.com/svn/trunk@1820
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Jul 2011 19:12:50 +0000 (19:12 +0000)]
re-enable SSE2 blitmask procs, only excluding if we're black (in which case
the protable version is still faster)
git-svn-id: http://skia.googlecode.com/svn/trunk@1819
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Jul 2011 17:39:48 +0000 (17:39 +0000)]
update macbook baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@1818
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 7 Jul 2011 14:38:03 +0000 (14:38 +0000)]
Fix div by zero in GPU degenerate radials (and add sample and gm baselines)
Review URL: http://codereview.appspot.com/4675062/
git-svn-id: http://skia.googlecode.com/svn/trunk@1817
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Jul 2011 13:43:38 +0000 (13:43 +0000)]
add asABlur() to maskfilters, so devices like gpu and pdf can query them.
git-svn-id: http://skia.googlecode.com/svn/trunk@1816
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 7 Jul 2011 13:42:37 +0000 (13:42 +0000)]
Allow texture-backed bitmaps to perform a read-back when lockPixels is called.
This means we have to be even more cautious about when we call lock, and we should
always check getTexture() first if we can handle a texture directly, rather than
forcing the read-back to get the bits.
git-svn-id: http://skia.googlecode.com/svn/trunk@1815
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Thu, 7 Jul 2011 01:17:07 +0000 (01:17 +0000)]
be sure to call setupPaint, so we can respect the command-line args like alpha
git-svn-id: http://skia.googlecode.com/svn/trunk@1814
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Thu, 7 Jul 2011 01:10:34 +0000 (01:10 +0000)]
Be sure to call context->flush() before we swapbuffers, otherwise we might miss
some deferred drawing calls (esp. text). SkGpuCanvas was doing this for us, so
now we have to do it explicitly.
git-svn-id: http://skia.googlecode.com/svn/trunk@1813
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 6 Jul 2011 23:31:24 +0000 (23:31 +0000)]
[PDF] Add a concept of a substitute object to the SkPDFCatalog class.
Code by Arthur Hsu, original code review: http://codereview.appspot.com/4650060/
Review URL: http://codereview.appspot.com/4639102
git-svn-id: http://skia.googlecode.com/svn/trunk@1812
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 6 Jul 2011 21:59:09 +0000 (21:59 +0000)]
make sure size change posts at sample app startup.
git-svn-id: http://skia.googlecode.com/svn/trunk@1811
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 21:18:09 +0000 (21:18 +0000)]
ColorShaders report no bitmaps, but only a color_gradient, which we now detect
on the gpu side.
git-svn-id: http://skia.googlecode.com/svn/trunk@1810
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 21:01:29 +0000 (21:01 +0000)]
add option to test 1x1 bitmapshader
git-svn-id: http://skia.googlecode.com/svn/trunk@1809
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 20:00:52 +0000 (20:00 +0000)]
remove SkDeviceFactory from the collective consciousness, now that devices know
how to create compatible siblings.
git-svn-id: http://skia.googlecode.com/svn/trunk@1808
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 6 Jul 2011 19:52:16 +0000 (19:52 +0000)]
Remove nested scope resolutions in GrGpuGLShaders and use enum counts for generating random values in unit test.
git-svn-id: http://skia.googlecode.com/svn/trunk@1807
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 19:45:53 +0000 (19:45 +0000)]
make the mac window resizeable again
git-svn-id: http://skia.googlecode.com/svn/trunk@1806
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 18:25:08 +0000 (18:25 +0000)]
add debugging code for degenerate gradients (to be removed later)
git-svn-id: http://skia.googlecode.com/svn/trunk@1805
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 18:16:00 +0000 (18:16 +0000)]
notice if the bitmap failed to load
git-svn-id: http://skia.googlecode.com/svn/trunk@1804
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 18:01:20 +0000 (18:01 +0000)]
fix typo:
this-make3DReady()
should be
this->make3DReady()
git-svn-id: http://skia.googlecode.com/svn/trunk@1803
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 17:56:47 +0000 (17:56 +0000)]
always use grcontext to get the bits to the screen
git-svn-id: http://skia.googlecode.com/svn/trunk@1802
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 6 Jul 2011 17:47:02 +0000 (17:47 +0000)]
Reduce gets of ext string and check validity of stencil format enums
Review URL: http://codereview.appspot.com/4678043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1801
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 6 Jul 2011 17:41:08 +0000 (17:41 +0000)]
Indexed drawing for paths with multiple contours
Review URL: http://codereview.appspot.com/4648071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1800
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 15:27:03 +0000 (15:27 +0000)]
revert prev hack around make3DReady
git-svn-id: http://skia.googlecode.com/svn/trunk@1799
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 15:11:07 +0000 (15:11 +0000)]
force grcontext to be created at startup
git-svn-id: http://skia.googlecode.com/svn/trunk@1798
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 15:10:25 +0000 (15:10 +0000)]
fix return value for make_bitmap
git-svn-id: http://skia.googlecode.com/svn/trunk@1797
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 6 Jul 2011 13:59:47 +0000 (13:59 +0000)]
check-point for testing drawBitmap [raster,gpu] -> [raster,gpu]
git-svn-id: http://skia.googlecode.com/svn/trunk@1796
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Jul 2011 19:20:48 +0000 (19:20 +0000)]
suppress printfs
git-svn-id: http://skia.googlecode.com/svn/trunk@1795
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Jul 2011 19:12:59 +0000 (19:12 +0000)]
add SK_API to SkMatrix44
git-svn-id: http://skia.googlecode.com/svn/trunk@1794
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Jul 2011 19:09:47 +0000 (19:09 +0000)]
suppress printfs
git-svn-id: http://skia.googlecode.com/svn/trunk@1793
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Jul 2011 18:54:12 +0000 (18:54 +0000)]
add SkEmptyShader, and return it from CreateBitmapShader if the bitmap is empty
(i.e. has no pixels at all)
git-svn-id: http://skia.googlecode.com/svn/trunk@1792
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Jul 2011 17:44:56 +0000 (17:44 +0000)]
defer allocating blitter until we know we need it (i.e. gpu-devices don't need,
which they signal by setting a custom D1G proc)
git-svn-id: http://skia.googlecode.com/svn/trunk@1791
2bbb7eff-a529-9590-31e7-
b0007b416f81