skia2/tests
wjmaclean@chromium.org 86bff1f008 Add safe size/copy functions to Skia.
This patch adds four methods to SkBitmap. There are two functions to return
    "safe size", defined as the number of pixels from the value returned by
    getPixels() to the end of the allocated buffer.

    There is one version of fillPixels() to copy the bitmap instance into an
    external buffer (with specified size, and using specified stride), and another
    fillPixels() to copy from an external buffer to the instance bitmap. In the
    latter case the specified height, width and pixel format must match that used by
    the bitmap instance, although the specified stride may be any value at least as
    large as the minimum stride for the specified geometry. It is assumed that the
    external buffer is of size at least (height - 1)*stride + width *
    bytesPerPixel.

    Both fillPixels() functions return false if the copy is not possible with the
    specified parameters.

    Review URL: http://codereview.appspot.com/2837041/

git-svn-id: http://skia.googlecode.com/svn/trunk@625 2bbb7eff-a529-9590-31e7-b0007b416f81
2010-11-16 20:22:41 +00:00
..
TestXCode/Tests.xcodeproj migrate more legacy unittests into tests/ 2009-03-07 03:39:23 +00:00
BitmapCopyTest.cpp Add safe size/copy functions to Skia. 2010-11-16 20:22:41 +00:00
BlitRowTest.cpp update blitrow test to exercise different widths for blitrow 2010-03-15 20:48:02 +00:00
ClipCubicTest.cpp Move SkTSort.h back to private, and instead allow in the makefile for tests to 2009-03-04 14:02:44 +00:00
ClipperTest.cpp add unittest for IntersectLine, used by hairlines 2009-11-30 12:48:33 +00:00
GeometryTest.cpp more tests (need more meat in there) 2009-02-27 22:06:06 +00:00
MathTest.cpp fix build for SK_SCALAR_IS_FIXED 2010-04-13 15:29:15 +00:00
MatrixTest.cpp add unittest for matrix::flatten 2009-06-29 16:14:41 +00:00
PackBitsTest.cpp add onSendClickToChildren to views, so a view can capture all clicks. 2009-11-16 14:52:01 +00:00
PaintTest.cpp move xfermode modes from porterduff into xfermode itself 2009-06-22 17:38:10 +00:00
ParsePathTest.cpp add SkParsePath to go to/from SVG strings (e.g. "M0,0 L10,20") 2009-06-05 16:21:03 +00:00
PathMeasureTest.cpp migrate more legacy unittests into tests/ 2009-03-07 03:39:23 +00:00
PathTest.cpp add Make to SkTSize 2010-02-11 11:09:39 +00:00
PDFPrimitivesTest.cpp First pieces of SkPDFDevice. Supports: 2010-10-20 22:23:29 +00:00
RegionTest.cpp add SkRegion::setRects(), and its unit tests 2010-07-13 18:35:14 +00:00
Sk64Test.cpp cleanup formating (e.g. no trailing spaces) 2009-04-02 16:59:40 +00:00
skia_test.cpp update tests for blitrow 2010-03-08 22:00:55 +00:00
SortTest.cpp fix heapsort 2009-03-18 03:08:15 +00:00
SrcOverTest.cpp add SkSfntUtils to parse some known truetype tables 2009-04-14 14:28:22 +00:00
StreamTest.cpp cleanup formating (e.g. no trailing spaces) 2009-04-02 16:59:40 +00:00
StringTest.cpp High level pdf classes and pdf specific interface. 2010-10-12 23:08:13 +00:00
Test.cpp use sk_bzero instead of bzero, since it isn't always available. 2009-06-29 16:25:36 +00:00
Test.h support -android mode when running tests, which spews out android specific 2009-04-09 04:06:54 +00:00
TestClassDef.h cleanup formating (e.g. no trailing spaces) 2009-04-02 16:59:40 +00:00
tests_files.mk add SkRegion::setRects(), and its unit tests 2010-07-13 18:35:14 +00:00
TestSize.cpp rename round, ceil, etc. to avoid some platform macros 2010-06-15 00:57:50 +00:00
TriangulationTest.cpp build with -Wall 2009-03-20 04:59:37 +00:00
UtilsTest.cpp add SkRefPtr class (for testing at the moment) 2010-04-16 20:35:47 +00:00