skia2/tools/lua
scroggo a1193e4b0e Make SkStream *not* ref counted.
SkStream is a stateful object, so it does not make sense for it to have
multiple owners. Make SkStream inherit directly from SkNoncopyable.

Update methods which previously called SkStream::ref() (e.g.
SkImageDecoder::buildTileIndex() and SkFrontBufferedStream::Create(),
which required the existing owners to call SkStream::unref()) to take
ownership of their SkStream parameters and delete when done (including
on failure).

Switch all SkAutoTUnref<SkStream>s to SkAutoTDelete<SkStream>s. In some
cases this means heap allocating streams that were previously stack
allocated.

Respect ownership rules of SkTypeface::CreateFromStream() and
SkImageDecoder::buildTileIndex().

Update the comments for exceptional methods which do not affect the
ownership of their SkStream parameters (e.g.
SkPicture::CreateFromStream() and SkTypeface::Deserialize()) to be
explicit about ownership.

Remove test_stream_life, which tested that buildTileIndex() behaved
correctly when SkStream was a ref counted object. The test does not
make sense now that it is not.

In SkPDFStream, remove the SkMemoryStream member. Instead of using it,
create a new SkMemoryStream to pass to fDataStream (which is now an
SkAutoTDelete).

Make other pdf rasterizers behave like SkPDFDocumentToBitmap.

SkPDFDocumentToBitmap delete the SkStream, so do the same in the
following pdf rasterizers:

SkPopplerRasterizePDF
SkNativeRasterizePDF
SkNoRasterizePDF

Requires a change to Android, which currently treats SkStreams as ref
counted objects.

Review URL: https://codereview.chromium.org/849103004
2015-01-21 12:09:53 -08:00
..
agg_dash.lua Add lua scripts to scrape dashing info 2014-05-15 20:35:50 +00:00
bbh_filter.lua Fix build problem with reverted issue 16948011 2013-07-19 18:54:04 +00:00
bitmap_statistics.lua add more stats to the bitmap matrix locator 2013-07-26 15:23:43 +00:00
chars-vs-glyphs.lua add script to count glyph -vs- char draw calls 2013-06-12 19:53:49 +00:00
classify_rrect_clips.lua Add point count to lua SkPath. 2014-02-26 21:38:47 +00:00
count_effects.lua clean up extra printfs in count_effects.lua 2013-07-12 18:36:12 +00:00
count_reduced_clipstacks.lua Add point count to lua SkPath. 2014-02-26 21:38:47 +00:00
dump_clipstack_at_restore.lua Revert "Revert of Add getReducedClipStack to lua canvas (https://codereview.chromium.org/180283004/)" 2014-02-26 20:22:32 +00:00
dumpops.lua add dumpops.lua as a sample scraper that just dumps the arguments 2013-05-22 15:13:18 +00:00
glyph-counts.lua add lua to histogram text lengths 2014-09-15 12:44:14 -07:00
glyph-usage.lua sort the glyphID arrays 2013-05-31 19:46:02 +00:00
gradients.lua Added 3-color gradient scraper for detecting symmetrical gradients. 2013-08-01 17:32:56 +00:00
lua_app.cpp use SkData::NewUninitialized 2014-09-12 12:12:27 -07:00
lua_pictures.cpp Make SkStream *not* ref counted. 2015-01-21 12:09:53 -08:00
paths_agg.lua Add scraper to find paths that fallback to software 2014-08-18 07:52:25 -07:00
paths.lua Add scraper to find paths that fallback to software 2014-08-18 07:52:25 -07:00
scrape_dashing_full.lua Add lua scripts to scrape dashing info 2014-05-15 20:35:50 +00:00
scrape_dashing.lua add initial scraper for dashing 2014-03-17 23:09:47 +00:00
scrape.lua add dumpops.lua as a sample scraper that just dumps the arguments 2013-05-22 15:13:18 +00:00
skia.lua add matrix objects to the lua bindings, as well as a lua script to find the proportion of image draw commands with different kinds of matrices 2013-07-10 22:42:30 +00:00