skia2/include/core
scroggo@google.com 5a7c6be72b Add the ability to provide function pointers to SkPicture serialization
and deserialization for encoding and decoding bitmaps.

Remove kForceFlattenBitmapPixels_Flag, which is no longer used.

When an SkOrderedReadBuffer needs to read a bitmap, if it does not
have an image decoder, use a dummy bitmap.

In GM, add a tolerance option for color differences, used when
testing picture serialization, so it can assume two images are the
same even though PNG encoding/decoding may have resulted in small
differences.

Create dummy implementations for SkImageDecoder and SkImageEncoder
functions in SkImageDecoder_empty so that a project that does not
want to include the images project it can still build.

Allow ports to build without images project.

In Mac's image encoder, copy 4444 to 8888 before encoding.

Add SkWriter32::reservePad, to provide a pointer to write non 4 byte
aligned data, padded with zeroes.

In bench_ and render_ pictures, pass decode function to SkPicture
creation from a stream.

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

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

git-svn-id: http://skia.googlecode.com/svn/trunk@5818 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-10-04 21:46:08 +00:00
..
Sk64.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkAdvancedTypefaceMetrics.h Expanded distribution of instance counting 2012-06-21 20:25:03 +00:00
SkAnnotation.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkBitmap.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkBlitRow.h Punctuation cleanup to satisfy idiosyncracies of OpenBSD gcc 4.2.1. 2012-06-01 13:15:47 +00:00
SkBounder.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkCanvas.h re-land removal of setBitmapDevice 2012-10-01 14:58:57 +00:00
SkChecksum.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkChunkAlloc.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkClipStack.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkColor.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkColorFilter.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkColorPriv.h When creating gray from lcd, use luminance instead of coverage. 2012-08-28 16:02:42 +00:00
SkColorShader.h Use asNewCustomStage instead of asABitmap in SkGpuDevice, also removed now-unecessary twoPointRadialParams parameter from asABitmap. 2012-07-25 17:18:31 +00:00
SkColorTable.h Implement multi-threaded picture playback via cloning. 2012-08-29 18:52:07 +00:00
SkComposeShader.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkData.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDataSet.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDeque.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDevice.h Fix recursive GPU processing for SkImageFilter. Plumb through the 2012-09-27 21:57:45 +00:00
SkDither.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDraw.h move SkTextToPathIter into private header 2012-08-07 15:19:47 +00:00
SkDrawFilter.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkDrawLooper.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkEmptyShader.h Cleanup code related to SkFlattenable::flatten() 2012-03-29 15:18:04 +00:00
SkEndian.h Open type table definitions. 2012-02-02 19:15:21 +00:00
SkFixed.h first cut at making iOS work 2012-09-20 15:45:41 +00:00
SkFlate.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkFlattenable.h Make flattenables no longer depend on global static initializers. 2012-09-21 17:54:46 +00:00
SkFlattenableBuffers.h Add the ability to provide function pointers to SkPicture serialization 2012-10-04 21:46:08 +00:00
SkFloatBits.h remove SK_CAN_USE_FLOAT (deprecated) 2012-06-11 21:21:26 +00:00
SkFloatingPoint.h Add SkScalarPow. 2012-07-25 17:00:47 +00:00
SkFontHost.h Lock gFTMutex when modifying FT globals. 2012-10-04 20:45:06 +00:00
SkGeometry.h Add perspective support to the gpu aa hairline renderer. 2011-09-12 14:59:34 +00:00
SkGraphics.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkImage.h Sanitizing source files in Skia_Nightly_House_Keeping 2012-08-30 14:38:00 +00:00
SkImageFilter.h Fix recursive GPU processing for SkImageFilter. Plumb through the 2012-09-27 21:57:45 +00:00
SkInstCnt.h "fix" chrome build 2012-09-25 00:39:51 +00:00
SkLineClipper.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkMallocPixelRef.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkMask.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkMaskFilter.h Added Inst counting to SkFlattenable-derived classes 2012-06-27 14:03:26 +00:00
SkMath.h first cut at making iOS work 2012-09-20 15:45:41 +00:00
SkMatrix.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkMetaData.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkMMapStream.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkOSFile.h first cut at making iOS work 2012-09-20 15:45:41 +00:00
SkPackBits.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkPaint.h re-apply 5508, but with the new compile-flag disabled for now 2012-09-12 21:08:33 +00:00
SkPath.h Disable SK_DEBUG_PATH_REF in debug builds. 2012-10-04 17:55:30 +00:00
SkPathEffect.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkPathMeasure.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkPicture.h Add the ability to provide function pointers to SkPicture serialization 2012-10-04 21:46:08 +00:00
SkPixelRef.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkPoint.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkPostConfig.h first cut at making iOS work 2012-09-20 15:45:41 +00:00
SkPreConfig.h first cut at making iOS work 2012-09-20 15:45:41 +00:00
SkRandom.h add getSeed() 2012-10-02 17:51:29 +00:00
SkRasterizer.h Added Inst counting to SkFlattenable-derived classes 2012-06-27 14:03:26 +00:00
SkReader32.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkRect.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkRefCnt.h Revert r5557 (which itself was a revert of r5433). Relands SkPathRef. Will follow with change for extra debug checks to attempt to ferret out http://www.crbug.com/148637. 2012-10-03 13:46:20 +00:00
SkRegion.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkScalar.h Suppress some warnings on linux. 2012-09-26 13:08:56 +00:00
SkScalarCompare.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkSerializationHelpers.h Add the ability to provide function pointers to SkPicture serialization 2012-10-04 21:46:08 +00:00
SkShader.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkSize.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkStream.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkString.h Add an SK_PRINTF_LIKE macro, which declares a function to have printf-like 2012-07-09 18:22:08 +00:00
SkSurface.h Sanitizing source files in Skia_Nightly_House_Keeping 2012-08-30 14:38:00 +00:00
SkTArray.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTDArray.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTDict.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTDLinkedList.h Switch GrGpu's GrResource list over to using SkTDLinkedList 2012-09-04 13:34:32 +00:00
SkTDStack.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTemplates.h remove unused parameter (that also slowed us down) to SkAutoTDelete 2012-09-20 18:04:12 +00:00
SkThread_platform.h Add a skia method to perform an atomic add. 2012-07-16 16:51:28 +00:00
SkThread.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTime.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTLazy.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTrace.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTRegistry.h Update files to use SK_BUILD_FOR_ANDROID. 2011-11-08 19:00:26 +00:00
SkTScopedPtr.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTSearch.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTypeface.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTypes.h iOS support work in progress 2012-09-24 19:33:57 +00:00
SkUnitMapper.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkUnPreMultiply.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkUtils.h Add ARM optimizations to the build. 2012-01-09 14:38:25 +00:00
SkWeakRefCnt.h more SkInstCnt plumbing 2012-06-26 17:55:30 +00:00
SkWriter32.h Add the ability to provide function pointers to SkPicture serialization 2012-10-04 21:46:08 +00:00
SkXfermode.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00