skia2/debugger/QT
scroggo@google.com f8d7d27313 Create SkLazyPixelRef which performs lazy decoding.
The new pixel ref behaves similarly to SkImageRef, with some key differences:
It does not depend on the images project.
It requires an SkImageCache, which handles allocation and caching of the pixel
memory.
It takes a function signature for decoding which decodes into already allocated
pixel memory rather than into an SkBitmap.

Add two implementations of SkImageCache: SkLruImageCache and SkAshmemImageCache.

Replace SkSerializationHelpers::DecodeBitmap with SkPicture::InstallPixelRefProc,
and update sites that referenced it.

SkBitmapFactory now sets the pixel ref to a new object of the new
class SkLazyPixelRef, provided it has an SkImageCache for caching.

Provide an option to do lazy decodes in render_pictures and bench_pictures.

SkPicture:
Eliminate the default parameters in the constructor.
If a proc for decoding bitmaps is installed, use it to decode any encoded
data in subpictures.
When parsing deserializing subpictures, check for success.
When serializing subpictures, pass the picture's bitmap encoder to the
subpicture's call to serialize.

Update BitmapFactoryTest to test its new behavior.

BUG=https://code.google.com/p/skia/issues/detail?id=1008
BUG=https://code.google.com/p/skia/issues/detail?id=1009

Review URL: https://codereview.appspot.com/7060052

git-svn-id: http://skia.googlecode.com/svn/trunk@7835 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-22 21:38:35 +00: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 Sanitizing source files in Skia_Periodic_House_Keeping 2013-02-14 07:01:34 +00:00
SkCanvasWidget.h Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00
SkDebuggerGUI.cpp Create SkLazyPixelRef which performs lazy decoding. 2013-02-22 21:38:35 +00:00
SkDebuggerGUI.h Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00
SkGLWidget.cpp Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00
SkGLWidget.h Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00
SkIcons.qrc clt debugger 2012-06-29 14:21:22 +00:00
SkImageWidget.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-11-22 02:02:41 +00:00
SkImageWidget.h Add drawing of paths to debugger 2012-11-21 17:11:02 +00:00
SkInspectorWidget.cpp Refactored inspector widget such that creating custom tabs for information is straightforward for future developers. 2012-08-14 19:34:13 +00:00
SkInspectorWidget.h Refactored inspector widget such that creating custom tabs for information is straightforward for future developers. 2012-08-14 19:34:13 +00:00
SkListWidget.cpp 3 minor fixes for debugger 2012-11-19 16:26:40 +00:00
SkListWidget.h clt debugger 2012-06-29 14:21:22 +00:00
SkRasterWidget.cpp Add overdraw visualization to the debugger 2013-02-06 20:13:54 +00:00
SkRasterWidget.h Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00
SkSettingsWidget.cpp Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00
SkSettingsWidget.h Allow debugger to be compiled without Ganesh 2013-02-13 13:26:13 +00:00