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
epoger@google.com [Wed, 29 Jun 2011 14:14:24 +0000 (14:14 +0000)]
another intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1750
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 13:55:12 +0000 (13:55 +0000)]
fix intentional break
git-svn-id: http://skia.googlecode.com/svn/trunk@1749
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 29 Jun 2011 13:41:47 +0000 (13:41 +0000)]
intentional error to exercise buildbot emails
git-svn-id: http://skia.googlecode.com/svn/trunk@1748
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 13:27:56 +0000 (13:27 +0000)]
oops, these are the "correct" initial pdf baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@1747
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 13:00:11 +0000 (13:00 +0000)]
add initial pdf gm images. These have not be manually checked for correctness.
git-svn-id: http://skia.googlecode.com/svn/trunk@1746
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 29 Jun 2011 12:54:46 +0000 (12:54 +0000)]
create bitmaps from pdf output for comparison purposes (mac only at the moment)
git-svn-id: http://skia.googlecode.com/svn/trunk@1745
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 21:52:34 +0000 (21:52 +0000)]
fix bitmapinfo
git-svn-id: http://skia.googlecode.com/svn/trunk@1744
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 20:54:03 +0000 (20:54 +0000)]
add mac utility to turn a pdf into a bitmap
git-svn-id: http://skia.googlecode.com/svn/trunk@1743
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 28 Jun 2011 19:44:03 +0000 (19:44 +0000)]
Parse SampleApp command line for a test name. If an argument is passed to
SampleApp on the command line, interpret it as a test name. If it's a valid
test, open that test at startup.
Review URL: http://codereview.appspot.com/
4661054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1742
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 28 Jun 2011 19:17:28 +0000 (19:17 +0000)]
Add base-linux and base-linux-fixed images for lcdtext test in gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1741
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 28 Jun 2011 18:56:47 +0000 (18:56 +0000)]
Add baseline images for new lcdtext within gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1740
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 28 Jun 2011 16:48:56 +0000 (16:48 +0000)]
make toplevel Makefile pass MAKEFLAGS to out/Makefile
http://codereview.appspot.com/
4661052
git-svn-id: http://skia.googlecode.com/svn/trunk@1739
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 28 Jun 2011 16:44:00 +0000 (16:44 +0000)]
Fix Mac compile - missing comma.
Review URL: http://codereview.appspot.com/
4625073
git-svn-id: http://skia.googlecode.com/svn/trunk@1738
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 28 Jun 2011 16:33:21 +0000 (16:33 +0000)]
Fix core text font metrics - scale to em size and convert float to int
Review URL: http://codereview.appspot.com/
4654070
git-svn-id: http://skia.googlecode.com/svn/trunk@1737
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 28 Jun 2011 16:20:27 +0000 (16:20 +0000)]
Create new lcdtext page within gm
http://codereview.appspot.com/
4654071
git-svn-id: http://skia.googlecode.com/svn/trunk@1736
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 28 Jun 2011 15:19:32 +0000 (15:19 +0000)]
Guard against 0 tolerance in curve subdivision.
git-svn-id: http://skia.googlecode.com/svn/trunk@1735
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 28 Jun 2011 13:53:13 +0000 (13:53 +0000)]
Change output format of dump() to make VS2008 happy.
codereview.appspot.com/
4629071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1734
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 12:02:58 +0000 (12:02 +0000)]
fix sign/unsigned warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@1733
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 11:57:12 +0000 (11:57 +0000)]
remove unused and untested SkPath::subdivide()
git-svn-id: http://skia.googlecode.com/svn/trunk@1732
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 28 Jun 2011 11:54:37 +0000 (11:54 +0000)]
fix exceeds_dist: don't double the loop counter (the caller has done that)
git-svn-id: http://skia.googlecode.com/svn/trunk@1731
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Mon, 27 Jun 2011 20:48:23 +0000 (20:48 +0000)]
Adding support for shadows when drawing bitmaps with skia gpu device
Added code to handle this case in SkGpuDevice::drawBitmap
Added test to cover this use case in SampleTextureDomain.cpp
BUG=http://code.google.com/p/chromium/issues/detail?id=83440
REVIEW=http://codereview.appspot.com/
4530068/
git-svn-id: http://skia.googlecode.com/svn/trunk@1730
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 18:38:27 +0000 (18:38 +0000)]
fix div-by-zero (triggers debugging assert when scalar=fixed) and add master
(raster only) images for degenerate gradient test
git-svn-id: http://skia.googlecode.com/svn/trunk@1729
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 27 Jun 2011 18:12:31 +0000 (18:12 +0000)]
Fix compiler warning triggered by non-understanding of assert.
Review URL: http://codereview.appspot.com/
4666043
git-svn-id: http://skia.googlecode.com/svn/trunk@1728
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 18:11:17 +0000 (18:11 +0000)]
add test for degenerate 2point gradients (needs pdf and gpu fixes)
git-svn-id: http://skia.googlecode.com/svn/trunk@1727
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 17:41:22 +0000 (17:41 +0000)]
add ptr/len and SkData versions of Deflate()
git-svn-id: http://skia.googlecode.com/svn/trunk@1726
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 16:44:46 +0000 (16:44 +0000)]
remove obsolete text codepaths
git-svn-id: http://skia.googlecode.com/svn/trunk@1725
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 14:47:50 +0000 (14:47 +0000)]
fix warnings (signed/unsigned, initialization order, parens)
git-svn-id: http://skia.googlecode.com/svn/trunk@1724
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 27 Jun 2011 14:42:15 +0000 (14:42 +0000)]
remove drawShape from canvas api
git-svn-id: http://skia.googlecode.com/svn/trunk@1723
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 24 Jun 2011 23:13:47 +0000 (23:13 +0000)]
Add a zlib target that the pdf target can depend on.
- make drawTextOnPath (now used by shadertext) a non fatal NOT_IMPLEMENTED on PDF.
Review URL: http://codereview.appspot.com/
4631071
git-svn-id: http://skia.googlecode.com/svn/trunk@1722
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Fri, 24 Jun 2011 21:09:39 +0000 (21:09 +0000)]
Modified the iOS pdf data code to use steam.copytoData()
git-svn-id: http://skia.googlecode.com/svn/trunk@1721
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 24 Jun 2011 21:01:17 +0000 (21:01 +0000)]
update dox
git-svn-id: http://skia.googlecode.com/svn/trunk@1720
2bbb7eff-a529-9590-31e7-
b0007b416f81