skia2/tests
commit-bot@chromium.org 227c246731 Resolve a few memory leaks in tests.
Purge the global scaled image cache after use in tests.  The cache was
right to hold on to the pixels indefinitely, but this change makes it
easier to run down actual memory leaks.

Add SK_DECLARE_INST_COUNT to several classes.

BUG=skia:
R=reed@google.com

Author: halcanary@google.com

Review URL: https://codereview.chromium.org/145443004

git-svn-id: http://skia.googlecode.com/svn/trunk@13171 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-01-24 18:33:07 +00:00
..
TestXCode/Tests.xcodeproj migrate more legacy unittests into tests/ 2009-03-07 03:39:23 +00:00
AAClipTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
AndroidPaintTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
AnnotationTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ARGBImageEncoderTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
AtomicTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitmapCopyTest.cpp Reland "Fix genID cloning bugs." 2014-01-15 16:56:52 +00:00
BitmapGetColorTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitmapHasherTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitmapHeapTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitmapTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BitSetTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BlitRowTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
BlurTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
CachedDecodingPixelRefTest.cpp Resolve a few memory leaks in tests. 2014-01-24 18:33:07 +00:00
CanvasStateTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
CanvasTest.cpp No deduping dictionaries for matrices and regions. 2014-01-23 15:16:05 +00:00
ChecksumTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ClampRangeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ClipCacheTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ClipCubicTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ClipperTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ClipStackTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ColorFilterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ColorPrivTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ColorTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DataRefTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DeferredCanvasTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DequeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DeviceLooperTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DiscardableMemoryPool.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DiscardableMemoryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DocumentTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DrawBitmapRectTest.cpp Remove unnamed namespace usage from tests/ 2014-01-21 23:39:22 +00:00
DrawPathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DrawTextTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
DynamicHashTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
EmptyPathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ErrorTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FillPathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FitsInTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FlatDataTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FlateTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FontHostStreamTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FontHostTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FontMgrTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FontNamesTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
FrontBufferedStreamTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GeometryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GifTest.cpp Remove unnamed namespace usage from tests/ 2014-01-21 23:39:22 +00:00
GLInterfaceValidation.cpp Revert "Turn NVPR on by default (but off in tools)." 2014-01-24 16:04:09 +00:00
GLProgramsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GpuBitmapCopyTest.cpp Reland "Fix genID cloning bugs." 2014-01-15 16:56:52 +00:00
GpuColorFilterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GpuDrawPathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GradientTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrContextFactoryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrDrawTargetTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrMemoryPoolTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrSurfaceTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
GrUnitTests.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
HashCacheTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ImageCacheTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ImageDecodingTest.cpp Remove unnamed namespace usage from tests/ 2014-01-21 23:39:22 +00:00
ImageFilterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
InfRectTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
JpegTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
LayerDrawLooperTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
LListTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MallocPixelRefTest.cpp use some helper Make functions to initialize SkImageInfo 2014-01-15 02:38:22 +00:00
MathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
Matrix44Test.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MatrixTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MD5Test.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MemoryTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MemsetTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MessageBusTest.cpp Move SkMessageBus::Get out of header, and retry crrev.com/106563002. 2014-01-15 23:09:01 +00:00
MetaDataTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
MipMapTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
OnceTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
OSPathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PackBitsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PaintTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ParsePathTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathCoverageTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathMeasureTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsAngleTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsBoundsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicIntersectionTestData.cpp path ops work in progress 2013-10-02 14:49:34 +00:00
PathOpsCubicIntersectionTestData.h Make parallel unit testing work on windows 2013-04-10 15:55:37 +00:00
PathOpsCubicLineIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicQuadIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicReduceOrderTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsCubicToQuadsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDCubicTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDLineTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDPointTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDQuadTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDRectTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDTriangleTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsDVectorTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsExtendedTest.cpp deprecate SkScalarRound (and its ilk), use SkScalarRound[ToInt,ToScalar]. #define SK_SUPPORT_DEPRECATED_SCALARROUND for legacy clients 2013-12-17 19:22:07 +00:00
PathOpsExtendedTest.h harden and speed up path op unit tests 2013-07-16 16:11:16 +00:00
PathOpsInverseTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsLineIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsLineParametetersTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsOpCubicThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsOpRectThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsOpTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadIntersectionTestData.cpp path ops work in progress 2013-10-02 14:49:34 +00:00
PathOpsQuadIntersectionTestData.h Add intersections for path ops 2013-04-08 11:50:00 +00:00
PathOpsQuadLineIntersectionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadLineIntersectionThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadParameterizationTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsQuadReduceOrderTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyDegenerateThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyFailTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyQuadralateralsThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyQuadThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyRectThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSimplifyTrianglesThreadedTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSkpClipTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsSkpTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathOpsTestCommon.cpp Sanitizing source files in Housekeeper-Nightly 2013-07-17 07:01:13 +00:00
PathOpsTestCommon.h harden and speed up path op unit tests 2013-07-16 16:11:16 +00:00
PathOpsThreadedCommon.cpp path ops work in progress 2013-09-16 15:55:01 +00:00
PathOpsThreadedCommon.h pathops work in progress 2013-11-01 17:36:03 +00:00
PathOpsTypesTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PathTest.cpp change isRect to return true for 3-sided rectangular paths 2014-01-15 18:00:57 +00:00
PathUtilsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PDFPrimitivesTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PictureTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PictureUtilsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PipeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PixelRefTest.cpp Remove unnamed namespace usage from tests/ 2014-01-21 23:39:22 +00:00
PointTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
PremulAlphaRoundTripTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
QuickRejectTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RandomTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
Reader32Test.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ReadPixelsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ReadWriteAlphaTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RefCntTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RefDictTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RegionTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ResourceCacheTest.cpp Speed up GrResourceCache add and lookup by using TDynamicHash 2014-01-17 17:56:21 +00:00
RoundRectTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RTreeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
RuntimeConfigTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ScalarTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
SerializationTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
SHA1Test.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ShaderImageFilterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ShaderOpacityTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
skia_test.cpp add leaks flag to show unref'd insts 2014-01-23 17:21:19 +00:00
SkpSkGrTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
SortTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
SrcOverTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
StreamTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
StringTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
StrokeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
SurfaceTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
TDStackNesterTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
Test.cpp Remove unnamed namespace usage from tests/ 2014-01-21 23:39:22 +00:00
Test.h Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
TestSize.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
TileGridTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
TLSTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
ToUnicode.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
TSetTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
Typeface.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
UnicodeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
UnitTestTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
UtilsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
valgrind.supp Yet another round of valgrind suppressions 2013-12-19 13:41:48 +00:00
WArrayTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
WritePixelsTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
Writer32Test.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00
XfermodeTest.cpp Move macros from TestClassDef.h to Test.h 2014-01-14 21:04:37 +00:00