diff options
author | Brian Osman <brianosman@google.com> | 2016-10-03 14:23:50 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-03 18:47:42 +0000 |
commit | e2f732f475fbeff9cce2dd4023a183fa2492d2ad (patch) | |
tree | 5f40fe94c52ccc93bdf28694569c0a30e332ba1b /include | |
parent | 7de57798358127e959df9255b36f30ec9d7db534 (diff) |
Start supplying random color space xforms to FP tests
Added helper to create random GrColorSpaceXforms in unit tests, and
hooked it up for the FPs that currently accept one.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2873
Change-Id: Iaf93e379e405fbf745f5e0fd23b4daf017355966
Reviewed-on: https://skia-review.googlesource.com/2873
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrTestUtils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/GrTestUtils.h b/include/gpu/GrTestUtils.h index 89ac68ae3d..a4fef49728 100644 --- a/include/gpu/GrTestUtils.h +++ b/include/gpu/GrTestUtils.h @@ -13,6 +13,7 @@ #ifdef GR_TEST_UTILS #include "GrColor.h" +#include "GrColorSpaceXform.h" #include "SkPathEffect.h" #include "SkRandom.h" #include "SkStrokeRec.h" @@ -41,6 +42,7 @@ const SkPath& TestPathConvex(SkRandom*); SkStrokeRec TestStrokeRec(SkRandom*); /** Creates styles with dash path effects and null path effects */ void TestStyle(SkRandom*, GrStyle*); +sk_sp<GrColorSpaceXform> TestColorXform(SkRandom*); // We have a simplified dash path effect here to avoid relying on SkDashPathEffect which // is in the optional build target effects. |