yangsu@google.com
338ee24420
Changed variables to not conflict with variables/properties in Cocao Touch
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1700 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-24 15:00:28 +00:00
bungeman@google.com
fe5afe5d27
Make images properly depend on utils.
...
http://codereview.appspot.com/4629068/
git-svn-id: http://skia.googlecode.com/svn/trunk@1699 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-24 13:58:17 +00:00
reed@google.com
3a31ac1cf5
add (replacing SkDataRef)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1698 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-24 13:11:05 +00:00
reed@google.com
8d0b5770f8
rename public SkDataRef to SkData
...
rename animator's internal SkData to SkDataInput
git-svn-id: http://skia.googlecode.com/svn/trunk@1697 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-24 13:07:31 +00:00
yangsu@google.com
c134f39401
Added platform specific includes
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1696 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 22:27:30 +00:00
reed@google.com
70442a6cf7
add copyToData() to dyanamicwstream
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1695 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 21:48:04 +00:00
bungeman@google.com
9df621da50
Wrap SkStreams in IStreams instead of copying data around.
...
http://codereview.appspot.com/4630062/
git-svn-id: http://skia.googlecode.com/svn/trunk@1694 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 21:43:52 +00:00
epoger@google.com
8fd48b8bd8
whitespace commit
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1693 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 21:30:35 +00:00
epoger@google.com
f4c94290ab
Added gm/base-MacPro-fixed
...
http://codereview.appspot.com/4631065
git-svn-id: http://skia.googlecode.com/svn/trunk@1691 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 20:52:37 +00:00
reed@google.com
c8e0f9311c
fix mono bittest
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1690 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 19:39:49 +00:00
epoger@google.com
6b9580c2ef
Allow override of skia_scalar gyp variable using GYP_DEFINES
...
http://codereview.appspot.com/4631061/
git-svn-id: http://skia.googlecode.com/svn/trunk@1689 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 19:34:50 +00:00
epoger@google.com
02362945f7
Add "tools" to "make all"
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1688 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 19:24:28 +00:00
reed@google.com
8871a84935
detect when our quadratic is really linear for 2-point radial, and don't
...
divide by zero, but rather just return -c/b
git-svn-id: http://skia.googlecode.com/svn/trunk@1684 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 15:07:04 +00:00
reed@google.com
73824072a9
promote embedded bitmaps for lcd16
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1679 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 13:17:30 +00:00
bungeman@google.com
3c1412f717
Update BenchGpuTimer.cpp to new interface.
...
http://codereview.appspot.com/4645055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1678 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-23 13:14:57 +00:00
bungeman@google.com
242bb89c0d
Add image encoder/decoder for Windows.
...
http://codereview.appspot.com/4634078/
git-svn-id: http://skia.googlecode.com/svn/trunk@1676 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 20:42:34 +00:00
epoger@google.com
5d2e4cc165
add toplevel Makefile that works for Mac and Unix
...
http://codereview.appspot.com/4633063
git-svn-id: http://skia.googlecode.com/svn/trunk@1675 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 19:17:28 +00:00
tomhudson@google.com
6e8d335b45
New benchmark to create many random quadratic paths.
...
Added to try to get a handle on the cost of CPU-side changes to GPU rendering, but probably too noisy to be useful.
git-svn-id: http://skia.googlecode.com/svn/trunk@1674 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 17:16:35 +00:00
Scroggo
d3aed39ab1
Unify handleTouch and handleClick in SampleApp.
...
Allow each sample to handle clicks in Android SampleApp.
Remove SampleWindow::handleTouch.
Allow an SkWindow to have multiple clicks.
Add an owner pointer to SkView::Click.
Reviewed at http://codereview.appspot.com/4643052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1673 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 13:26:56 +00:00
caryclark@google.com
1eeaf0ba23
Add support for 8 bits/component glyphs, to
...
better match the fonts produced by CoreText on OS/X.
M include/config/SkUserConfig.h
M include/core/SkMask.h
M include/core/SkScalerContext.h
M src/core/SkBlitter_ARGB32.cpp
M src/core/SkScalerContext.cpp
M src/core/SkPaint.cpp
M src/gpu/SkGrFontScaler.cpp
M src/ports/SkFontHost_mac_coretext.cpp
M src/ports/SkFontHost_mac.cpp
M gpu/include/GrTypes.h
M gpu/src/GrAtlas.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1672 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 13:19:43 +00:00
vandebo@chromium.org
3c898186c9
Fix more coverity defects - Uninitialized class fields.
...
In SkCanvas, SkBitmapCache::Entry, SkDrawLooper
CID=13440,1366,16236,14393
Review URL: http://codereview.appspot.com/4628055
git-svn-id: http://skia.googlecode.com/svn/trunk@1671 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 05:01:28 +00:00
bsalomon@google.com
d19aa27e03
Fix copy/paste error in GrDrawTarget::AutoStateRestore::set
...
Review URL: http://codereview.appspot.com/4639063/
git-svn-id: http://skia.googlecode.com/svn/trunk@1670 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-22 01:28:17 +00:00
vandebo@chromium.org
e1bc274295
Fix a batch of coverity defects, uninitialized class fields.
...
In SkClipStack::B2FIter::Clip, SkWriter32, SkClipStack::Rec, SkDeque::F2BIter, SkPDFShader::State
CID 15427,15433,15533,15532,16274,16740
Review URL: http://codereview.appspot.com/4630055
git-svn-id: http://skia.googlecode.com/svn/trunk@1669 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 22:26:39 +00:00
vandebo@chromium.org
7332207465
Fix some problems detected by coverity.
...
- Uninitialized class member in GSCanonicalEntry and SkPDFDocument.
- Incorrect sign extension in SkPDFFont.
- Dead code in SkPDFUtils.
CID=16262,16272,16273,16275
Review URL: http://codereview.appspot.com/4659041
git-svn-id: http://skia.googlecode.com/svn/trunk@1668 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 21:19:41 +00:00
bsalomon@google.com
7359eae7c6
fix to free a plot when purging gr font cache
...
Review URL: http://codereview.appspot.com/4645054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1667 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 21:18:25 +00:00
vandebo@chromium.org
e03c652478
Handle possibly NULL deref in comparison
...
Committed on behalf of groby@chromium.org
OCL=http://codereview.appspot.com/4633058/
CID=16790,16789
Review URL: http://codereview.appspot.com/4654049
git-svn-id: http://skia.googlecode.com/svn/trunk@1666 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 20:45:51 +00:00
bsalomon@google.com
6aab8e3df7
Initialize members to satisfy coverity.
...
Code review: http://codereview.appspot.com/4657043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1665 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 20:32:12 +00:00
bsalomon@google.com
714df17e83
Remove createDevice decl from SkProxyCanvas.h. Impl has already been removed in r1625.
...
Review URL: http://codereview.appspot.com/4654047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1664 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 19:25:44 +00:00
reed@google.com
6bac947cd5
Add option in flattening to write factory names inline, as we are recording.
...
SkGPipe needs this, since it cannot (unlike SkPicture) see all of the factories
before it hands its data to the reader.
In this mode, the writer embedds the factory name the first time it sees it,
and then after that writes an index (referencing the fFactorySet). The reader
installs an empty array, and as it encounters names, appends them to that array
so that subsequent indices can be used to retrieve the previously named factory.
Some of the existing patheffects did not register their factory names, so those
changes are also part of this CL. Annoyingly, to register your factory using the
current scheme, it has to be in the public section of the class definition.
git-svn-id: http://skia.googlecode.com/svn/trunk@1663 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 19:24:00 +00:00
bsalomon@google.com
25fb21f5df
Refactor GrDrawTarget vertex/index api
...
Review URL: http://codereview.appspot.com/4631056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1662 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 18:17:25 +00:00
Scroggo
62b65b0913
SampleApp fixes.
...
On Android, delete gWindow before calling application_term, avoiding a crash
each time the app closes. Also make sure the screen is redrawn when resuming.
On Linux, delete gWindow to avoid memory leak.
In general, allow moving from sample 0 to the last sample.
Reviewed at http://codereview.appspot.com/4639060
git-svn-id: http://skia.googlecode.com/svn/trunk@1661 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 16:01:26 +00:00
reed@google.com
fd0ffcf486
change string read/write to store length as full 32-bit value. This simplifies
...
the internal logic, and allows SkFlattenable to rely on this when distinguishing
between 0 and indices (which will soon be negative) and string-lengths.
git-svn-id: http://skia.googlecode.com/svn/trunk@1660 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 15:43:11 +00:00
Scroggo
8ac0d542b0
Add a way to save to PDF in SampleApp on Android and elsewhere.
...
In Android, add the PDF file to downloads, so it can be opened.
Reviewed at http://codereview.appspot.com/4638052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1659 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 14:44:57 +00:00
yangsu@google.com
ccb74eabcc
Changed mac specific files to use ApplicationServices rather than Carbon
...
http://codereview.appspot.com/4644053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1658 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 13:09:32 +00:00
reed@google.com
2d54d06adc
update dox
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1657 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-21 12:19:28 +00:00
senorblanco@chromium.org
10a9465b4f
Revert the changes to gyp/images.gyp in r1654, as apparently they're
...
necessary for gm to build correctly.
git-svn-id: http://skia.googlecode.com/svn/trunk@1655 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-20 19:56:53 +00:00
senorblanco@chromium.org
52bbe140a3
Remove some files from views.gyp that already being compiled into utils.gyp
...
(already done for Linux, this change does the same for Mac and Win).
Review URL: http://codereview.appspot.com/4575044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1654 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-20 19:46:42 +00:00
epoger@google.com
2d7a60d8df
whitespace commit to trigger buildbot
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1652 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-20 14:02:22 +00:00
reed@google.com
1a7e9461bb
disable gpu tests when scalar==fixed,
...
add baselines for fixedpoint strokes gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1651 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-20 13:21:24 +00:00
reed@google.com
b317304b7f
add mac desktop baselines for strokes gm
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1650 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-20 13:06:29 +00:00
reed@google.com
d52d362017
add initial baselines for strokes gm
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1649 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-20 12:21:04 +00:00
mike@reedtribe.org
37019e2bb8
add baselines for new test
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1648 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 02:00:47 +00:00
mike@reedtribe.org
643b007596
add strokes.cpp
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1647 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 01:56:44 +00:00
mike@reedtribe.org
90bb49747b
inherit from SampleView
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1646 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 01:35:18 +00:00
mike@reedtribe.org
f2c21cdaf1
add
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1645 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-18 00:15:04 +00:00
epoger@google.com
0c96b0a95e
another whitespace commit
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1644 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 21:00:36 +00:00
epoger@google.com
9bb0c89221
whitespace commit
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1643 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 20:46:33 +00:00
bsalomon@google.com
61f3bde1ba
Fix handling of nan when clamping number of pts in quads/cubics
...
Review URL: http://codereview.appspot.com/4646044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1642 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 20:06:49 +00:00
yangsu@google.com
026427654f
Added FileReaderApp to experimental and it's corresponding gyp file
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1641 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 18:31:01 +00:00
bsalomon@google.com
fe6765293f
Remember last successful stencil format
...
Review URL: http://codereview.appspot.com/4625048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1640 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 18:12:21 +00:00