2016-10-27 16:21:40 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# Things are easiest for everyone if these source paths are absolute.
|
|
|
|
_tests = get_path_info("../tests", "abspath")
|
|
|
|
|
|
|
|
tests_sources = [
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/AAClipTest.cpp",
|
2019-01-23 16:10:36 +00:00
|
|
|
"$_tests/AdvancedBlendTest.cpp",
|
2018-01-16 20:01:17 +00:00
|
|
|
"$_tests/AndroidCodecTest.cpp",
|
2018-01-20 15:33:24 +00:00
|
|
|
"$_tests/AnimatedImageTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/AnnotationTest.cpp",
|
|
|
|
"$_tests/ApplyGammaTest.cpp",
|
2017-01-13 22:34:33 +00:00
|
|
|
"$_tests/ArenaAllocTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/AsADashTest.cpp",
|
2020-05-04 14:02:45 +00:00
|
|
|
"$_tests/BRDTest.cpp",
|
2020-03-19 19:54:28 +00:00
|
|
|
"$_tests/BackendAllocationTest.cpp",
|
2020-05-29 16:11:05 +00:00
|
|
|
"$_tests/BackendSurfaceMutableStateTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/BadIcoTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/BitSetTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/BitmapCopyTest.cpp",
|
|
|
|
"$_tests/BitmapGetColorTest.cpp",
|
|
|
|
"$_tests/BitmapTest.cpp",
|
|
|
|
"$_tests/BlendTest.cpp",
|
|
|
|
"$_tests/BlitMaskClip.cpp",
|
|
|
|
"$_tests/BlurTest.cpp",
|
2019-11-15 16:02:50 +00:00
|
|
|
"$_tests/BulkRectTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/CTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/CachedDataTest.cpp",
|
|
|
|
"$_tests/CachedDecodingPixelRefTest.cpp",
|
|
|
|
"$_tests/CanvasStateHelpers.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/CanvasStateHelpers.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/CanvasStateTest.cpp",
|
|
|
|
"$_tests/CanvasTest.cpp",
|
|
|
|
"$_tests/ChecksumTest.cpp",
|
|
|
|
"$_tests/ClearTest.cpp",
|
|
|
|
"$_tests/ClipBoundsTest.cpp",
|
|
|
|
"$_tests/ClipCubicTest.cpp",
|
|
|
|
"$_tests/ClipStackTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/ClipperTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/CodecAnimTest.cpp",
|
Reland "Make SkPngCodec only read as much of the stream as necessary"
(Originally uploaded as 13900.)
Previously, SkPngCodec assumed that the stream only contained one
image, which ended at the end of the stream. It read the stream in
arbitrarily-sized chunks, and then passed that data to libpng for
processing.
If a stream contains more than one image, this may result in reading
beyond the end of the image, making future reads read the wrong data.
Now, SkPngCodec starts by reading 8 bytes at a time. After the
signature, 8 bytes is enough to know which chunk is next and how many
bytes are in the chunk.
When decoding the size, we stop when we reach IDAT, and when decoding
the image, we stop when we reach IEND.
This manual parsing is necessary to support APNG, which is planned in
the future. It also allows us to remove the SK_GOOGLE3_PNG_HACK, which
was a workaround for reading more than necessary at the beginning of
the image.
Add a test that simulates the issue, by decoding a special stream that
reports an error if the codec attempts to read beyond the end.
Temporarily disable the partial decoding tests for png. A larger change
will be necessary to get those working again, and no clients are
currently relying on incrementally decoding PNGs (i.e. decode part of
an image, then decode further with more data).
Include a workaround for older versions of libpng (e.g. 1.2 in
Google3). In older versions, if the row callback is null when the
IDAT header is processed, reading the image will fail. When we see the
IDAT, we save the length and process a recreated IDAT header later,
after the row callback has been set.
Bug: skia:5368
Bug:b/34073812
Test: Existing tests, plus a new test in dm.
Change-Id: I293a4ddc013b82669a8b735062228b26d0bce933
Reviewed-on: https://skia-review.googlesource.com/13984
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
2017-04-21 17:47:12 +00:00
|
|
|
"$_tests/CodecExactReadTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/CodecPartialTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/CodecPriv.h",
|
2017-12-05 18:55:24 +00:00
|
|
|
"$_tests/CodecRecommendedTypeTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/CodecTest.cpp",
|
|
|
|
"$_tests/ColorFilterTest.cpp",
|
|
|
|
"$_tests/ColorMatrixTest.cpp",
|
|
|
|
"$_tests/ColorPrivTest.cpp",
|
|
|
|
"$_tests/ColorSpaceTest.cpp",
|
|
|
|
"$_tests/ColorTest.cpp",
|
2020-03-19 19:54:28 +00:00
|
|
|
"$_tests/CompressedBackendAllocationTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/CopySurfaceTest.cpp",
|
2020-04-18 04:43:10 +00:00
|
|
|
"$_tests/CrbugOssfuzz21688.cpp",
|
2018-08-14 21:21:23 +00:00
|
|
|
"$_tests/CubicMapTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/DashPathEffectTest.cpp",
|
|
|
|
"$_tests/DataRefTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/DebugLayerManagerTest.cpp",
|
2017-12-04 14:38:06 +00:00
|
|
|
"$_tests/DefaultPathRendererTest.cpp",
|
2017-12-04 17:52:46 +00:00
|
|
|
"$_tests/DeferredDisplayListTest.cpp",
|
|
|
|
"$_tests/DequeTest.cpp",
|
2019-03-12 20:31:30 +00:00
|
|
|
"$_tests/DescriptorTest.cpp",
|
2017-03-27 14:14:08 +00:00
|
|
|
"$_tests/DetermineDomainModeTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/DeviceTest.cpp",
|
|
|
|
"$_tests/DiscardableMemoryPoolTest.cpp",
|
|
|
|
"$_tests/DiscardableMemoryTest.cpp",
|
|
|
|
"$_tests/DrawBitmapRectTest.cpp",
|
2018-03-01 15:24:02 +00:00
|
|
|
"$_tests/DrawOpAtlasTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/DrawPathTest.cpp",
|
|
|
|
"$_tests/DrawTextTest.cpp",
|
|
|
|
"$_tests/EmptyPathTest.cpp",
|
2017-05-02 20:04:56 +00:00
|
|
|
"$_tests/EncodeTest.cpp",
|
2018-08-27 15:55:46 +00:00
|
|
|
"$_tests/EncodedInfoTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/ExifTest.cpp",
|
2019-09-04 19:05:35 +00:00
|
|
|
"$_tests/ExtendedSkColorTypeTests.cpp",
|
2017-04-19 21:19:30 +00:00
|
|
|
"$_tests/F16StagesTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/FakeStreams.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/FillPathTest.cpp",
|
|
|
|
"$_tests/FitsInTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/FlattenDrawableTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/FlattenableFactoryToName.cpp",
|
2018-01-18 20:35:11 +00:00
|
|
|
"$_tests/FlattenableNameToFactory.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/Float16Test.cpp",
|
|
|
|
"$_tests/FloatingPointTextureTest.cpp",
|
|
|
|
"$_tests/FontHostStreamTest.cpp",
|
|
|
|
"$_tests/FontHostTest.cpp",
|
|
|
|
"$_tests/FontMgrAndroidParserTest.cpp",
|
2018-06-22 21:11:00 +00:00
|
|
|
"$_tests/FontMgrFontConfigTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/FontMgrTest.cpp",
|
|
|
|
"$_tests/FontNamesTest.cpp",
|
2019-11-08 18:20:08 +00:00
|
|
|
"$_tests/FontTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/FrontBufferedStreamTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/GLBackendSurfaceTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GeometryTest.cpp",
|
|
|
|
"$_tests/GifTest.cpp",
|
2018-06-06 17:45:53 +00:00
|
|
|
"$_tests/GlyphRunTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GpuDrawPathTest.cpp",
|
|
|
|
"$_tests/GpuRectanizerTest.cpp",
|
2018-09-12 13:17:11 +00:00
|
|
|
"$_tests/GrAHardwareBufferTest.cpp",
|
2020-03-17 14:14:48 +00:00
|
|
|
"$_tests/GrBlockAllocatorTest.cpp",
|
2017-10-06 22:27:32 +00:00
|
|
|
"$_tests/GrCCPRTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GrContextAbandonTest.cpp",
|
|
|
|
"$_tests/GrContextFactoryTest.cpp",
|
2020-06-24 14:19:52 +00:00
|
|
|
"$_tests/GrContextOOM.cpp",
|
2019-04-12 18:24:55 +00:00
|
|
|
"$_tests/GrFinishedFlushTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GrMemoryPoolTest.cpp",
|
2017-05-26 21:17:19 +00:00
|
|
|
"$_tests/GrMeshTest.cpp",
|
2017-10-12 16:27:11 +00:00
|
|
|
"$_tests/GrMipMappedTest.cpp",
|
2018-12-07 16:20:33 +00:00
|
|
|
"$_tests/GrOpListFlushTest.cpp",
|
2017-06-06 18:27:16 +00:00
|
|
|
"$_tests/GrPipelineDynamicStateTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GrPorterDuffTest.cpp",
|
2019-06-27 14:13:27 +00:00
|
|
|
"$_tests/GrQuadBufferTest.cpp",
|
2019-06-19 14:48:58 +00:00
|
|
|
"$_tests/GrQuadCropTest.cpp",
|
2020-04-17 20:21:37 +00:00
|
|
|
"$_tests/GrStyledShapeTest.cpp",
|
2020-05-26 15:26:45 +00:00
|
|
|
"$_tests/GrSubmittedFlushTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GrSurfaceTest.cpp",
|
Implement GrTAllocator in terms of GrBlockAllocator
Previously, the GrAllocator header defined three types: GrAllocator,
GrTAllocator, and GrSTAllocator. GrAllocator was generic, and would
manage the blocks of memory (fixed size to hold N * sizeof(item)). It
stored an SkTArray of pointers to each block. GrTAllocator wrapped
the GrAllocator to add template support for a specific T. GrSTAllocator
extended GrTAllocator to include a template arg for inline storage.
In this CL, GrAllocator is no longer defined, and its memory functionality
is replaced with the use of GrBlockAllocator. For the most part, the
implementation of GrTAllocator on top of GrBlockAllocator remains the
same, although there is explicit array to the block pointers so indexing
is slightly different. GrSTAllocator is also removed entirely, so that
GrTAllocator's template includes initial storage size.
The iteration over the allocated items
is updated to wrap GrBlockAllocator's block iterator, and then iterate
by index within each block. Documentation on GrAllocator already recommended
using the iterator instead of random access, and these changes further
reinforce it. It turns out that many of the use cases of GrAllocator
were written to use random access, so many of the files outside of
GrAllocator.h have just been updated to use the new for-range iteration
instead of a random access for loop.
Change-Id: I28b0bc277c323fd7035d4a8442ae67f058b2b64c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/272058
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
2020-03-24 16:29:39 +00:00
|
|
|
"$_tests/GrTAllocatorTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/GrTRecorderTest.cpp",
|
2018-07-17 17:28:20 +00:00
|
|
|
"$_tests/GrTestingBackendTextureUploadTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/GrTextureMipMapInvalidationTest.cpp",
|
2018-07-19 13:58:00 +00:00
|
|
|
"$_tests/GrUploadPixelsTests.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/GradientTest.cpp",
|
|
|
|
"$_tests/HSVRoundTripTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/HashTest.cpp",
|
2017-02-14 19:15:31 +00:00
|
|
|
"$_tests/HighContrastFilterTest.cpp",
|
Revert "Revert "WIP: Skia support library for ICC tasks""
This reverts commit eb733fbf56538838a36814c75cd03f917462cb22.
Reason for revert: Revert patch was automatically merged incorrectly?
Original change's description:
> Revert "WIP: Skia support library for ICC tasks"
>
> This reverts commit fc8dc3194acb959ee5980b41766660ca0644bcab.
>
> Reason for revert: Breaks Build-Mac-Clang-Arm7-{Debug,Release}-iOS builds.
> Example tasks:
> * https://chromium-swarm.appspot.com/task?id=3322f668620b9e10&refresh=10
> * https://chromium-swarm.appspot.com/task?id=332296146331e810&refresh=10
>
> Original change's description:
> > WIP: Skia support library for ICC tasks
> >
> > As a starting point, this would be mostly trivial to implement using
> > SkColorSpace.
> >
> > This also would give us the flexibility to begin to move all of
> > the ICC related code from SkColorSpace to SkICC.
> >
> > What are the advantages of moving this away from SkColorSpace?
> > (1) A long term goal (once Chrome uses SkCodec), might be to
> > move SkColorSpace::MakeICC() out of the public API. That way,
> > we can guarantee that we can draw to/from *any* SkColorSpace.
> > (2) Keeps SkColorSpace separate from ICC-specific representations
> > like SkColorSpaceTransferFn etc.
> >
> > BUG=skia:
> >
> > Change-Id: Iddeb9903221fb57fbfc01218d8641c928b4a5165
> > Reviewed-on: https://skia-review.googlesource.com/5676
> > Commit-Queue: Matt Sarett <msarett@google.com>
> > Reviewed-by: Brian Osman <brianosman@google.com>
> > Reviewed-by: Mike Reed <reed@google.com>
> >
>
> TBR=mtklein@google.com,msarett@google.com,brianosman@google.com,reed@google.com,reviews@skia.org
> BUG=skia:
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
>
> Change-Id: Ibdf272fce25892402bd3e85595fb8814cdf59856
> Reviewed-on: https://skia-review.googlesource.com/6232
> Commit-Queue: Ravi Mistry <rmistry@google.com>
> Reviewed-by: Ravi Mistry <rmistry@google.com>
>
TBR=mtklein@google.com,rmistry@google.com,msarett@google.com,reviews@skia.org,brianosman@google.com,reed@google.com
BUG=skia:
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: I68b1624cfab8adfe31b17e1193a7766507dec8b0
Reviewed-on: https://skia-review.googlesource.com/6233
Commit-Queue: Ravi Mistry <rmistry@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
2016-12-17 01:31:03 +00:00
|
|
|
"$_tests/ICCTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/ImageBitmapTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/ImageCacheTest.cpp",
|
|
|
|
"$_tests/ImageFilterCacheTest.cpp",
|
|
|
|
"$_tests/ImageFilterTest.cpp",
|
|
|
|
"$_tests/ImageFrom565Bitmap.cpp",
|
|
|
|
"$_tests/ImageGeneratorTest.cpp",
|
|
|
|
"$_tests/ImageIsOpaqueTest.cpp",
|
|
|
|
"$_tests/ImageNewShaderTest.cpp",
|
|
|
|
"$_tests/ImageTest.cpp",
|
2018-08-07 19:16:54 +00:00
|
|
|
"$_tests/IncrTopoSortTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/IndexedPngOverflowTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/InfRectTest.cpp",
|
Revert "Revert "Create new inset algorithm for spot shadows""
This reverts commit e7c85c45c4c0a97adc6711bb12ecacc36af4ba11.
Reason for revert: <INSERT REASONING HERE>
Original change's description:
> Revert "Create new inset algorithm for spot shadows"
>
> This reverts commit e5f5bf5175e426ebb6aa234f4387831c898f20ad.
>
> Reason for revert: Breaking a bunch of bots. e.g:
>
> https://luci-milo.appspot.com/swarming/task/3519cae0a03c7b10/steps/dm/0/stdout
>
> Original change's description:
> > Create new inset algorithm for spot shadows
> >
> > BUG=skia:
> >
> > Change-Id: If7c67c2a5b9beea28f86d13362a5156b46394d0e
> > Reviewed-on: https://skia-review.googlesource.com/9875
> > Commit-Queue: Ravi Mistry <rmistry@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
> > Reviewed-by: Robert Phillips <robertphillips@google.com>
> >
>
> TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,robertphillips@google.com,msarett@google.com,reviews@skia.org
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=skia:
>
> Change-Id: I3d119ff631dbb1a41f873b9c8753d542ec91254e
> Reviewed-on: https://skia-review.googlesource.com/10112
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
>
TBR=jvanverth@google.com,bsalomon@google.com,rmistry@google.com,msarett@google.com,robertphillips@google.com,reviews@skia.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Change-Id: Ib3998300606d3a2e2fb3a14b2088cfad48363501
Reviewed-on: https://skia-review.googlesource.com/10113
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-03-24 16:07:20 +00:00
|
|
|
"$_tests/InsetConvexPolyTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/InterpolatorTest.cpp",
|
|
|
|
"$_tests/InvalidIndexedPngTest.cpp",
|
|
|
|
"$_tests/IsClosedSingleContourTest.cpp",
|
2018-06-19 15:27:20 +00:00
|
|
|
"$_tests/JSONTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/LListTest.cpp",
|
2016-12-15 20:28:42 +00:00
|
|
|
"$_tests/LRUCacheTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/LayerDrawLooperTest.cpp",
|
|
|
|
"$_tests/LazyProxyTest.cpp",
|
2020-04-16 10:25:54 +00:00
|
|
|
"$_tests/M44Test.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/MD5Test.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/MallocPixelRefTest.cpp",
|
|
|
|
"$_tests/MaskCacheTest.cpp",
|
|
|
|
"$_tests/MathTest.cpp",
|
|
|
|
"$_tests/Matrix44Test.cpp",
|
|
|
|
"$_tests/MatrixClipCollapseTest.cpp",
|
2019-12-30 21:36:25 +00:00
|
|
|
"$_tests/MatrixColorFilterTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/MatrixTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/MemoryTest.cpp",
|
|
|
|
"$_tests/MemsetTest.cpp",
|
|
|
|
"$_tests/MessageBusTest.cpp",
|
|
|
|
"$_tests/MetaDataTest.cpp",
|
|
|
|
"$_tests/MipMapTest.cpp",
|
2019-09-25 18:52:44 +00:00
|
|
|
"$_tests/MultiPictureDocumentTest.cpp",
|
2018-06-13 21:21:19 +00:00
|
|
|
"$_tests/NonlinearBlendingTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/OSPathTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/OctoBoundsTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/OffsetSimplePolyTest.cpp",
|
|
|
|
"$_tests/OnFlushCallbackTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/OnceTest.cpp",
|
2018-08-21 16:07:00 +00:00
|
|
|
"$_tests/OpChainTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/OverAlignedTest.cpp",
|
|
|
|
"$_tests/PDFDeflateWStreamTest.cpp",
|
|
|
|
"$_tests/PDFDocumentTest.cpp",
|
|
|
|
"$_tests/PDFGlyphsToUnicodeTest.cpp",
|
|
|
|
"$_tests/PDFJpegEmbedTest.cpp",
|
|
|
|
"$_tests/PDFMetadataAttributeTest.cpp",
|
|
|
|
"$_tests/PDFOpaqueSrcModeToSrcOverTest.cpp",
|
|
|
|
"$_tests/PDFPrimitivesTest.cpp",
|
2020-03-24 15:27:54 +00:00
|
|
|
"$_tests/PDFTaggedLinkTest.cpp",
|
Allow passing multiple node IDs per PDF structure node.
At the time Chromium is painting, we're passing node IDs
along with painting commands to enable tagging. However,
this assumes that all nodes will end up in the structure
tree, which we might not want.
Instead, allow the client to prune the structure tree
later before telling Skia to generate the PDF, but
keep all of the node IDs to be matched up with.
As an example, suppose the doc looks like this:
root id=1
paragraph id=2
div id=3
text1 id=4
link id=5
text2 id=6
The pruned tree passed to Skia would look like this:
root id=1
paragraph id=2 extra_ids=3,4
link id=5 extra_ids=6
We need to pass the extra node IDs into Skia so
that when content is tagged with id=4, we know to
map that to the paragraph node with id=2 instead.
Note that the resulting PDF document will *not*
have any of these extra IDs, they're all remapped
and consolidated.
While it's not strictly necessary that this is done
in Skia, it's easiest to implement it here. Doing the
same upstream would require replaying an SkPicture
and rewriting all of the node IDs.
Bug: chromium:607777
Change-Id: I0ecb62651e60b84cc5b9d053d7f7d3b9efda1470
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/272462
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
2020-02-24 16:45:39 +00:00
|
|
|
"$_tests/PDFTaggedPruningTest.cpp",
|
2020-02-19 18:59:29 +00:00
|
|
|
"$_tests/PDFTaggedTableTest.cpp",
|
2018-09-26 03:29:15 +00:00
|
|
|
"$_tests/PDFTaggedTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PackBitsTest.cpp",
|
|
|
|
"$_tests/PackedConfigsTextureTest.cpp",
|
|
|
|
"$_tests/PaintImageFilterTest.cpp",
|
|
|
|
"$_tests/PaintTest.cpp",
|
|
|
|
"$_tests/ParametricStageTest.cpp",
|
2020-06-16 16:58:08 +00:00
|
|
|
"$_tests/ParseColorTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/ParsePathTest.cpp",
|
2020-06-24 01:06:28 +00:00
|
|
|
"$_tests/PathBuilderTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathCoverageTest.cpp",
|
|
|
|
"$_tests/PathMeasureTest.cpp",
|
2017-09-25 20:49:55 +00:00
|
|
|
"$_tests/PathRendererCacheTests.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PictureBBHTest.cpp",
|
|
|
|
"$_tests/PictureShaderTest.cpp",
|
|
|
|
"$_tests/PictureTest.cpp",
|
2017-09-29 19:10:39 +00:00
|
|
|
"$_tests/PinnedImageTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PixelRefTest.cpp",
|
|
|
|
"$_tests/Point3Test.cpp",
|
|
|
|
"$_tests/PointTest.cpp",
|
2018-07-03 20:12:39 +00:00
|
|
|
"$_tests/PolyUtilsTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PremulAlphaRoundTripTest.cpp",
|
|
|
|
"$_tests/PrimitiveProcessorTest.cpp",
|
2017-01-11 15:32:34 +00:00
|
|
|
"$_tests/ProcessorTest.cpp",
|
2019-10-24 14:23:26 +00:00
|
|
|
"$_tests/ProgramsTest.cpp",
|
2018-03-09 17:05:04 +00:00
|
|
|
"$_tests/PromiseImageTest.cpp",
|
2016-11-04 15:59:10 +00:00
|
|
|
"$_tests/ProxyConversionTest.cpp",
|
2016-11-16 19:17:17 +00:00
|
|
|
"$_tests/ProxyRefTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/ProxyTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/QuickRejectTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/RRectInPathTest.cpp",
|
|
|
|
"$_tests/RTreeTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/RandomTest.cpp",
|
|
|
|
"$_tests/ReadPixelsTest.cpp",
|
|
|
|
"$_tests/ReadWriteAlphaTest.cpp",
|
|
|
|
"$_tests/RecordDrawTest.cpp",
|
|
|
|
"$_tests/RecordOptsTest.cpp",
|
|
|
|
"$_tests/RecordPatternTest.cpp",
|
|
|
|
"$_tests/RecordTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/RecordTestUtils.h",
|
|
|
|
"$_tests/RecorderTest.cpp",
|
|
|
|
"$_tests/RecordingXfermodeTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/RectTest.cpp",
|
|
|
|
"$_tests/RefCntTest.cpp",
|
|
|
|
"$_tests/RegionTest.cpp",
|
2016-11-08 13:49:39 +00:00
|
|
|
"$_tests/RenderTargetContextTest.cpp",
|
2019-08-09 15:04:44 +00:00
|
|
|
"$_tests/RepeatedClippedBlurTest.cpp",
|
2017-07-18 18:49:38 +00:00
|
|
|
"$_tests/ResourceAllocatorTest.cpp",
|
2020-03-19 19:54:28 +00:00
|
|
|
"$_tests/ResourceCacheTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/RoundRectTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/SRGBReadWritePixelsTest.cpp",
|
|
|
|
"$_tests/SRGBTest.cpp",
|
|
|
|
"$_tests/SVGDeviceTest.cpp",
|
2017-08-11 18:00:50 +00:00
|
|
|
"$_tests/SafeMathTest.cpp",
|
2019-03-07 21:17:03 +00:00
|
|
|
"$_tests/SamplePatternDictionaryTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/ScalarTest.cpp",
|
|
|
|
"$_tests/ScaleToSidesTest.cpp",
|
2017-12-05 20:11:24 +00:00
|
|
|
"$_tests/SerialProcsTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/SerializationTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/ShaderOpacityTest.cpp",
|
|
|
|
"$_tests/ShaderTest.cpp",
|
2017-07-31 13:34:58 +00:00
|
|
|
"$_tests/ShadowTest.cpp",
|
2019-05-02 21:00:22 +00:00
|
|
|
"$_tests/ShaperTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SizeTest.cpp",
|
|
|
|
"$_tests/SkBase64Test.cpp",
|
|
|
|
"$_tests/SkColor4fTest.cpp",
|
2018-05-24 16:33:23 +00:00
|
|
|
"$_tests/SkColorSpaceXformStepsTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SkDOMTest.cpp",
|
2016-10-31 13:20:54 +00:00
|
|
|
"$_tests/SkFixed15Test.cpp",
|
2017-11-03 17:36:55 +00:00
|
|
|
"$_tests/SkGaussFilterTest.cpp",
|
2019-10-09 16:26:56 +00:00
|
|
|
"$_tests/SkGlyphBufferTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SkImageTest.cpp",
|
|
|
|
"$_tests/SkNxTest.cpp",
|
|
|
|
"$_tests/SkPEGTest.cpp",
|
|
|
|
"$_tests/SkRasterPipelineTest.cpp",
|
2018-05-02 17:29:37 +00:00
|
|
|
"$_tests/SkRemoteGlyphCacheTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SkResourceCacheTest.cpp",
|
2019-12-19 20:44:56 +00:00
|
|
|
"$_tests/SkRuntimeEffectTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SkSLErrorTest.cpp",
|
2017-06-29 14:03:38 +00:00
|
|
|
"$_tests/SkSLFPTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SkSLGLSLTest.cpp",
|
2019-03-21 15:05:37 +00:00
|
|
|
"$_tests/SkSLInterpreterTest.cpp",
|
2016-11-22 16:39:36 +00:00
|
|
|
"$_tests/SkSLMemoryLayoutTest.cpp",
|
2019-01-22 15:59:11 +00:00
|
|
|
"$_tests/SkSLMetalTest.cpp",
|
2017-05-10 19:06:17 +00:00
|
|
|
"$_tests/SkSLSPIRVTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/SkScalerCacheTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/SkShaperJSONWriterTest.cpp",
|
2020-04-29 18:50:26 +00:00
|
|
|
"$_tests/SkSharedMutexTest.cpp",
|
2020-03-15 16:55:16 +00:00
|
|
|
"$_tests/SkStrikeCacheTest.cpp",
|
2018-08-02 15:26:41 +00:00
|
|
|
"$_tests/SkUTFTest.cpp",
|
2019-05-29 17:57:54 +00:00
|
|
|
"$_tests/SkVMTest.cpp",
|
2019-02-05 18:42:46 +00:00
|
|
|
"$_tests/SkVxTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/Skbug5221.cpp",
|
|
|
|
"$_tests/Skbug6389.cpp",
|
|
|
|
"$_tests/Skbug6653.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SortTest.cpp",
|
|
|
|
"$_tests/SpecialImageTest.cpp",
|
|
|
|
"$_tests/SpecialSurfaceTest.cpp",
|
|
|
|
"$_tests/SrcOverTest.cpp",
|
2020-02-28 18:06:02 +00:00
|
|
|
"$_tests/SrcSrcOverBatchTest.cpp",
|
2016-12-16 16:39:51 +00:00
|
|
|
"$_tests/StreamBufferTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/StreamTest.cpp",
|
|
|
|
"$_tests/StringTest.cpp",
|
|
|
|
"$_tests/StrokeTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/StrokerTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SubsetPath.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/SubsetPath.h",
|
2020-03-19 19:54:28 +00:00
|
|
|
"$_tests/SurfaceSemaphoreTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/SurfaceTest.cpp",
|
|
|
|
"$_tests/SwizzlerTest.cpp",
|
|
|
|
"$_tests/TArrayTest.cpp",
|
|
|
|
"$_tests/TDPQueueTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/TLazyTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/TemplatesTest.cpp",
|
|
|
|
"$_tests/Test.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/Test.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/TestTest.cpp",
|
2017-01-27 15:11:42 +00:00
|
|
|
"$_tests/TestUtils.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/TestUtils.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/TextBlobCacheTest.cpp",
|
|
|
|
"$_tests/TextBlobTest.cpp",
|
2017-09-21 12:26:08 +00:00
|
|
|
"$_tests/TextureProxyTest.cpp",
|
2018-03-19 14:57:42 +00:00
|
|
|
"$_tests/TextureStripAtlasManagerTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/Time.cpp",
|
|
|
|
"$_tests/TopoSortTest.cpp",
|
2020-03-19 19:54:28 +00:00
|
|
|
"$_tests/TraceMemoryDumpTest.cpp",
|
2017-08-01 14:23:38 +00:00
|
|
|
"$_tests/TracingTest.cpp",
|
2017-06-21 19:55:46 +00:00
|
|
|
"$_tests/TransferPixelsTest.cpp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_tests/TriangulatingPathRendererTests.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/TypefaceTest.cpp",
|
|
|
|
"$_tests/UnicodeTest.cpp",
|
|
|
|
"$_tests/UtilsTest.cpp",
|
2017-03-14 18:10:54 +00:00
|
|
|
"$_tests/VerticesTest.cpp",
|
2018-04-10 13:34:07 +00:00
|
|
|
"$_tests/VkBackendSurfaceTest.cpp",
|
2018-10-19 17:54:56 +00:00
|
|
|
"$_tests/VkDrawableTest.cpp",
|
2019-01-30 20:13:22 +00:00
|
|
|
"$_tests/VkHardwareBufferTest.cpp",
|
2019-03-04 20:35:23 +00:00
|
|
|
"$_tests/VkPriorityExtensionTest.cpp",
|
2019-06-24 14:53:09 +00:00
|
|
|
"$_tests/VkProtectedContextTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/VkWrapTests.cpp",
|
2019-08-12 05:46:33 +00:00
|
|
|
"$_tests/VkYcbcrSamplerTest.cpp",
|
2017-12-06 17:27:44 +00:00
|
|
|
"$_tests/VptrTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/WindowRectanglesTest.cpp",
|
|
|
|
"$_tests/WritePixelsTest.cpp",
|
|
|
|
"$_tests/Writer32Test.cpp",
|
|
|
|
"$_tests/YUVCacheTest.cpp",
|
|
|
|
"$_tests/YUVTest.cpp",
|
|
|
|
]
|
|
|
|
|
2019-09-25 21:14:35 +00:00
|
|
|
gl_tests_sources = [
|
|
|
|
"$_tests/EGLImageTest.cpp",
|
|
|
|
"$_tests/GrGLExtensionsTest.cpp",
|
|
|
|
"$_tests/RectangleTextureTest.cpp",
|
|
|
|
"$_tests/TextureBindingsResetTest.cpp",
|
|
|
|
]
|
|
|
|
|
2019-11-11 21:14:13 +00:00
|
|
|
metal_tests_sources = [
|
|
|
|
"$_tests/MtlBackendAllocationTest.mm",
|
|
|
|
"$_tests/MtlCopySurfaceTest.mm",
|
|
|
|
]
|
2019-05-16 16:43:11 +00:00
|
|
|
|
2016-10-27 16:21:40 +00:00
|
|
|
pathops_tests_sources = [
|
|
|
|
"$_tests/PathOpsAngleIdeas.cpp",
|
|
|
|
"$_tests/PathOpsAngleTest.cpp",
|
2018-08-16 15:53:54 +00:00
|
|
|
"$_tests/PathOpsAsWindingTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsBattles.cpp",
|
|
|
|
"$_tests/PathOpsBoundsTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsBuildUseTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsBuilderConicTest.cpp",
|
|
|
|
"$_tests/PathOpsBuilderTest.cpp",
|
|
|
|
"$_tests/PathOpsChalkboardTest.cpp",
|
|
|
|
"$_tests/PathOpsConicIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsConicLineIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsConicQuadIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsCubicConicIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsCubicIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsCubicIntersectionTestData.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsCubicIntersectionTestData.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsCubicLineIntersectionIdeas.cpp",
|
|
|
|
"$_tests/PathOpsCubicLineIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsCubicQuadIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsCubicReduceOrderTest.cpp",
|
|
|
|
"$_tests/PathOpsDCubicTest.cpp",
|
|
|
|
"$_tests/PathOpsDLineTest.cpp",
|
|
|
|
"$_tests/PathOpsDPointTest.cpp",
|
|
|
|
"$_tests/PathOpsDRectTest.cpp",
|
|
|
|
"$_tests/PathOpsDVectorTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsDebug.cpp",
|
|
|
|
"$_tests/PathOpsDebug.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsExtendedTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsExtendedTest.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsFuzz763Test.cpp",
|
|
|
|
"$_tests/PathOpsInverseTest.cpp",
|
|
|
|
"$_tests/PathOpsIssue3651.cpp",
|
|
|
|
"$_tests/PathOpsLineIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsLineParametetersTest.cpp",
|
|
|
|
"$_tests/PathOpsOpCircleThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsOpCubicThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsOpLoopThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsOpRectThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsOpTest.cpp",
|
|
|
|
"$_tests/PathOpsQuadIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsQuadIntersectionTestData.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsQuadIntersectionTestData.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsQuadLineIntersectionTest.cpp",
|
|
|
|
"$_tests/PathOpsQuadLineIntersectionThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsQuadReduceOrderTest.cpp",
|
|
|
|
"$_tests/PathOpsSimplifyDegenerateThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsSimplifyFailTest.cpp",
|
|
|
|
"$_tests/PathOpsSimplifyQuadThreadedTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsSimplifyQuadralateralsThreadedTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsSimplifyRectThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsSimplifyTest.cpp",
|
|
|
|
"$_tests/PathOpsSimplifyTrianglesThreadedTest.cpp",
|
|
|
|
"$_tests/PathOpsSkpTest.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsTSectDebug.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsTestCommon.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsTestCommon.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsThreadedCommon.cpp",
|
2019-05-03 15:48:07 +00:00
|
|
|
"$_tests/PathOpsThreadedCommon.h",
|
2016-10-27 16:21:40 +00:00
|
|
|
"$_tests/PathOpsThreeWayTest.cpp",
|
|
|
|
"$_tests/PathOpsTigerTest.cpp",
|
|
|
|
"$_tests/PathOpsTightBoundsTest.cpp",
|
|
|
|
"$_tests/PathOpsTypesTest.cpp",
|
2020-05-14 01:18:46 +00:00
|
|
|
"$_tests/WangsFormulaTest.cpp",
|
2016-10-27 16:21:40 +00:00
|
|
|
]
|