skia2/debugger/QT
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
..
Icons Added Reload icon 2012-11-19 18:25:09 +00:00
qrc_SkIcons.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCanvasWidget.cpp debugger: SW rasterize the picture only when it changes 2015-01-13 22:49:02 -08:00
SkCanvasWidget.h Support MSAA in the picture debugger 2013-08-02 13:59:50 +00:00
SkDebuggerGUI.cpp Make SkStream *not* ref counted. 2015-01-21 12:09:53 -08:00
SkDebuggerGUI.h debugger: SW rasterize the picture only when it changes 2015-01-13 22:49:02 -08:00
SkDrawCommandGeometryWidget.cpp debugger: SW rasterize the picture only when it changes 2015-01-13 22:49:02 -08:00
SkDrawCommandGeometryWidget.h debugger: Update inspector view data consistently while paused 2015-01-07 07:33:47 -08:00
SkGLWidget.cpp Fix debugger wrt to new SkGpuDevice factory signature' 2015-01-16 14:01:44 -05:00
SkGLWidget.h debugger: SW rasterize the picture only when it changes 2015-01-13 22:49:02 -08:00
SkIcons.qrc clt debugger 2012-06-29 14:21:22 +00:00
SkInspectorWidget.cpp debugger: Make inspector widget smaller 2015-01-02 06:35:43 -08:00
SkInspectorWidget.h debugger: Make inspector widget smaller 2015-01-02 06:35:43 -08:00
SkListWidget.cpp Debugger improvements 2014-03-25 23:31:33 +00:00
SkListWidget.h Debugger improvements 2014-03-25 23:31:33 +00:00
SkRasterWidget.cpp debugger: SW rasterize the picture only when it changes 2015-01-13 22:49:02 -08:00
SkRasterWidget.h debugger: SW rasterize the picture only when it changes 2015-01-13 22:49:02 -08:00
SkSettingsWidget.cpp debugger: Make settings widget resizeable 2014-12-30 22:49:58 -08:00
SkSettingsWidget.h debugger: Make settings widget resizeable 2014-12-30 22:49:58 -08:00