skia2/tests
scroggo@google.com 013c5d9107 In SkBitmapHeap, defer adding owners for new bitmaps.
When using an SkFlatDictionary to flatten shaders, the
dictionary can try to insert a duplicate bitmap shader
that uses a bitmap which has been removed from the
bitmap heap.

This change was originally suggested by junov in
https://codereview.appspot.com/6713048/.

Add a test to verify that deferring the owners works.
Without the change to bitmap heap the test would fail
(and crash in debug mode).

Also remove an unused function from SkFlatDictionary.

BUG=http://code.google.com/p/chromium/issues/detail?id=143923

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

git-svn-id: http://skia.googlecode.com/svn/trunk@6471 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-11-16 20:34:37 +00:00
..
TestXCode/Tests.xcodeproj migrate more legacy unittests into tests/ 2009-03-07 03:39:23 +00:00
AAClipTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
AnnotationTest.cpp [PDF] Add link annotations. 2012-07-13 20:06:02 +00:00
AtomicTest.cpp Add a skia method to perform an atomic add. 2012-07-16 16:51:28 +00:00
BitmapCopyTest.cpp Revert r3219. r3219 was a revert of r3036. r3036 made extractSubset copy the opaque bit but was reverted because of a partally-loaded jpeg issue in WK which has since been fixed: 2012-10-12 13:42:36 +00:00
BitmapGetColorTest.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BitmapHeapTest.cpp In SkBitmapHeap, defer adding owners for new bitmaps. 2012-11-16 20:34:37 +00:00
BitSetTest.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BlitRowTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
BlurTest.cpp Remove warnings (trailing \, signed vs unsigned, parenthesization). 2011-10-27 15:27:51 +00:00
CanvasTest.cpp Update CanvasTest to do elementary tests for PDF too. 2012-10-18 15:58:23 +00:00
ChecksumTest.cpp Split off SkConsistentChecksum from SkChecksum 2012-11-02 18:35:04 +00:00
ClampRangeTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
ClipCacheTest.cpp Turn on GPU AA clipping 2012-10-12 11:33:56 +00:00
ClipCubicTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
ClipperTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
ClipStackTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-11-08 02:03:56 +00:00
ColorFilterTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
ColorTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-10-13 02:01:56 +00:00
DataRefTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
DeferredCanvasTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-10-18 02:01:23 +00:00
DequeTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
DrawBitmapRectTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
DrawPathTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
DrawTextTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
EmptyPathTest.cpp fix warnings on Mac in tests 2012-06-06 12:03:39 +00:00
FillPathTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
FlatDataTest.cpp Fix broken test. 2012-08-14 19:30:20 +00:00
FlateTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
FontHostStreamTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
FontHostTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
GeometryTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
GLInterfaceValidation.cpp Move SK_SUPPORT_GPU checks below first #includes in case the macro is defined in SkUserConfig.h rather than by the build system. 2012-08-03 15:00:52 +00:00
GLProgramsTest.cpp Remove default texture coords / texture matrix 2012-11-05 16:36:02 +00:00
GpuBitmapCopyTest.cpp Fix GPU-less build. 2012-08-22 15:14:43 +00:00
GradientTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
GrContextFactoryTest.cpp GrContextFactory can now expose the GLContext it is using. 2012-08-14 22:02:48 +00:00
GrMemoryPoolTest.cpp Fixed compilation issue when instance counting is disabled 2012-08-21 15:16:41 +00:00
HashCacheTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-09-19 02:01:47 +00:00
InfRectTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-11-09 02:01:24 +00:00
MathTest.cpp Suppress some warnings on linux. 2012-09-26 13:08:56 +00:00
Matrix44Test.cpp Add SkMatrix44::setTranspose 2012-11-14 21:33:55 +00:00
MatrixTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-10-13 02:01:56 +00:00
MemsetTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
MetaDataTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
PackBitsTest.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
PaintTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
ParsePathTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
PathCoverageTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
PathMeasureTest.cpp Fix test_small_segments3 path measure test. 2012-10-03 19:10:31 +00:00
PathTest.cpp remove unused (and undefined) SkColorSpace parameter. 2012-11-15 02:37:45 +00:00
PDFPrimitivesTest.cpp [PDF] Fix name generation - / needs to be escaped. 2012-09-21 17:50:50 +00:00
PictureTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-10-03 02:01:13 +00:00
PictureUtilsTest.cpp Updated make_filepath test to reflect changes in picture_utils. TBR 2012-07-13 18:43:39 +00:00
PipeTest.cpp Ensure that Pipe does not crash when attempting to draw after endRecording. 2012-08-14 20:38:28 +00:00
PointTest.cpp Change comment in PointTest to refer to GCC bug 2012-08-27 13:14:46 +00:00
PremulAlphaRoundTripTest.cpp 1. remove references to (deprecated) SkGpuCanvas 2012-10-01 17:54:05 +00:00
QuickRejectTest.cpp Create macro for registering classes for deserialization 2012-03-26 17:57:35 +00:00
Reader32Test.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
ReadPixelsTest.cpp 1. remove references to (deprecated) SkGpuCanvas 2012-10-01 17:54:05 +00:00
ReadWriteAlphaTest.cpp 1. remove references to (deprecated) SkGpuCanvas 2012-10-01 17:54:05 +00:00
RefCntTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
RefDictTest.cpp Extended Inst counting to find "unknown" leaked object (SkTMaskGamma) 2012-08-16 14:58:06 +00:00
RegionTest.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-11-08 02:03:56 +00:00
RTreeTest.cpp Suppress some warnings on linux. 2012-09-26 13:08:56 +00:00
ScalarTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
ShaderOpacityTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
Sk64Test.cpp remove SK_CAN_USE_FLOAT (deprecated) 2012-06-11 21:21:26 +00:00
skia_test.cpp Improve NaCl support 2012-11-01 17:43:44 +00:00
SortTest.cpp Split off SkConsistentChecksum from SkChecksum 2012-11-02 18:35:04 +00:00
SrcOverTest.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
StreamTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
StringTest.cpp Add option to gm: write out images into a hierarchy, rather than a flat set of files 2012-10-29 16:42:11 +00:00
TDLinkedListTest.cpp Refactored GrDLinkedList into SkTDLinkedList 2012-08-23 11:13:48 +00:00
Test.cpp Platform/Engine -> Backend 2012-10-25 18:43:28 +00:00
Test.h Added cache stats printout to tests 2012-09-07 18:24:43 +00:00
TestClassDef.h Skip test GLPrograms test when GL or Gr context can't be created. 2011-08-24 03:29:11 +00:00
TestSize.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
TileGridTest.cpp Unit testing for SkTileGrid 2012-11-07 17:38:38 +00:00
TLSTest.cpp Add a callback to cleanup TLS data on Windows. 2012-10-25 19:12:40 +00:00
ToUnicode.cpp Fixed Windows compiler complaints 2012-07-10 17:30:58 +00:00
TriangulationTest.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
UnicodeTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
UtilsTest.cpp Extended Inst counting to find "unknown" leaked object (SkTMaskGamma) 2012-08-16 14:58:06 +00:00
valgrind.supp Close a couple of minor memory leaks, add a valgrind suppression file to 2012-03-15 18:16:39 +00:00
WArrayTest.cpp Fix metrics test to no longer include the cpp. 2012-06-25 17:01:46 +00:00
WritePixelsTest.cpp 1. remove references to (deprecated) SkGpuCanvas 2012-10-01 17:54:05 +00:00
Writer32Test.cpp truncate our llist w/ null during rewind. 2012-08-31 20:17:56 +00:00
XfermodeTest.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00