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
reed@google.com [Tue, 5 Jul 2011 17:04:51 +0000 (17:04 +0000)]
don't call setContext on shader (not necessary), since now gradients ensure that
their bitmap will be built with opaque colors. Also, this avoids calling
lockPixels on the shader's bitmap (if it has one), which is usually not needed
or desired, given that we're a gpu device.
git-svn-id: http://skia.googlecode.com/svn/trunk@1790
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Jul 2011 17:01:56 +0000 (17:01 +0000)]
ensure that our bitmap is built with opaque cachedalpha
git-svn-id: http://skia.googlecode.com/svn/trunk@1789
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sat, 2 Jul 2011 01:26:37 +0000 (01:26 +0000)]
A bit set class. Will be used for font subsetting.
Committed on behalf of arthurhsu@chromium.org with a few final nits.
Original CL: http://codereview.appspot.com/4627077
Review URL: http://codereview.appspot.com/4657070
git-svn-id: http://skia.googlecode.com/svn/trunk@1788
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Jul 2011 22:10:30 +0000 (22:10 +0000)]
Offset bounds in GrDefaultPathRenderer by fTranslate.
Review URL: http://codereview.appspot.com/4667053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1787
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 1 Jul 2011 21:12:20 +0000 (21:12 +0000)]
Reverting r1775 at Mike and Brian's request
git-svn-id: http://skia.googlecode.com/svn/trunk@1786
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 1 Jul 2011 21:01:32 +0000 (21:01 +0000)]
Merge ... SkiOSSampleApp into SampleApp, still a work in progress
http://codereview.appspot.com/4636078/
git-svn-id: http://skia.googlecode.com/svn/trunk@1785
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Jul 2011 20:45:29 +0000 (20:45 +0000)]
export SkAutoSTMalloc (for multi-dll chrome build)
Review URL: http://codereview.appspot.com/4643063/
git-svn-id: http://skia.googlecode.com/svn/trunk@1784
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 1 Jul 2011 20:22:01 +0000 (20:22 +0000)]
Remove compile warning by removing unnecessary output.
git-svn-id: http://skia.googlecode.com/svn/trunk@1783
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 1 Jul 2011 20:20:07 +0000 (20:20 +0000)]
Create new 'skia_os' variable to replace use of 'OS' in most places.
http://codereview.appspot.com/4627085
git-svn-id: http://skia.googlecode.com/svn/trunk@1782
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 1 Jul 2011 17:16:26 +0000 (17:16 +0000)]
combine target_defaults.gypi into common.gypi
http://codereview.appspot.com/4654080
git-svn-id: http://skia.googlecode.com/svn/trunk@1780
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 1 Jul 2011 17:08:26 +0000 (17:08 +0000)]
Reworks r1770 so that users who have replaced SkUserConfig don't have to
make any changes to continue compiling successfully.
git-svn-id: http://skia.googlecode.com/svn/trunk@1779
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Jul 2011 15:21:59 +0000 (15:21 +0000)]
Don't send NULL buffer data hint in chrome
Review URL: http://codereview.appspot.com/4657067/
git-svn-id: http://skia.googlecode.com/svn/trunk@1778
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Jul 2011 14:57:55 +0000 (14:57 +0000)]
Tesselate path once for tiled offscreen AA
Review URL: http://codereview.appspot.com/4661062/
git-svn-id: http://skia.googlecode.com/svn/trunk@1777
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Jul 2011 14:35:40 +0000 (14:35 +0000)]
fix chrome build, check OSX version before referencing 10.6 APIs
git-svn-id: http://skia.googlecode.com/svn/trunk@1776
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Thu, 30 Jun 2011 22:16:06 +0000 (22:16 +0000)]
Fixing several issues with rendering blurred bitmaps with Ganesh
BUG=http://code.google.com/p/skia/issues/detail?id=305
REVIEW=http://codereview.appspot.com/4630073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1775
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 30 Jun 2011 21:32:31 +0000 (21:32 +0000)]
Remove GrAuto*Malloc, replace with SkAuto*Malloc
Review URL: http://codereview.appspot.com/4629088
git-svn-id: http://skia.googlecode.com/svn/trunk@1774
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 30 Jun 2011 21:17:22 +0000 (21:17 +0000)]
fix asserts in new premul inline function
git-svn-id: http://skia.googlecode.com/svn/trunk@1773
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 30 Jun 2011 21:06:22 +0000 (21:06 +0000)]
make inline version of premultiply, to speed up gradient creation.
We could speed-up again if we...
- respected kDither and only built 1/2 of the table for non-dither requests
- output simple params to the gpu rather than always a texture
- detected that we have no alpha, and then can skip premul per-entry
git-svn-id: http://skia.googlecode.com/svn/trunk@1772
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 30 Jun 2011 21:03:02 +0000 (21:03 +0000)]
Revert r1768
git-svn-id: http://skia.googlecode.com/svn/trunk@1771
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 30 Jun 2011 19:37:01 +0000 (19:37 +0000)]
Enable WebKit/Chromium style logging for Skia.
New macros called in Ganesh functions; by default are compiled away,
in example code resolve to printout, and are compatible with WebKit/Chromium
event logging and GPU profiler.
git-svn-id: http://skia.googlecode.com/svn/trunk@1770
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Thu, 30 Jun 2011 17:30:49 +0000 (17:30 +0000)]
Adding the notion of a volatile bitmap to SkBitmap.
Volatility is a hint that indicates that the contents of a bitmap
are ephemeral. SkGpuDevice will not preserve volatile bitmaps
in its texture cache, and will use textures from a pool of
keyless (recyclable) textures to avoid the performance hit of
texture allocation and release.
A subsequent change is required in webkit in order to take advantage
of this optimization. putImageData, and other methods that create
temporary bitmaps will have to mark their bitmaps as volatile.
before rendering them through skia.
git-svn-id: http://skia.googlecode.com/svn/trunk@1769
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 30 Jun 2011 16:51:49 +0000 (16:51 +0000)]
Roll gyp version from 907 to 936
git-svn-id: http://skia.googlecode.com/svn/trunk@1768
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 30 Jun 2011 14:47:55 +0000 (14:47 +0000)]
Fix bug where equality was used instead of assignment.
git-svn-id: http://skia.googlecode.com/svn/trunk@1767
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 30 Jun 2011 14:39:52 +0000 (14:39 +0000)]
SkStringPrintf helper fucntion + a new unit test for it.
git-svn-id: http://skia.googlecode.com/svn/trunk@1766
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 21:20:52 +0000 (21:20 +0000)]
Fix LCD text filtering
git-svn-id: http://skia.googlecode.com/svn/trunk@1765
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 20:43:14 +0000 (20:43 +0000)]
Fix build for old versions of freetype without FT_Library_SetLcdFilter
http://codereview.appspot.com/4625071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1764
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 20:12:38 +0000 (20:12 +0000)]
Don't use the CreateWithData variant: not needed, and isn't available in chrome
git-svn-id: http://skia.googlecode.com/svn/trunk@1763
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 29 Jun 2011 19:42:58 +0000 (19:42 +0000)]
Change true and false to 1 and 0 in macros that are used to conditionally compile code.
Review URL: http://codereview.appspot.com/4664056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1762
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 29 Jun 2011 17:48:17 +0000 (17:48 +0000)]
Fix valgrind reported issue, uninit mem in AutoReleaseGeometry::reset()
Review URL: http://codereview.appspot.com/4667048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1761
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 17:12:47 +0000 (17:12 +0000)]
extract a new factory when we get a new device
git-svn-id: http://skia.googlecode.com/svn/trunk@1760
2bbb7eff-a529-9590-31e7-
b0007b416f81
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