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
bungeman@google.com
6d0c02cc25
Fix Gradient2Bench colors so that Debug bench will run.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1639 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 17:56:23 +00:00
bsalomon@google.com
90405934c5
Fix self-assignment
...
Review URL: http://codereview.appspot.com/4631047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1637 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:56:55 +00:00
Scroggo
b092140c18
Remove redundant GrTouchGesture. Switch its only user to SkTouchGesture.
...
Review at http://codereview.appspot.com/4636045/
git-svn-id: http://skia.googlecode.com/svn/trunk@1636 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:17:07 +00:00
bsalomon@google.com
f9046fef90
Add GrRenderTexture cons for gpu dev. Remove factory from gpu device.
...
Review URL: http://codereview.appspot.com/4631046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1634 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:10:21 +00:00
yangsu@google.com
06b4da16fd
Added dependencies for SkPipe in SampleApp
...
Fixed SkGPipeWrite to reflect changes in SkDevice
git-svn-id: http://skia.googlecode.com/svn/trunk@1633 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:04:40 +00:00
yangsu@google.com
5f802c18f2
Gyp files for Cocoa Debugger and Simple Cocoa App
...
http://codereview.appspot.com/4632045/
git-svn-id: http://skia.googlecode.com/svn/trunk@1632 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 15:00:44 +00:00
bungeman@google.com
85669f9d77
Add graphing for multiple runs of bench.
...
http://codereview.appspot.com/4539087/
git-svn-id: http://skia.googlecode.com/svn/trunk@1628 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 13:58:14 +00:00
Scroggo
b4490c7435
Minor fixes for SampleApp.
...
- Add a comment for invalidating in onSizeChange.
- Call base constructor for SkOSWindow_Unix.
- Call onSizeChange in SampleWindow constructor so fZoomCenter gets set.
git-svn-id: http://skia.googlecode.com/svn/trunk@1627 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 13:53:05 +00:00
tomhudson@google.com
cae6b3f1e8
-replay tests are only run if forward rendering succeeded.
...
-serialize tests are only run if previous test (either -replay or forward
rendering) succeeded.
The results of -replay and -serialize are compared against the output of
forward rendering.
git-svn-id: http://skia.googlecode.com/svn/trunk@1626 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 13:11:45 +00:00
bsalomon@google.com
e97f0856a8
Add createNewCompatibleDevice. Allow devices to have a NULL factory and saveLayer will fall back on createNewCompatibleDevice.
...
Review URL: http://codereview.appspot.com/4633044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1625 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 13:10:25 +00:00
Scroggo
a54e2f61f8
Use SkTouchGesture to handle pinch events in Android SampleApp.
...
http://codereview.appspot.com/4631043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1624 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-17 12:46:17 +00:00
yangsu@google.com
1bce0a5857
Modified Pipe Reader to read an atom at a time
...
http://codereview.appspot.com/4636043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1623 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 21:08:19 +00:00
yangsu@google.com
a8a42e20f0
Added CocoaDebugger to experimental
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1622 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 20:49:55 +00:00
reed@google.com
af951c9bc4
make SkDevice constructors explicit between offscreen and on/direct
...
http://codereview.appspot.com/4632044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1620 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 19:10:39 +00:00
epoger@google.com
3cbd375350
roll back runhooks to fix production buildbot
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1618 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 18:24:11 +00:00
epoger@google.com
0045eddac6
Add "runhooks" to run gyp step upon gclient sync, for buildbot
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1617 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 18:19:46 +00:00
bsalomon@google.com
b5b3168a64
First pass at improving temporary tex/rt reuse
...
Review URL: http://codereview.appspot.com/4625043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1616 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 18:05:35 +00:00
Scroggo
3e7ff9f31d
Better fix for changing the viewport in sample app.
...
Create a platform description and base the size on the SkWindow
in order to create a RenderTarget, which results in changing the
viewport. This allows us to use only GR calls.
In the Android sample app, fix the problem where nothing is drawn
in the first frame, and default to drawing in GL.
Reviewed at http://codereview.appspot.com/4642043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1615 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 15:31:26 +00:00
yangsu@google.com
6c4cd265e3
Added SimpleCocoaApp to the experimental directory
...
http://codereview.appspot.com/4576059/
git-svn-id: http://skia.googlecode.com/svn/trunk@1614 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 14:46:26 +00:00
tomhudson@google.com
e67bd3fbc9
Rename GrGLBug to GrGLCapability.
...
Default all architectures to kProbe_GrGLCapability.
Use new facilities better from GrGpuGL.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1613 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 14:08:04 +00:00
Scroggo
716a0387ca
Fix the mac build of the SampleApp.
...
My call to glViewport breaks the mac build, but benefits the Android
and linux builds. Fix the mac build until I come up with a better
solution.
Reviewed at http://codereview.appspot.com/4628042/
git-svn-id: http://skia.googlecode.com/svn/trunk@1612 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 14:00:15 +00:00
Scroggo
c29d7cdf3e
Always call notifyTextureDelete in onRelease.
...
Reviewed at http://codereview.appspot.com/4620050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1611 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 13:14:21 +00:00
reed@google.com
8ac7a0fcef
add gradient_create bench, just to measure the time to create a new gradient
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1610 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 13:14:19 +00:00
epoger@google.com
b1b721a7b6
remove libpng and zlib from third_party
...
http://codereview.appspot.com/4571077
git-svn-id: http://skia.googlecode.com/svn/trunk@1609 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-06-16 12:27:14 +00:00