aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-07-06 14:16:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-06 18:59:36 +0000
commit39e085559ddbd088866abdf50a48f7ab5b283830 (patch)
tree21a977f20cf3e7be56d2d4d5dba35c8785a5333a /tests
parentc19ced195af1e80fc9a0898458d49dbceaee4500 (diff)
Add an SkColorSpaceXformer image filter cache
The cache is scoped with the SkColorSpaceXformer object. This ensures we're not transforming nodes with a degree > 1 multiple times, and preserves the DAG topology. Change-Id: I0b072cdac95f9f1c34e0565ed4f258aba986e1ae Reviewed-on: https://skia-review.googlesource.com/21726 Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ImageFilterTest.cpp3
-rw-r--r--tests/QuickRejectTest.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index c6d184dfea..69b31f184c 100644
--- a/tests/ImageFilterTest.cpp
+++ b/tests/ImageFilterTest.cpp
@@ -1920,6 +1920,5 @@ DEF_TEST(ImageFilterColorSpaceDAG, reporter) {
auto xformer = SkColorSpaceXformer::Make(SkColorSpace::MakeSRGB());
auto xformedFilter = xformer->apply(complexFilter.get());
- // FIXME: clone count should be 1 at this point.
- REPORTER_ASSERT(reporter, filter->cloneCount() == 2u);
+ REPORTER_ASSERT(reporter, filter->cloneCount() == 1u);
}
diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp
index b705253e34..d7d330f750 100644
--- a/tests/QuickRejectTest.cpp
+++ b/tests/QuickRejectTest.cpp
@@ -6,6 +6,7 @@
*/
#include "SkArenaAlloc.h"
+#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColorSpaceXformer.h"
#include "SkDrawLooper.h"