013c5d9107
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
133 lines
4.0 KiB
Python
133 lines
4.0 KiB
Python
# GYP file to build unit tests.
|
|
{
|
|
'includes': [
|
|
'apptype_console.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'tests',
|
|
'type': 'executable',
|
|
'include_dirs' : [
|
|
'../src/core',
|
|
'../src/effects',
|
|
'../src/pdf',
|
|
'../src/pipe/utils',
|
|
'../src/utils',
|
|
'../tools/',
|
|
],
|
|
'sources': [
|
|
'../tests/AAClipTest.cpp',
|
|
'../tests/AnnotationTest.cpp',
|
|
'../tests/AtomicTest.cpp',
|
|
'../tests/BitmapCopyTest.cpp',
|
|
'../tests/BitmapGetColorTest.cpp',
|
|
'../tests/BitmapHeapTest.cpp',
|
|
'../tests/BitSetTest.cpp',
|
|
'../tests/BlitRowTest.cpp',
|
|
'../tests/BlurTest.cpp',
|
|
'../tests/CanvasTest.cpp',
|
|
'../tests/ChecksumTest.cpp',
|
|
'../tests/ClampRangeTest.cpp',
|
|
'../tests/ClipCacheTest.cpp',
|
|
'../tests/ClipCubicTest.cpp',
|
|
'../tests/ClipStackTest.cpp',
|
|
'../tests/ClipperTest.cpp',
|
|
'../tests/ColorFilterTest.cpp',
|
|
'../tests/ColorTest.cpp',
|
|
'../tests/DataRefTest.cpp',
|
|
'../tests/DeferredCanvasTest.cpp',
|
|
'../tests/DequeTest.cpp',
|
|
'../tests/DrawBitmapRectTest.cpp',
|
|
'../tests/DrawPathTest.cpp',
|
|
'../tests/DrawTextTest.cpp',
|
|
'../tests/EmptyPathTest.cpp',
|
|
'../tests/FillPathTest.cpp',
|
|
'../tests/FlatDataTest.cpp',
|
|
'../tests/FlateTest.cpp',
|
|
'../tests/FontHostStreamTest.cpp',
|
|
'../tests/FontHostTest.cpp',
|
|
'../tests/GeometryTest.cpp',
|
|
'../tests/GLInterfaceValidation.cpp',
|
|
'../tests/GLProgramsTest.cpp',
|
|
'../tests/GpuBitmapCopyTest.cpp',
|
|
'../tests/GrContextFactoryTest.cpp',
|
|
'../tests/GradientTest.cpp',
|
|
'../tests/GrMemoryPoolTest.cpp',
|
|
'../tests/HashCacheTest.cpp',
|
|
'../tests/InfRectTest.cpp',
|
|
'../tests/MathTest.cpp',
|
|
'../tests/MatrixTest.cpp',
|
|
'../tests/Matrix44Test.cpp',
|
|
'../tests/MemsetTest.cpp',
|
|
'../tests/MetaDataTest.cpp',
|
|
'../tests/PackBitsTest.cpp',
|
|
'../tests/PaintTest.cpp',
|
|
'../tests/ParsePathTest.cpp',
|
|
'../tests/PathCoverageTest.cpp',
|
|
'../tests/PathMeasureTest.cpp',
|
|
'../tests/PathTest.cpp',
|
|
'../tests/PDFPrimitivesTest.cpp',
|
|
'../tests/PictureTest.cpp',
|
|
'../tests/PictureUtilsTest.cpp',
|
|
'../tests/PipeTest.cpp',
|
|
'../tests/PointTest.cpp',
|
|
'../tests/PremulAlphaRoundTripTest.cpp',
|
|
'../tests/QuickRejectTest.cpp',
|
|
'../tests/Reader32Test.cpp',
|
|
'../tests/ReadPixelsTest.cpp',
|
|
'../tests/ReadWriteAlphaTest.cpp',
|
|
'../tests/RefCntTest.cpp',
|
|
'../tests/RefDictTest.cpp',
|
|
'../tests/RegionTest.cpp',
|
|
'../tests/RTreeTest.cpp',
|
|
'../tests/ScalarTest.cpp',
|
|
'../tests/ShaderOpacityTest.cpp',
|
|
'../tests/Sk64Test.cpp',
|
|
'../tests/skia_test.cpp',
|
|
'../tests/SortTest.cpp',
|
|
'../tests/SrcOverTest.cpp',
|
|
'../tests/StreamTest.cpp',
|
|
'../tests/StringTest.cpp',
|
|
'../tests/TDLinkedListTest.cpp',
|
|
'../tests/Test.cpp',
|
|
'../tests/Test.h',
|
|
'../tests/TestSize.cpp',
|
|
'../tests/TileGridTest.cpp',
|
|
'../tests/TLSTest.cpp',
|
|
'../tests/ToUnicode.cpp',
|
|
'../tests/UnicodeTest.cpp',
|
|
'../tests/UtilsTest.cpp',
|
|
'../tests/WArrayTest.cpp',
|
|
'../tests/WritePixelsTest.cpp',
|
|
'../tests/Writer32Test.cpp',
|
|
'../tests/XfermodeTest.cpp',
|
|
|
|
# Needed for PipeTest.
|
|
'../src/pipe/utils/SamplePipeControllers.cpp',
|
|
],
|
|
'dependencies': [
|
|
'skia_base_libs.gyp:skia_base_libs',
|
|
'effects.gyp:effects',
|
|
'experimental.gyp:experimental',
|
|
'images.gyp:images',
|
|
'pdf.gyp:pdf',
|
|
'tools.gyp:picture_utils',
|
|
'utils.gyp:utils',
|
|
],
|
|
'conditions': [
|
|
[ 'skia_gpu == 1', {
|
|
'include_dirs': [
|
|
'../src/gpu',
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
}
|
|
|
|
# Local Variables:
|
|
# tab-width:2
|
|
# indent-tabs-mode:nil
|
|
# End:
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|