diff options
author | Mike Reed <reed@google.com> | 2016-11-09 10:38:09 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-09 17:03:12 +0000 |
commit | 6a01554e9e8687c56e6b6707e0c6a02062a1824e (patch) | |
tree | 75c73de8c625e03543b6eaf5e392d869a7c47d84 /tests | |
parent | d3ea9b75f7e675f0f57545694cd4add43b8e2f4b (diff) |
remove use of xfermode* in procs
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4592
Change-Id: I99f35924ff5325dfac527bb573a86d2d0366e0b3
Reviewed-on: https://skia-review.googlesource.com/4592
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SkColor4fTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SkColor4fTest.cpp b/tests/SkColor4fTest.cpp index a36bc86307..028b99f413 100644 --- a/tests/SkColor4fTest.cpp +++ b/tests/SkColor4fTest.cpp @@ -111,9 +111,9 @@ static bool compare_procs(SkXfermodeProc proc32, SkXfermodeProc4f proc4f) { DEF_TEST(Color4f_xfermode_proc4f, reporter) { // TODO: extend xfermodes so that all cases can be tested. // - for (int mode = SkXfermode::kClear_Mode; mode <= SkXfermode::kScreen_Mode; ++mode) { - SkXfermodeProc proc32 = SkXfermode::GetProc((SkXfermode::Mode)mode); - SkXfermodeProc4f proc4f = SkXfermode::GetProc4f((SkXfermode::Mode)mode); + for (int mode = (int)SkBlendMode::kClear; mode <= (int)SkBlendMode::kScreen; ++mode) { + SkXfermodeProc proc32 = SkXfermode::GetProc((SkBlendMode)mode); + SkXfermodeProc4f proc4f = SkXfermode::GetProc4f((SkBlendMode)mode); REPORTER_ASSERT(reporter, compare_procs(proc32, proc4f)); } } |