skia2/samplecode
reed@android.com 32a4249cbd make a deep copy in CreateCGImageRef if we're 565, but first upscale to 32bit.
this at least draws the right colors, since we're 565 and CG only supports 1555
(unless someone knows how to tell CG we're 565...)

Fix ws in picturerecord

Enable dither in sample gradients, so the 4444 case isn't so ugly



git-svn-id: http://skia.googlecode.com/svn/trunk@264 2bbb7eff-a529-9590-31e7-b0007b416f81
2009-07-10 03:33:52 +00:00
..
SampleAll.cpp detect nearly translate-only matrices when drawing bitmaps (for speed) 2009-06-24 12:41:42 +00:00
SampleApp.cpp Add SkChunkAlloc::unalloc() to undo the last allocation, useful if the caller wants to treat the allocats like temp memory (see PictureRecord) 2009-03-30 21:02:14 +00:00
SampleArc.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleBitmapRect.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleCamera.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleCircle.cpp API change: SkPath computeBounds -> getBounds 2009-04-01 18:31:44 +00:00
SampleCode.h Some Linux / 64-bit compile fixes. 2009-06-11 12:26:47 +00:00
SampleCull.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SampleDecode.cpp respect preferred config when png is index-based 2009-07-08 20:09:23 +00:00
SampleDither.cpp add CG imagedecoder (still needs encoding) 2008-12-23 16:06:51 +00:00
SampleDrawLooper.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SampleEffects.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleEmboss.cpp add CG imagedecoder (still needs encoding) 2008-12-23 16:06:51 +00:00
SampleEncode.cpp check if the encoder factory returned null 2009-07-07 21:18:10 +00:00
SampleFillType.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SampleFilter2.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleFilter.cpp add CG imagedecoder (still needs encoding) 2008-12-23 16:06:51 +00:00
SampleFontCache.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SampleFontScalerTest.cpp call notifyPixelsChanged() when the pages are flipped in pageflippixelref 2009-05-30 02:40:28 +00:00
SampleFuzz.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleGradients.cpp make a deep copy in CreateCGImageRef if we're 565, but first upscale to 32bit. 2009-07-10 03:33:52 +00:00
SampleHairline.cpp add check/hack to avoid drawing outside of the clip for hairlines 2009-03-23 16:05:19 +00:00
SampleImage.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleImageDir.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleLayerMask.cpp detect nearly translate-only matrices when drawing bitmaps (for speed) 2009-06-24 12:41:42 +00:00
SampleLayers.cpp detect nearly translate-only matrices when drawing bitmaps (for speed) 2009-06-24 12:41:42 +00:00
SampleLines.cpp add CG imagedecoder (still needs encoding) 2008-12-23 16:06:51 +00:00
SampleMeasure.cpp add CG imagedecoder (still needs encoding) 2008-12-23 16:06:51 +00:00
SampleMipMap.cpp detect nearly translate-only matrices when drawing bitmaps (for speed) 2009-06-24 12:41:42 +00:00
SampleMovie.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SampleNinePatch.cpp remove old test that assumed fBM had been decoded 2008-12-23 18:50:15 +00:00
SampleOverflow.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SamplePageFlip.cpp remove deprecated use of porterduff enum 2009-06-23 03:01:32 +00:00
SamplePatch.cpp use sk_bzero instead of bzero, since it isn't always available. 2009-06-29 16:25:36 +00:00
SamplePath.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SamplePathClip.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SamplePathEffects.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SamplePicture.cpp add SkSafeRef / SkSafeUnref as inline static functions, to use in place of our 2009-05-22 14:39:03 +00:00
SamplePoints.cpp update more sample code to new compose shader header 2008-12-23 18:37:08 +00:00
SamplePolyToPoly.cpp grab from latest android 2008-12-17 15:59:43 +00:00
SampleRegion.cpp add SDL support 2009-05-22 20:44:12 +00:00
SampleShaders.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleShapes.cpp more checks for null shapes in pictures 2009-07-03 02:52:27 +00:00
SampleStrokeText.cpp detect nearly translate-only matrices when drawing bitmaps (for speed) 2009-06-24 12:41:42 +00:00
SampleTestGL.cpp add shader flag kConstInY_Flag 2009-06-12 21:27:03 +00:00
SampleTests.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleText.cpp add isConvex() hit to SkPath, to be used to speed up fills and opengl 2009-06-03 02:35:01 +00:00
SampleTextAlpha.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleTextEffects.cpp detect nearly translate-only matrices when drawing bitmaps (for speed) 2009-06-24 12:41:42 +00:00
SampleTextOnPath.cpp add initial unittest framework (tests) 2009-02-27 16:24:51 +00:00
SampleTiling.cpp update more sample code to new compose shader header 2008-12-23 18:37:08 +00:00
SampleTriangles.cpp fix dumpcanvas to recurse on pictures and shapes 2009-06-05 12:24:41 +00:00
SampleTypeface.cpp API cleanup: rename typeface Create to CreateFromName, and remove default arg 2009-03-04 15:31:48 +00:00
SampleVertices.cpp remove remaining references to porterduff 2009-06-23 12:19:41 +00:00
SampleXfermodes.cpp move xfermode modes from porterduff into xfermode itself 2009-06-22 17:38:10 +00:00
vertexdump.cpp grab from latest android 2008-12-17 15:59:43 +00:00